private void AddNewRole()
        {
            StaffMemberRole        r = new StaffMemberRole();
            DataStoreItemViewModel d = new DataStoreItemViewModel((StaffMemberRole)r);

            StaffMemberRoles.Add(r);
            DesktopApplication.MakeModalDocument(d, DesktopApplication.DocumentMode.New);
        }
示例#2
0
 public override void GetData()
 {
     base.GetData();
     _tasks     = DesktopApplication.GetLibrarian().GetTasks(DateTime.Today);
     _tasksView = DesktopApplication.CreateCollectionView(_tasks);
     _tasksView.SortDescriptions.Add(new SortDescription("SchedulingTime", ListSortDirection.Ascending));
     _tasksView.Filter = FilterTask;
     RaisePropertyChanged("TasksView");
     SelectedStaffMemberRole = StaffMemberRoles.Where(x => x.ID == Properties.Settings.Default.TaskListSelectedRoleID).First();
     ExcludeCompleted        = Properties.Settings.Default.TaskListExcludeCompleted;
 }