private void OpenSpravkaPrinting_Click(object sender, RoutedEventArgs e) { if (ListZapisei.SelectedItem != null) { Othet othet = new Othet(); othet.Show(); } else { MessageBox.Show("Выберите запись по которой нужно вывести отчет", "Предупреждение", MessageBoxButton.OK, MessageBoxImage.Information); } }
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { if (ListZapisei.Items.Count != 0) { if (ListZapisei.SelectedItem != null) { Othet othet = new Othet(); othet.Show(); } else { MessageBox.Show("Выберите запись по которой нужно вывести отчет", "Предупреждение", MessageBoxButton.OK, MessageBoxImage.Information); } } else { MessageBox.Show("Выберите пользователя у которого существуют записи", "Предупреждение", MessageBoxButton.OK, MessageBoxImage.Information); } }
private void Otchet_Click(object sender, RoutedEventArgs e) { Othet othet = new Othet(); othet.Show(); }