using MECF.Framework.UI.Client.ClientBase; using OpenSEMI.ClientBase; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace MECF.Framework.UI.Client.CenterViews.Parameter { public class InterlockAPCViewModel : ModuleUiViewModelBase { public string APCSelected { get; set; } public void APCSelect(string value) { APCSelected = value; } public void SaveCmd() { if (string.IsNullOrEmpty(APCSelected)) { DialogBox.ShowWarning("APC is empty!"); return; } ((Window)GetView()).DialogResult = true; } public void CloseCmd() { ((Window)GetView()).DialogResult = false; } } }