private void refreshRoleFilterCombo()
 {
     try
     {
         ProjectRoles currentRecord = (Globals.SelectedProjectRole != null) ? Globals.SelectedProjectRole : Globals.DefaultProjectRole;
         ProjectFunctions.SetRolesFilterList(nameLike, exactName);
         RoleFilterCombo.ItemsSource = ProjectFunctions.RolesFilterList;
         if (!ProjectFunctions.RolesFilterList.Exists(rfl => rfl.RoleCode == currentRecord.RoleCode))
         {
             currentRecord = Globals.AllProjectRoles;
         }
         RoleFilterCombo.SelectedItem = ProjectFunctions.RolesFilterList.First(rfl => rfl.RoleCode == currentRecord.RoleCode);
     }
     catch (Exception generalException) { MessageFunctions.Error("Error populating project roles drop-down filter list", generalException); }
 }
Beispiel #2
0
        public static void ResetProjectParameters()
        {
            SelectedClientProxy  = DefaultClientProxy;
            SelectedPMProxy      = DefaultPMProxy;
            SelectedStatusFilter = DefaultStatusFilter;
            SelectedProjectProxy = DefaultProjectProxy;
            SelectedProjectRole  = DefaultProjectRole;
            SelectedClientRole   = DefaultClientRole;

            ProjectSourcePage = TilesPageName;
            ProjectSourceMode = PageFunctions.None;

            SelectedTeamTimeFilter = DefaultTeamTimeFilter;
            SelectedStage          = DefaultStage;
            SelectedTimelineType   = DefaultTimelineType;
            SelectedFromDate       = DefaultFromDate;
            SelectedToDate         = DefaultToDate;
            SelectedHistory        = null;
        }