コード例 #1
0
        private void new_button_Click(object sender, RoutedEventArgs e)
        {
            ReagentSuppliesConfiguration configuration = new ReagentSuppliesConfiguration();

            configuration.ShowDialog();
            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 itemId            = dRow["ItemID"].ToString();
            ReagentSuppliesConfiguration configuration = new ReagentSuppliesConfiguration();

            configuration.SetEditedItemId(itemId);
            configuration.ShowDialog();
            initDataGrid();
        }