Пример #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
Пример #2
0
 public ModelFrmElements(frmBomba frm)
 {
     this.frm = frm;
     initBtnsState();
 }
Пример #3
0
 public ControllerEvents(frmBomba frm, ModelFrmElements mdlFrmElmnts)
 {
     this.frm          = frm;
     this.mdlFrmElmnts = mdlFrmElmnts;
     InitEvents();
 }//Fin del constructor