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

            FormD.DrugManufacturerCur = new DrugManufacturer();
            FormD.IsNew = true;
            FormD.ShowDialog();
            FillGrid();
        }
Пример #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();
		}
Пример #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();
        }