Пример #1
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     StringBuilder str = new StringBuilder();
     foreach (FindListModel el in dataGrid.ItemsSource)
     {
         str.Append(el.Type);
         str.Append("\t");
         str.Append(el.Name);
         str.Append("\t");
         str.Append(el.Number);
         str.Append("\t");
         str.Append(el.Place);
         str.Append("\t");
         str.Append(el.Date);
         str.Append(Environment.NewLine);
     }
     WindowInfo win = new WindowInfo(str.ToString());
     win.Owner = this;
     win.ShowDialog();
 }
Пример #2
0
 private void plainViewButton_Click(object sender, RoutedEventArgs e)
 {
     if (allCopyButton.IsChecked == false && typeBox.SelectedIndex != -1)
     {
         string type = typeBlock.Text;
         StringBuilder str = new StringBuilder();
         foreach (CopyListModel el in copyGrid.ItemsSource)
         {
             str.Append(type);
             str.Append("\t");
             str.Append(el.Name);
             str.Append("\t");
             str.Append(el.Number);
             str.Append("\t");
             str.Append(el.Place);
             str.Append("\t");
             str.Append(el.Date);
             str.Append(Environment.NewLine);
         }
         WindowInfo win = new WindowInfo(str.ToString());
         win.Owner = this;
         win.ShowDialog();
     }
 }
Пример #3
0
 private void MenuStatistic_Click(object sender, RoutedEventArgs e)
 {
     if (xml == null) return;
     WindowInfo win = new WindowInfo(xml.getStatistic());
     win.Owner = this;
     win.ShowDialog();
 }
Пример #4
0
 private void MenuFreeNumbers_Click(object sender, RoutedEventArgs e)
 {
     if (xml == null) return;
     WindowInfo win = new WindowInfo(xml.getFreeNumbers(100));
     win.Owner = this;
     win.ShowDialog();
 }
Пример #5
0
 private void MenuAbout_Click(object sender, RoutedEventArgs e)
 {
     WindowInfo win = new WindowInfo();
     win.Owner = this;
     win.ShowDialog();
 }