Exemplo n.º 1
0
        public SyncFilter(Dictionary <Guid, WorkspaceSyncCategory> InUniqueIdToCategory, string[] InGlobalView, Dictionary <Guid, bool> InGlobalSyncCategories, bool bInGlobalProjectOnly, bool bInGlobalIncludeAllProjectsInSolution, string[] InWorkspaceView, Dictionary <Guid, bool> InWorkspaceSyncCategories, bool?bInWorkspaceProjectOnly, bool?bInWorkspaceIncludeAllProjectsInSolution)
        {
            InitializeComponent();

            UniqueIdToCategory     = InUniqueIdToCategory;
            GlobalSyncCategories   = InGlobalSyncCategories;
            GlobalView             = InGlobalView;
            bGlobalSyncAllProjects = bInGlobalProjectOnly;
            bGlobalIncludeAllProjectsInSolution = bInGlobalIncludeAllProjectsInSolution;
            WorkspaceSyncCategories             = InWorkspaceSyncCategories;
            WorkspaceView             = InWorkspaceView;
            bWorkspaceSyncAllProjects = bInWorkspaceProjectOnly;
            bWorkspaceIncludeAllProjectsInSolution = bInWorkspaceIncludeAllProjectsInSolution;

            Dictionary <Guid, bool> SyncCategories = WorkspaceSyncCategory.GetDefault(UniqueIdToCategory.Values);

            WorkspaceSyncCategory.ApplyDelta(SyncCategories, InGlobalSyncCategories);
            GlobalControl.SetView(GlobalView);
            SetExcludedCategories(GlobalControl.CategoriesCheckList, UniqueIdToCategory, SyncCategories);
            GlobalControl.SyncAllProjects.Checked = bGlobalSyncAllProjects;
            GlobalControl.IncludeAllProjectsInSolution.Checked = bGlobalIncludeAllProjectsInSolution;

            WorkspaceSyncCategory.ApplyDelta(SyncCategories, InWorkspaceSyncCategories);
            WorkspaceControl.SetView(WorkspaceView);
            SetExcludedCategories(WorkspaceControl.CategoriesCheckList, UniqueIdToCategory, SyncCategories);
            WorkspaceControl.SyncAllProjects.Checked = bWorkspaceSyncAllProjects ?? bGlobalSyncAllProjects;
            WorkspaceControl.IncludeAllProjectsInSolution.Checked = bWorkspaceIncludeAllProjectsInSolution ?? bGlobalIncludeAllProjectsInSolution;

            GlobalControl.CategoriesCheckList.ItemCheck     += GlobalControl_CategoriesCheckList_ItemCheck;
            GlobalControl.SyncAllProjects.CheckStateChanged += GlobalControl_SyncAllProjects_CheckStateChanged;
            GlobalControl.IncludeAllProjectsInSolution.CheckStateChanged += GlobalControl_IncludeAllProjectsInSolution_CheckStateChanged;
        }
Exemplo n.º 2
0
        public SyncFilter(Dictionary <Guid, WorkspaceSyncCategory> InUniqueIdToCategory, string[] InGlobalView, Guid[] InGlobalExcludedCategories, string[] InWorkspaceView, Guid[] InWorkspaceExcludedCategories)
        {
            InitializeComponent();

            UniqueIdToCategory       = InUniqueIdToCategory;
            GlobalExcludedCategories = InGlobalExcludedCategories;
            GlobalView = InGlobalView;
            WorkspaceExcludedCategories = InWorkspaceExcludedCategories;
            WorkspaceView = InWorkspaceView;

            GlobalControl.SetView(GlobalView);
            SetExcludedCategories(GlobalControl.CategoriesCheckList, UniqueIdToCategory, GlobalExcludedCategories);
            WorkspaceControl.SetView(WorkspaceView);
            SetExcludedCategories(WorkspaceControl.CategoriesCheckList, UniqueIdToCategory, WorkspaceExcludedCategories);
        }
Exemplo n.º 3
0
        public SyncFilter(Dictionary <Guid, WorkspaceSyncCategory> InUniqueIdToCategory, string[] InGlobalView, Guid[] InGlobalExcludedCategories, bool bInGlobalProjectOnly, string[] InWorkspaceView, Guid[] InWorkspaceIncludedCategories, Guid[] InWorkspaceExcludedCategories, bool?bInWorkspaceProjectOnly)
        {
            InitializeComponent();

            UniqueIdToCategory       = InUniqueIdToCategory;
            GlobalExcludedCategories = InGlobalExcludedCategories;
            GlobalView                  = InGlobalView;
            bGlobalSyncAllProjects      = bInGlobalProjectOnly;
            WorkspaceIncludedCategories = InWorkspaceIncludedCategories;
            WorkspaceExcludedCategories = InWorkspaceExcludedCategories;
            WorkspaceView               = InWorkspaceView;
            bWorkspaceSyncAllProjects   = bInWorkspaceProjectOnly ?? bGlobalSyncAllProjects;

            GlobalControl.SetView(GlobalView);
            SetExcludedCategories(GlobalControl.CategoriesCheckList, UniqueIdToCategory, GlobalExcludedCategories);
            GlobalControl.SyncAllProjects.Checked = bGlobalSyncAllProjects;

            WorkspaceControl.SetView(WorkspaceView);
            SetExcludedCategories(WorkspaceControl.CategoriesCheckList, UniqueIdToCategory, UserSettings.GetEffectiveExcludedCategories(GlobalExcludedCategories, WorkspaceIncludedCategories, WorkspaceExcludedCategories));
            WorkspaceControl.SyncAllProjects.Checked = bWorkspaceSyncAllProjects ?? bGlobalSyncAllProjects;

            GlobalControl.CategoriesCheckList.ItemCheck     += GlobalControl_CategoriesCheckList_ItemCheck;
            GlobalControl.SyncAllProjects.CheckStateChanged += GlobalControl_SyncAllProjects_CheckStateChanged;
        }