public void InitialData() { DataSet dsUserDuty = UserDutyManagerClient.Current.GetUserDutyByID(UserID); AllocateDutyList = new ObservableCollection <DutyModel>(DataSetToModel.UserDutyToModel(dsUserDuty, 0)); UnAllocateDutyList = new ObservableCollection <DutyModel>(DataSetToModel.UserDutyToModel3(dsUserDuty, 1)); }
public void LoadOwnDutyList() { DataSet ds = UserDutyManagerClient.Current.GetUserDutyByID(SelectUser.UserId); OwnDutyList = new ObservableCollection <DutyModel>(DataSetToModel.UserDutyToModel(ds, 0)); }