コード例 #1
0
        public void ShowErrorNotificationWindow(Window window)
        {
            this.IsEnabled = false;

            ErrorNotification errorNotification = new ErrorNotification();

            errorNotification.OwningWindow = this;

            //errorNotification.Left = this.Left + (this.Width - errorNotification.ActualWidth) / 2;
            //errorNotification.Top = this.Top + (this.Height - errorNotification.ActualHeight) / 2;

            errorNotification.Show();
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: uitestbot/uTest
        public void ShowErrorNotificationWindow(Window window)
        {
            this.IsEnabled = false;

            ErrorNotification errorNotification = new ErrorNotification();

            errorNotification.OwningWindow = this;
            errorNotification.Show();
            this.MouseDown -= Window_MouseDown;

            errorNotification.Left = origin.X + (size.Width - errorNotification.ActualWidth) / 2;
            errorNotification.Top  = origin.Y + (size.Height - errorNotification.ActualHeight) / 2;
        }