コード例 #1
0
 public FrmBase(IDbAdmin objetoDbAdmin, IFormBase frmNuevoEditar)
 {
     InitializeComponent();
     dbAdmin        = objetoDbAdmin;
     FrmNuevoEditar = frmNuevoEditar;
     ActualizarGrilla();
 }
コード例 #2
0
        public PresenterCtrlAdministration(IAdmin admin, IMessageService message, IDbAdmin bdAdmin)
        {
            _ctrlAdmin = admin;
            _message   = message;
            _bdAdmin   = bdAdmin;

            Load_Form();
            //events
            _ctrlAdmin.BtnDeactivation += CtrlAdmin_BtnDeactivation;
            _ctrlAdmin.BtnRefresh      += CtrlAdmin_BtnRefresh;
            _ctrlAdmin.BtnActivation   += CtrlAdmin_BtnActivation;
            _ctrlAdmin.BtnSave         += CtrlAdmin_BtnSave;
            _ctrlAdmin.BtnNewUser      += CtrlAdmin_BtnNewUser;
        }
コード例 #3
0
 /// <summary>
 /// Constructor for DbAdmin
 /// </summary>
 /// <param name="dbAdmin"></param>
 public AdminCtr(IDbAdmin dbAdmin)
 {
     DbAdmin = dbAdmin;
 }