private void btnSetupEditRepoAcctInfo_Click(object sender, EventArgs e) { if (null == this.formRepoAccountInfo) { this.formRepoAccountInfo = new RepoAccountInfoForm(); } this.formRepoAccountInfo.ShowDialog(this); }
private void DeleteRepoAcctInfo() { Properties.Settings.Default.SetupRepoAcctInfo = ""; Properties.Settings.Default.SetupRepoAccountHost = ""; Properties.Settings.Default.SetupRepoAccountPort = ""; Properties.Settings.Default.SetupRepoAccountLogin = ""; Properties.Settings.Default.SetupRepoAccountPassword = ""; Properties.Settings.Default.Save(); this.textBoxSetupRepoAcctInfo.Text = ""; this.formRepoAccountInfo.Dispose(); this.formRepoAccountInfo = new RepoAccountInfoForm(); }
private void ShowSetupTab() { this.formRepoAccountInfo = new RepoAccountInfoForm(); this.formAzureAccount = new AzureAccountForm(); this.tableLayoutPanelSetup = new System.Windows.Forms.TableLayoutPanel(); this.labelSetupWorkingFolderHelp = new System.Windows.Forms.Label(); this.textBoxSetupWorkingFolder = new System.Windows.Forms.TextBox(); this.textBoxSetupRepoAcctInfo = new System.Windows.Forms.TextBox(); this.textBoxAzureAcctInfo = new System.Windows.Forms.TextBox(); this.btnSetupRemoveRepoAcctInfo = new System.Windows.Forms.Button(); this.btnSetupRemoveAzureAcctInfo = new System.Windows.Forms.Button(); this.labelSetupAzureAccount = new System.Windows.Forms.Label(); this.labelSetupRepoAccount = new System.Windows.Forms.Label(); this.btnSetupBrowseFolder = new System.Windows.Forms.Button(); this.btnSetupEditRepoAcctInfo = new System.Windows.Forms.Button(); this.btnSetupEditAzureAcctInfo = new System.Windows.Forms.Button(); this.buttonSetupLoad = new System.Windows.Forms.Button(); this.folderBrowserWorkingDir = new System.Windows.Forms.FolderBrowserDialog(); LoadSetupSettings(); this.tabSetup.SuspendLayout(); this.tableLayoutPanelSetup.SuspendLayout(); // // tableLayoutPanelSetup // this.tableLayoutPanelSetup.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tableLayoutPanelSetup.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.tableLayoutPanelSetup.ColumnCount = 5; this.tableLayoutPanelSetup.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.tableLayoutPanelSetup.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanelSetup.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 76F)); this.tableLayoutPanelSetup.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 78F)); this.tableLayoutPanelSetup.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 157F)); this.tableLayoutPanelSetup.Controls.Add(this.labelSetupWorkingFolderHelp, 0, 0); this.tableLayoutPanelSetup.Controls.Add(this.textBoxSetupWorkingFolder, 0, 1); this.tableLayoutPanelSetup.Controls.Add(this.btnSetupBrowseFolder, 2, 1); this.tableLayoutPanelSetup.Controls.Add(this.labelSetupRepoAccount, 0, 2); this.tableLayoutPanelSetup.Controls.Add(this.textBoxSetupRepoAcctInfo, 0, 3); this.tableLayoutPanelSetup.Controls.Add(this.btnSetupEditRepoAcctInfo, 2, 3); this.tableLayoutPanelSetup.Controls.Add(this.btnSetupRemoveRepoAcctInfo, 3, 3); this.tableLayoutPanelSetup.Controls.Add(this.labelSetupAzureAccount, 0, 4); this.tableLayoutPanelSetup.Controls.Add(this.textBoxAzureAcctInfo, 0, 5); this.tableLayoutPanelSetup.Controls.Add(this.btnSetupEditAzureAcctInfo, 2, 5); this.tableLayoutPanelSetup.Controls.Add(this.btnSetupRemoveAzureAcctInfo, 3, 5); this.tableLayoutPanelSetup.Controls.Add(this.buttonSetupLoad, 0, 6); this.tableLayoutPanelSetup.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanelSetup.Name = "tableLayoutPanelSetup"; this.tableLayoutPanelSetup.RowCount = 7; this.tableLayoutPanelSetup.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50.72464F)); this.tableLayoutPanelSetup.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 49.27536F)); this.tableLayoutPanelSetup.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 73F)); this.tableLayoutPanelSetup.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 91F)); this.tableLayoutPanelSetup.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); this.tableLayoutPanelSetup.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 125F)); this.tableLayoutPanelSetup.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22)); this.tableLayoutPanelSetup.Size = new System.Drawing.Size(635, 398); this.tableLayoutPanelSetup.TabIndex = 0; this.tabSetup.Controls.Add(this.tableLayoutPanelSetup); // // labelSetupWorkingFolderHelp // this.labelSetupWorkingFolderHelp.AutoSize = true; this.tableLayoutPanelSetup.SetColumnSpan(this.labelSetupWorkingFolderHelp, 5); this.labelSetupWorkingFolderHelp.Dock = System.Windows.Forms.DockStyle.Fill; this.labelSetupWorkingFolderHelp.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSetupWorkingFolderHelp.Location = new System.Drawing.Point(3, 0); this.labelSetupWorkingFolderHelp.Name = "labelSetupWorkingFolderHelp"; this.labelSetupWorkingFolderHelp.Size = new System.Drawing.Size(629, 25); this.labelSetupWorkingFolderHelp.TabIndex = 9; this.labelSetupWorkingFolderHelp.Text = "Local working folder location (must be the output folder)"; this.labelSetupWorkingFolderHelp.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // textBoxSetupWorkingFolder // this.textBoxSetupWorkingFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tableLayoutPanelSetup.SetColumnSpan(this.textBoxSetupWorkingFolder, 2); this.textBoxSetupWorkingFolder.Location = new System.Drawing.Point(3, 33); this.textBoxSetupWorkingFolder.Name = "textBoxSetupWorkingFolder"; this.textBoxSetupWorkingFolder.Size = new System.Drawing.Size(318, 20); this.textBoxSetupWorkingFolder.TabIndex = 6; // // textBoxSetupRepoAcctInfo // this.tableLayoutPanelSetup.SetColumnSpan(this.textBoxSetupRepoAcctInfo, 2); this.textBoxSetupRepoAcctInfo.Dock = System.Windows.Forms.DockStyle.Fill; this.textBoxSetupRepoAcctInfo.Location = new System.Drawing.Point(3, 135); this.textBoxSetupRepoAcctInfo.Name = "textBoxSetupRepoAcctInfo"; this.textBoxSetupRepoAcctInfo.Size = new System.Drawing.Size(318, 20); this.textBoxSetupRepoAcctInfo.TabIndex = 3; // // textBoxAzureAcctInfo // this.tableLayoutPanelSetup.SetColumnSpan(this.textBoxAzureAcctInfo, 2); this.textBoxAzureAcctInfo.Dock = System.Windows.Forms.DockStyle.Fill; this.textBoxAzureAcctInfo.Location = new System.Drawing.Point(3, 255); this.textBoxAzureAcctInfo.Name = "textBoxAzureAcctInfo"; this.textBoxAzureAcctInfo.Size = new System.Drawing.Size(318, 20); this.textBoxAzureAcctInfo.TabIndex = 0; // // btnSetupRemoveRepoAcctInfo // this.btnSetupRemoveRepoAcctInfo.Location = new System.Drawing.Point(403, 135); this.btnSetupRemoveRepoAcctInfo.Name = "btnSetupRemoveRepoAcctInfo"; this.btnSetupRemoveRepoAcctInfo.Size = new System.Drawing.Size(72, 20); this.btnSetupRemoveRepoAcctInfo.TabIndex = 5; this.btnSetupRemoveRepoAcctInfo.Text = "Remove"; this.btnSetupRemoveRepoAcctInfo.UseVisualStyleBackColor = true; this.btnSetupRemoveRepoAcctInfo.Click += new System.EventHandler(this.btnSetupRemoveRepoAcctInfo_Click); // // btnSetupRemoveAzureAcctInfo // this.btnSetupRemoveAzureAcctInfo.Location = new System.Drawing.Point(403, 255); this.btnSetupRemoveAzureAcctInfo.Name = "btnSetupRemoveAzureAcctInfo"; this.btnSetupRemoveAzureAcctInfo.Size = new System.Drawing.Size(72, 20); this.btnSetupRemoveAzureAcctInfo.TabIndex = 2; this.btnSetupRemoveAzureAcctInfo.Text = "Remove"; this.btnSetupRemoveAzureAcctInfo.UseVisualStyleBackColor = true; this.btnSetupRemoveAzureAcctInfo.Click += new System.EventHandler(this.btnSetupRemoveAzureAcctInfo_Click); // // labelSetupAzureAccount // this.tableLayoutPanelSetup.SetColumnSpan(this.labelSetupAzureAccount, 2); this.labelSetupAzureAccount.Dock = System.Windows.Forms.DockStyle.Bottom; this.labelSetupAzureAccount.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSetupAzureAccount.Location = new System.Drawing.Point(3, 229); this.labelSetupAzureAccount.Name = "labelSetupAzureAccount"; this.labelSetupAzureAccount.Size = new System.Drawing.Size(318, 25); this.labelSetupAzureAccount.TabIndex = 12; this.labelSetupAzureAccount.Text = "Azure Storage Account"; // // labelSetupRepoAccount // this.tableLayoutPanelSetup.SetColumnSpan(this.labelSetupRepoAccount, 5); this.labelSetupRepoAccount.Dock = System.Windows.Forms.DockStyle.Bottom; this.labelSetupRepoAccount.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSetupRepoAccount.Location = new System.Drawing.Point(3, 107); this.labelSetupRepoAccount.Name = "labelSetupRepoAccount"; this.labelSetupRepoAccount.Size = new System.Drawing.Size(629, 25); this.labelSetupRepoAccount.TabIndex = 11; this.labelSetupRepoAccount.Text = "Repository Account (Secure FTP required)"; // // btnSetupBrowseFolder // this.btnSetupBrowseFolder.Location = new System.Drawing.Point(350, 45); this.btnSetupBrowseFolder.Name = "btnSetupBrowseFolder"; this.btnSetupBrowseFolder.Size = new System.Drawing.Size(70, 20); this.btnSetupBrowseFolder.TabIndex = 7; this.btnSetupBrowseFolder.Text = "Browse"; this.btnSetupBrowseFolder.UseVisualStyleBackColor = true; this.btnSetupBrowseFolder.Click += new System.EventHandler(this.btnSetupBrowseFolder_Click); // // btnSetupEditRepoAcctInfo // this.btnSetupEditRepoAcctInfo.Location = new System.Drawing.Point(327, 135); this.btnSetupEditRepoAcctInfo.Name = "btnSetupEditRepoAcctInfo"; this.btnSetupEditRepoAcctInfo.Size = new System.Drawing.Size(70, 20); this.btnSetupEditRepoAcctInfo.TabIndex = 4; this.btnSetupEditRepoAcctInfo.Text = "Edit"; this.btnSetupEditRepoAcctInfo.UseVisualStyleBackColor = true; this.btnSetupEditRepoAcctInfo.Click += new System.EventHandler(this.btnSetupEditRepoAcctInfo_Click); // // btnSetupEditAzureAcctInfo // this.btnSetupEditAzureAcctInfo.Location = new System.Drawing.Point(327, 255); this.btnSetupEditAzureAcctInfo.Name = "btnSetupEditAzureAcctInfo"; this.btnSetupEditAzureAcctInfo.Size = new System.Drawing.Size(70, 20); this.btnSetupEditAzureAcctInfo.TabIndex = 1; this.btnSetupEditAzureAcctInfo.Text = "Edit"; this.btnSetupEditAzureAcctInfo.UseVisualStyleBackColor = true; this.btnSetupEditAzureAcctInfo.Click += new System.EventHandler(this.btnSetupEditAzureAcctInfo_Click); // // buttonSetupLoad // this.labelSetupAzureAccount.Dock = System.Windows.Forms.DockStyle.Bottom; this.buttonSetupLoad.Size = new System.Drawing.Size(70, 20); this.buttonSetupLoad.Name = "buttonSetupLoad"; this.buttonSetupLoad.TabIndex = 8; this.buttonSetupLoad.Text = "Load"; this.buttonSetupLoad.UseVisualStyleBackColor = true; this.buttonSetupLoad.Margin = new Padding(0); this.buttonSetupLoad.Click += buttonSetupLoad_Click; // // folderBrowserWorkingDir // this.folderBrowserWorkingDir.Description = "Please navigate to the working folder directory"; this.folderBrowserWorkingDir.RootFolder = System.Environment.SpecialFolder.MyComputer; this.folderBrowserWorkingDir.ShowNewFolderButton = false; this.tabSetup.ResumeLayout(false); this.tableLayoutPanelSetup.ResumeLayout(false); this.tableLayoutPanelSetup.PerformLayout(); PopulateRepoAccountInfoTitle(); PopulateAzureAccountInfoTitle(); }