private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            switch (_type)
            {
            case MessageBoxType.Ok:
            {
                yesBt.Visibility = Visibility.Hidden;
                noBt.Visibility  = Visibility.Hidden;

                _result = MessageBoxReply.Ok;
            }
            break;

            case MessageBoxType.YesNo:
            {
                okBt.Visibility = Visibility.Hidden;

                _result = MessageBoxReply.No;
            }
            break;
            }

            msgBoxlabel.Content = _content;
        }
 private void noBt_Click(object sender, RoutedEventArgs e)
 {
     _result = MessageBoxReply.No;
     this.Close();
 }