Esempio n. 1
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormFormularyMedEdit FormFME = new FormFormularyMedEdit();

            FormFME.FormularyMedCur = ListMeds[e.Row];
            FormFME.ShowDialog();
            FillGrid();
        }
Esempio n. 2
0
 private void butAdd_Click(object sender,EventArgs e)
 {
     FormFormularyMedEdit FormFME=new FormFormularyMedEdit();
     FormFME.FormularyMedCur=new FormularyMed();
     FormFME.FormularyMedCur.FormularyNum=FormularyCur.FormularyNum;
     FormFME.IsNew=true;
     FormFME.ShowDialog();
     if(FormFME.DialogResult!=DialogResult.OK) {
         return;
     }
     FormularyMeds.Insert(FormFME.FormularyMedCur);
     FillGrid();
 }
Esempio n. 3
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            FormFormularyMedEdit FormFME = new FormFormularyMedEdit();

            FormFME.FormularyMedCur = new FormularyMed();
            FormFME.FormularyMedCur.FormularyNum = FormularyCur.FormularyNum;
            FormFME.IsNew = true;
            FormFME.ShowDialog();
            if (FormFME.DialogResult != DialogResult.OK)
            {
                return;
            }
            FormularyMeds.Insert(FormFME.FormularyMedCur);
            FillGrid();
        }
Esempio n. 4
0
 private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e)
 {
     FormFormularyMedEdit FormFME=new FormFormularyMedEdit();
     FormFME.FormularyMedCur=ListMeds[e.Row];
     FormFME.ShowDialog();
     FillGrid();
 }