private void butAdd_Click(object sender,EventArgs e) { FormDrugUnitEdit FormD=new FormDrugUnitEdit(); FormD.DrugUnitCur=new DrugUnit(); FormD.IsNew=true; FormD.ShowDialog(); FillGrid(); }
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(); }
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(); }