using Muchinfo.MTPClient.Infrastructure.Windows; using System; using System.Windows; namespace Muchinfo.MTPClient.Account.Views { /// /// MessagePrompt.xaml 的交互逻辑 /// 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(); } } }