This repository has been archived on 2024-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
Sic06/SicUI/Controls/ChooseDialogBoxViewModel.cs

24 lines
475 B
C#

using System.Collections.ObjectModel;
using System.Windows.Forms.VisualStyles;
using OpenSEMI.ClientBase;
namespace SicUI.Controls
{
public class ChooseDialogBoxViewModel : DialogViewModel<string>
{
public string InfoStr { get; set; }
public void OK()
{
IsCancel = false;
TryClose(true);
}
public void Cancel()
{
IsCancel = true;
TryClose(false);
}
}
}