Exemple #1
0
        private void new_button_Click(object sender, RoutedEventArgs e)
        {
            CreateOperationConfiguration configuration = new CreateOperationConfiguration();
            bool dialogResult = (bool)configuration.ShowDialog();

            if (dialogResult)
            {
                initDataGrid();
            }
        }
Exemple #2
0
        private void edit_button_Click(object sender, RoutedEventArgs e)
        {
            int selectIndex = this.dataGrid_view.SelectedIndex;

            System.Data.DataRow dRow = dataTable.Rows[selectIndex];
            string operationID       = dRow["OperationID"].ToString();
            CreateOperationConfiguration configuration = new CreateOperationConfiguration();

            configuration.SetEditedOperationId(operationID);
            bool dialogResult = (bool)configuration.ShowDialog();

            if (dialogResult)
            {
                initDataGrid();
            }
        }