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

            FormFME.FormularyMedCur = ListMeds[e.Row];
            FormFME.ShowDialog();
            FillGrid();
        }
Ejemplo 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();
 }
Ejemplo 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();
        }
Ejemplo n.º 4
0
 private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e)
 {
     FormFormularyMedEdit FormFME=new FormFormularyMedEdit();
     FormFME.FormularyMedCur=ListMeds[e.Row];
     FormFME.ShowDialog();
     FillGrid();
 }