Example #1
0
        }//Fin del constructor

        private void InitComponents()
        {
            frm = new frmBomba();

            //Inicializando objetos de modelo y eventos
            mdlFrmElmnts = new ModelFrmElements(frm);
            ctrlEvnt     = new ControllerEvents(frm, mdlFrmElmnts);

            //Arrancando la vista
            Application.EnableVisualStyles();
            try{
                Application.SetCompatibleTextRenderingDefault(false);
            }catch (Exception e) {
            }
            Application.Run(frm);
        } //Fin de initComponents
Example #2
0
 public ControllerEvents(frmBomba frm, ModelFrmElements mdlFrmElmnts)
 {
     this.frm          = frm;
     this.mdlFrmElmnts = mdlFrmElmnts;
     InitEvents();
 }//Fin del constructor