Пример #1
0
        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            DrugMaintainRecordDetailId = Guid.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString());
            NormalDrugMaintainRecordDetailEdit.IsEdit = false;
            NormalDrugMaintainRecordDetailEdit item = new NormalDrugMaintainRecordDetailEdit();

            item.ShowDialog();
        }
Пример #2
0
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                return;
            }
            DrugMaintainRecordDetailId = Guid.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString());
            NormalDrugMaintainRecordDetailEdit.IsEdit = true;
            NormalDrugMaintainRecordDetailEdit item = new NormalDrugMaintainRecordDetailEdit();

            item.ShowDialog();
            BindData();
        }