private void onAddButtonClick(object sender, RoutedEventArgs e)
 {
     var dialog = new CompaniesEditor();
     ModalDialog = dialog;
     dialog.Closed += onEditDialogClosed;
     dialog.Show();
 }
Example #2
0
        private void onCancelButtonClick(object sender, RoutedEventArgs e)
        {
            Close();
            var dialog = new CompaniesEditor();

            dialog.Show();
        }
        private void onDataGridViewMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (DataGridView.SelectedItem == null || e.ChangedButton != MouseButton.Left) return;

            var dialog = new CompaniesEditor((Company)DataGridView.SelectedItem);
            ModalDialog = dialog;
            dialog.Closed += onEditDialogClosed;
            dialog.Show();
        }
 private void onEditButtonClick(object sender, RoutedEventArgs e)
 {
     if (CompaniesListView.SelectedItem == null) return;
     var dialog = new CompaniesEditor((Company) CompaniesListView.SelectedItem);
     ModalDialog = dialog;
     dialog.Closed += onEditDialogClosed;
     dialog.Show();
 }
 private void onCancelButtonClick(object sender, RoutedEventArgs e)
 {
     Close();
     var dialog = new CompaniesEditor();
     dialog.Show();
 }