private void refreshRoleFilterCombo() { try { ClientTeamRoles currentRecord = (Globals.SelectedClientRole != null) ? Globals.SelectedClientRole : Globals.DefaultClientRole; ProjectFunctions.SetClientRolesFilterList(currentClientID(), nameLike, exactName); RoleFilterCombo.ItemsSource = ProjectFunctions.ClientRolesFilterList; if (!ProjectFunctions.ClientRolesFilterList.Exists(rfl => rfl.RoleCode == currentRecord.RoleCode)) { currentRecord = Globals.AllClientRoles; } RoleFilterCombo.SelectedItem = ProjectFunctions.ClientRolesFilterList.First(rfl => rfl.RoleCode == currentRecord.RoleCode); } catch (Exception generalException) { MessageFunctions.Error("Error populating client project roles drop-down filter list", generalException); } }
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; }