| 123456789101112131415161718192021222324252627282930313233 |
- using Muchinfo.MTPClient.Infrastructure.Windows;
- using System;
- using System.Windows;
- namespace Muchinfo.MTPClient.Account.Views
- {
- /// <summary>
- /// MessagePrompt.xaml 的交互逻辑
- /// </summary>
- public partial class MessagePromptView : TradeAccountWindow
- {
- public MessagePromptView(string messageInfo)
- {
- InitializeComponent();
- this.MessageInfo.Text = messageInfo;
- Storyboard1.Completed += storyboard_Completed;
- this.Loaded += MessagePromptView_Loaded;
- }
- void MessagePromptView_Loaded(object sender, RoutedEventArgs e)
- {
- double m_ScreenWidth = SystemParameters.WorkArea.Width;
- double m_ScreenHeight = SystemParameters.WorkArea.Height;
- this.Left = m_ScreenWidth - this.Width - 1.5;
- this.Top = m_ScreenHeight - this.Height - 1.5;
- }
- void storyboard_Completed(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|