Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        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;
        }