private AutomatedBuildWindow(string StreamName, int Changelist, string Command, PerforceConnection DefaultConnection, string DefaultWorkspaceName, string DefaultProjectPath, TextWriter Log)
        {
            this.StreamName        = StreamName;
            this.DefaultConnection = DefaultConnection;
            this.Log = Log;

            InitializeComponent();

            ActiveControl = WorkspaceNameTextBox;

            MinimumSize = Size;
            MaximumSize = new Size(32768, Size.Height);

            SyncToChangeCheckBox.Text = String.Format("Sync to changelist {0}", Changelist);
            ExecCommandTextBox.Text   = Command;

            if (DefaultWorkspaceName != null)
            {
                WorkspaceNameTextBox.Text = DefaultWorkspaceName;
                WorkspaceNameTextBox.Select(WorkspaceNameTextBox.Text.Length, 0);
            }

            if (DefaultProjectPath != null)
            {
                WorkspacePathTextBox.Text = DefaultProjectPath;
                WorkspacePathTextBox.Select(WorkspacePathTextBox.Text.Length, 0);
            }

            UpdateServerLabel();
            UpdateOkButton();
            UpdateWorkspacePathBrowseButton();
        }
        private AutomatedSyncWindow(string StreamName, string ProjectPath, string WorkspaceName, TextWriter Log)
        {
            this.StreamName = StreamName;
            this.Log        = Log;

            InitializeComponent();

            ActiveControl = WorkspaceNameTextBox;

            MinimumSize = Size;
            MaximumSize = new Size(32768, Size.Height);

            ProjectTextBox.Text = StreamName + ProjectPath;

            if (WorkspaceName != null)
            {
                WorkspaceNameTextBox.Text = WorkspaceName;
                WorkspaceNameTextBox.Select(WorkspaceNameTextBox.Text.Length, 0);
            }

            UpdateServerLabel();
            UpdateOkButton();
        }