コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: JuliaKolosova/szi
 /* Открытие файла xml (двойной клик на название файла) */
 private void FilesListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (FilesListBox.SelectedItem != null)
     {
         ForaWindow eForm = new ForaWindow(FilesListBox.SelectedItem.ToString(), startForm, id);
         eForm.Owner = this;
         eForm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
         eForm.ShowDialog();
     }
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: JuliaKolosova/szi
 /* Открытие файла xml (кнопка) */
 private void SelectBtn_Click(object sender, RoutedEventArgs e)
 {
     if (FilesListBox.SelectedItem != null)
     {
         ForaWindow eForm = new ForaWindow(FilesListBox.SelectedItem.ToString(), startForm, id);
         eForm.Owner = this;
         eForm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
         eForm.ShowDialog();
     }
     else
     {
         MessageBox.Show("Ошибка! Не выбрано дело!");
     }
 }