private void butAdd_Click(object sender,EventArgs e) {
			FormDrugUnitEdit FormD=new FormDrugUnitEdit();
			FormD.DrugUnitCur=new DrugUnit();
			FormD.IsNew=true;
			FormD.ShowDialog();
			FillGrid();
		}
示例#2
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            FormDrugUnitEdit FormD = new FormDrugUnitEdit();

            FormD.DrugUnitCur = new DrugUnit();
            FormD.IsNew       = true;
            FormD.ShowDialog();
            FillGrid();
        }
		private void listMain_DoubleClick(object sender,EventArgs e) {
			if(listMain.SelectedIndex==-1) {
				return;
			}
			FormDrugUnitEdit FormD=new FormDrugUnitEdit();
			FormD.DrugUnitCur=DrugUnits.Listt[listMain.SelectedIndex];
			FormD.ShowDialog();
			FillGrid();
		}
示例#4
0
        private void listMain_DoubleClick(object sender, EventArgs e)
        {
            if (listMain.SelectedIndex == -1)
            {
                return;
            }
            FormDrugUnitEdit FormD = new FormDrugUnitEdit();

            FormD.DrugUnitCur = DrugUnits.Listt[listMain.SelectedIndex];
            FormD.ShowDialog();
            FillGrid();
        }