Beispiel #1
0
		private void butAdd_Click(object sender,EventArgs e) {
			FormDrugManufacturerEdit FormD=new FormDrugManufacturerEdit();
			FormD.DrugManufacturerCur=new DrugManufacturer();
			FormD.IsNew=true;
			FormD.ShowDialog();
			FillGrid();
		}
Beispiel #2
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            FormDrugManufacturerEdit FormD = new FormDrugManufacturerEdit();

            FormD.DrugManufacturerCur = new DrugManufacturer();
            FormD.IsNew = true;
            FormD.ShowDialog();
            FillGrid();
        }
Beispiel #3
0
		private void listMain_DoubleClick(object sender,EventArgs e) {
			if(listMain.SelectedIndex==-1) {
				return;
			}
			FormDrugManufacturerEdit FormD=new FormDrugManufacturerEdit();
			FormD.DrugManufacturerCur=DrugManufacturers.Listt[listMain.SelectedIndex];
			FormD.ShowDialog();
			FillGrid();
		}
Beispiel #4
0
        private void listMain_DoubleClick(object sender, EventArgs e)
        {
            if (listMain.SelectedIndex == -1)
            {
                return;
            }
            FormDrugManufacturerEdit FormD = new FormDrugManufacturerEdit();

            FormD.DrugManufacturerCur = _listDrugManufacturers[listMain.SelectedIndex];
            FormD.ShowDialog();
            FillGrid();
        }