コード例 #1
0
        public MechanicListControl(MechanicListModel model)
        {
            InitializeComponent();
            _presenter = new MechanicListPresenter(this, model);

            gvMechanic.PopupMenuShowing += gvMechanic_PopupMenuShowing;
            gvMechanic.FocusedRowChanged += gvMechanic_FocusedRowChanged;

            // init editor control accessibility
            btnNewMechanic.Enabled = AllowInsert;
            cmsEditData.Enabled = AllowEdit;
            cmsDeleteData.Enabled = AllowDelete;

            this.Load += MechanicListControl_Load;
        }
コード例 #2
0
        public MechanicListControl(MechanicListModel model)
        {
            InitializeComponent();
            _presenter = new MechanicListPresenter(this, model);

            gvMechanic.PopupMenuShowing  += gvMechanic_PopupMenuShowing;
            gvMechanic.FocusedRowChanged += gvMechanic_FocusedRowChanged;

            // init editor control accessibility
            btnNewMechanic.Enabled = AllowInsert;
            cmsEditData.Enabled    = AllowEdit;
            cmsDeleteData.Enabled  = AllowDelete;

            this.Load += MechanicListControl_Load;
        }