Ejemplo n.º 1
0
        public WorkGroupControl(IWorkGroupService service,
                                IWorkGroupManagerCategoryService wService,
                                IWorkGroupService mService)
        {
            InitializeComponent();
            this._wService = wService;
            this._mService = mService;
            this._service  = service;
            var managerC = _wService.List();

            if (managerC.Count > 0)
            {
                this.cbxManager.ItemsSource   = managerC;
                this.cbxManager.SelectedIndex = 0;
            }
            InitListView();
            this.lvwShow.SelectionChanged  += LvwShow_SelectionChanged1;
            this.lvwStaff.SelectionChanged += LvwStaff_SelectionChanged;
            this.btnSet.Click    += Btn_Click;
            this.btnCancel.Click += Btn_Click;
            this.btnRemove.Click += Btn_Click;

            this.btns.OnSave   += Btns_OnSave;
            this.btns.OnDelete += Btns_OnDelete;
            this.btns.OnReset  += Btns_OnReset;
        }
Ejemplo n.º 2
0
        public ManagerCategoryControl(IWorkGroupManagerCategoryService service)
        {
            InitializeComponent();
            this._service = service;

            InitListView();
            this.lvwShow.SelectionChanged += LvwShow_SelectionChanged1;

            this.btns.OnSave   += Btns_OnSave;
            this.btns.OnReset  += Btns_OnReset;
            this.btns.OnDelete += Btns_OnDelete;

            this.Btns_OnReset();
        }