コード例 #1
0
 private void btnCrearNueva_Click(object sender, EventArgs e)
 {
     using (frm_Crear frm = new frm_Crear())
     {
         frm.Populate(null);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             Populate(DateTime.Now);
         }
     }
 }
コード例 #2
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            if (selectedConsultaGrid == null)
            {
                return;
            }
            using (frm_Crear frm = new frm_Crear())
            {
                frm.State = Fwk.Bases.EntityUpdateEnum.UPDATED;

                frm.Populate(selectedConsultaGrid);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    //ConsultaBE consulta = frm.GetData();
                    //Controller.UpdateConsulta(consulta);
                    Populate(DateTime.Now);
                }
            }
        }