| 123456789101112131415161718192021222324252627282930 |
- 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
- {
- /// <summary>
- /// 通讯设置
- /// </summary>
- 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;
- }
- }
- }
- }
|