コード例 #1
0
		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();
        }
コード例 #3
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();
		}
コード例 #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();
        }