using MECF.Framework.Common.DataCenter; using OpenSEMI.ClientBase; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace SicUI.Models.PMs { /// /// ExchangeMoSelectDialogView.xaml 的交互逻辑 /// public partial class ExchangeMoSelectDialogView : UserControl { public ExchangeMoSelectDialogView() { InitializeComponent(); } } public class ExchangeMoSelectDialogViewModel : DialogViewModel { public ExchangeMoSelectDialogViewModel() { MoList = new List() { "CS2", "W(CO)6", "MOReserved", "MO(CO)6" }; } public void OK() { if (!string.IsNullOrEmpty(SelectedMO)) { this.DialogResult = SelectedMO; IsCancel = false; TryClose(true); } } public void Cancel() { IsCancel = true; TryClose(false); } public List MoList { get; set; } public string SelectedMO { get; set; } } }