| 1234567891011121314151617181920212223242526272829303132333435363738 | 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<string>    {        private string _CurrentValue;        public ObservableCollection<string> Items { get; set; }        public string HeaderText { get; set; }        public ListDialogProViewModel()        {            Items = new ObservableCollection<string>();        }               public void OK(string parameter)        {            _CurrentValue = parameter;            if (!string.IsNullOrEmpty(_CurrentValue))            {                this.DialogResult = _CurrentValue;                IsCancel = false;                TryClose(true);            }        }           }}
 |