| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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
- {
- /// <summary>
- /// AirControlNotice.xaml 的交互逻辑
- /// </summary>
- public partial class RiskControlNoticeView : TradeAccountWindow
- {
- public RiskControlNoticeView(System.Collections.ObjectModel.ObservableCollection<Announcement> 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;
- }
- }
- }
|