private void updateContract_Click(object sender, RoutedEventArgs e)
        {
            contractsButtonsClicks();
            Window UpdateContractWindow = new UpdateContractWindow();

            UpdateContractWindow.Show();
        }
Пример #2
0
 private void UpdateBtn_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var contract             = (Contract)contractDataGrid.SelectedItem;
         var updateContractWindow = new UpdateContractWindow(contract);
         updateContractWindow.Closed += UpdateContractWindow_Closed;
         updateContractWindow.ShowDialog();
     }
     catch (Exception exception)
     {
         MessageBox.Show($"Error - {exception.Message}", "ERROR", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Пример #3
0
        private void UpdateContractButton_Click(object sender, RoutedEventArgs e)
        {
            Window updatecontractwindow = new UpdateContractWindow();

            updatecontractwindow.ShowDialog();
        }