using OpenSEMI.ClientBase; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MECF.Framework.UI.Client.CenterViews.Dialogs { public class ListDialogProViewModel : DialogViewModel { private string _CurrentValue; public ObservableCollection Items { get; set; } public string HeaderText { get; set; } public ListDialogProViewModel() { Items = new ObservableCollection(); } public void OK(string parameter) { _CurrentValue = parameter; if (!string.IsNullOrEmpty(_CurrentValue)) { this.DialogResult = _CurrentValue; IsCancel = false; TryClose(true); } } } }