internal void DrugNew() { DrugDictEditor Editor = new DrugDictEditor(); Editor.Initialize(); if (Editor.ShowDialog() == DialogResult.OK) { this.LoadDrugDict(); } }
internal void DrugProp() { int rowIndex = dataGridView1.CurrentCell.RowIndex; if (rowIndex < 0) { return; } DataGridViewRow row = dataGridView1.Rows[rowIndex]; DrugShop.Entities.Dict dict = row.DataBoundItem as DrugShop.Entities.Dict; DrugShop.Entities.Dict dict1 = CommonHelper.GetDataGridViewSelectRow <Dict>(this.dataGridView1); DrugDictEditor Editor = new DrugDictEditor(); Editor.Initialize(); Editor.DrugDict = dict; if (Editor.ShowDialog() == DialogResult.OK) { dict = Editor.DrugDict; CommonHelper.RefreshDataGridView <Dict>(dict, row, dataGridView1); } }