using Muchinfo.MTPClient.Data.Enums; using Muchinfo.MTPClient.Data.Model.Account; using Muchinfo.MTPClient.UI.ViewModels; using Muchinfo.WPF.Controls.Windows; namespace Muchinfo.MTPClient.UI.Views { /// /// 通讯设置 /// public partial class CommunicationSetView : WindowBase { public CommunicationSetView(string exchangeid, Services selectServices) { InitializeComponent(); this.DataContext = new CommunicationSetViewModel(exchangeid, selectServices); } private void grid_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (grid.SelectedIndex >= 0) { var item = grid.SelectedItem as TradeServer; if (item == null) return; item.IsChecked = true; } } } }