예제 #1
0
        private void OkButton_Click(object sender, EventArgs e)
        {
            string[] NewGlobalView    = GlobalControl.GetView();
            string[] NewWorkspaceView = WorkspaceControl.GetView();

            if (NewGlobalView.Any(x => x.Contains("//")) || NewWorkspaceView.Any(x => x.Contains("//")))
            {
                if (MessageBox.Show(this, "Custom views should be relative to the stream root (eg. -/Engine/...).\r\n\r\nFull depot paths (eg. //depot/...) will not match any files.\r\n\r\nAre you sure you want to continue?", "Invalid view", MessageBoxButtons.OKCancel) != System.Windows.Forms.DialogResult.OK)
                {
                    return;
                }
            }

            GlobalView             = NewGlobalView;
            bGlobalSyncAllProjects = GlobalControl.SyncAllProjects.Checked;
            bGlobalIncludeAllProjectsInSolution = GlobalControl.IncludeAllProjectsInSolution.Checked;

            WorkspaceView             = NewWorkspaceView;
            bWorkspaceSyncAllProjects = (WorkspaceControl.SyncAllProjects.Checked == bGlobalSyncAllProjects)? (bool?)null : WorkspaceControl.SyncAllProjects.Checked;
            bWorkspaceIncludeAllProjectsInSolution = (WorkspaceControl.IncludeAllProjectsInSolution.Checked == bGlobalIncludeAllProjectsInSolution)? (bool?)null : WorkspaceControl.IncludeAllProjectsInSolution.Checked;

            GetExcludedCategories(out GlobalSyncCategories, out WorkspaceSyncCategories);

            DialogResult = DialogResult.OK;
        }
예제 #2
0
        private void OkButton_Click(object sender, EventArgs e)
        {
            string[] NewGlobalView    = GlobalControl.GetView();
            string[] NewWorkspaceView = WorkspaceControl.GetView();

            if (NewGlobalView.Any(x => x.Contains("//")) || NewWorkspaceView.Any(x => x.Contains("//")))
            {
                if (MessageBox.Show(this, "Custom views should be relative to the stream root (eg. -/Engine/...).\r\n\r\nFull depot paths (eg. //depot/...) will not match any files.\r\n\r\nAre you sure you want to continue?", "Invalid view", MessageBoxButtons.OKCancel) != System.Windows.Forms.DialogResult.OK)
                {
                    return;
                }
            }

            GlobalView = NewGlobalView;
            GlobalExcludedCategories    = GetExcludedCategories(GlobalControl.CategoriesCheckList, GlobalExcludedCategories);
            WorkspaceView               = NewWorkspaceView;
            WorkspaceExcludedCategories = GetExcludedCategories(WorkspaceControl.CategoriesCheckList, WorkspaceExcludedCategories);

            DialogResult = DialogResult.OK;
        }
예제 #3
0
        private void ShowCombinedView_Click(object sender, EventArgs e)
        {
            Dictionary <Guid, bool> NewGlobalSyncCategories;
            Dictionary <Guid, bool> NewWorkspaceSyncCategories;

            GetExcludedCategories(out NewGlobalSyncCategories, out NewWorkspaceSyncCategories);

            string[] Filter = UserSettings.GetCombinedSyncFilter(UniqueIdToCategory, GlobalControl.GetView(), NewGlobalSyncCategories, WorkspaceControl.GetView(), NewWorkspaceSyncCategories);
            if (Filter.Length == 0)
            {
                Filter = new string[] { "All files will be synced." };
            }
            MessageBox.Show(String.Join("\r\n", Filter), "Combined View");
        }
예제 #4
0
 private void ShowCombinedView_Click(object sender, EventArgs e)
 {
     string[] Filter = UserSettings.GetCombinedSyncFilter(UniqueIdToCategory, GlobalControl.GetView(), GetExcludedCategories(GlobalControl.CategoriesCheckList, GlobalExcludedCategories), WorkspaceControl.GetView(), GetExcludedCategories(WorkspaceControl.CategoriesCheckList, WorkspaceExcludedCategories));
     if (Filter.Length == 0)
     {
         Filter = new string[] { "All files will be synced." };
     }
     MessageBox.Show(String.Join("\r\n", Filter), "Combined View");
 }