Beispiel #1
0
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     CustomMessageBox.PositionBox(this.Left, this.Top, this.Width, this.Height);
     if (CustomMessageBox.ShowYesNo("Закрыть окно?", "Уведомление", "Закрыть", "Отменить") == MessageBoxResult.No)
     {
         e.Cancel = true;
     }
 }