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; }
public ConsumeDataService() { this._workGroupService = new WorkGroupService(this.Context); }