using Muchinfo.MTPClient.Account.ViewModels; using Muchinfo.MTPClient.Data.Model; using Muchinfo.MTPClient.Infrastructure.Windows; using System; using System.Collections.Generic; using System.Linq; using System.Text; 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 Muchinfo.MTPClient.Account.Views { /// /// AirControlNotice.xaml 的交互逻辑 /// public partial class RiskControlNoticeView : TradeAccountWindow { public RiskControlNoticeView(System.Collections.ObjectModel.ObservableCollection riskList) { InitializeComponent(); this.DataContext = new RiskControlNoticeViewModel(riskList); this.Closing+=RiskControlNoticeView_Closing; } public RiskControlNoticeView() { InitializeComponent(); this.DataContext = new RiskControlNoticeViewModel(); this.Closing+=RiskControlNoticeView_Closing; } void RiskControlNoticeView_Closing(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; this.WindowState = WindowState.Minimized; this.Opacity = 0; } public void Shows() { this.WindowState = WindowState.Normal; this.Opacity = 1; } new public bool? ShowDialog() { Shows(); return true; } } }