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

            if (dialogResult)
            {
                initDataGrid();
            }
        }
예제 #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 TestingItemID     = dRow["TestingItemID"].ToString();
            CreateTestingItemConfiguration configuration = new CreateTestingItemConfiguration();

            configuration.SetEditedTestItemId(TestingItemID);
            bool dialogResult = (bool)configuration.ShowDialog();

            if (dialogResult)
            {
                initDataGrid();
            }
        }