diff --git a/PublishSite/PublishForm.Designer.cs b/PublishSite/PublishForm.Designer.cs index 5e814d0d..bda1698e 100644 --- a/PublishSite/PublishForm.Designer.cs +++ b/PublishSite/PublishForm.Designer.cs @@ -35,9 +35,32 @@ rb_local = new RadioButton(); groupBox3 = new GroupBox(); logTBox = new RichTextBox(); + tabControl1 = new TabControl(); + tabPage2 = new TabPage(); materialLabel3 = new MaterialSkin2DotNet.Controls.MaterialLabel(); - materialLabel2 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + backExePath = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); + backPathTBox = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); + bakConfigSaveBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + bakDbName = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); materialLabel1 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + materialLabel2 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + startBakBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + tabPage5 = new TabPage(); + publishFolderTBox = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); + publishFileTBox = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); + materialLabel4 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + selectPublishFilePathBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + sshNetCorePublishBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + sshNetCorePublishBtn2 = new MaterialSkin2DotNet.Controls.MaterialButton(); + sshVuePublishBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + materialLabel5 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + selectPublishFolderPathBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + tabPage6 = new TabPage(); + groupBox2 = new GroupBox(); + stopServiceBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + startServiceBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + label2 = new Label(); + startOrStopServiceTbox = new TextBox(); groupBox4 = new GroupBox(); selectPathBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); deleteService_Btn = new MaterialSkin2DotNet.Controls.MaterialButton(); @@ -53,44 +76,21 @@ label9 = new Label(); label1 = new Label(); exePathTbox = new TextBox(); - groupBox2 = new GroupBox(); - stopServiceBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); - startServiceBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); - label2 = new Label(); - startOrStopServiceTbox = new TextBox(); groupBox5 = new GroupBox(); netCorePublishBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); vuePublishBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); openFileDialog1 = new OpenFileDialog(); openPublishFileDialog = new OpenFileDialog(); folderBrowserDialog1 = new FolderBrowserDialog(); - materialTabControl1 = new MaterialSkin2DotNet.Controls.MaterialTabControl(); - tabPage3 = new TabPage(); - backPathTBox = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); - backExePath = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); - startBakBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); - bakDbName = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); - bakConfigSaveBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); - tabPage1 = new TabPage(); - publishFolderTBox = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); - publishFileTBox = new MaterialSkin2DotNet.Controls.MaterialMaskedTextBox(); - selectPublishFilePathBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); - sshNetCorePublishBtn2 = new MaterialSkin2DotNet.Controls.MaterialButton(); - materialLabel5 = new MaterialSkin2DotNet.Controls.MaterialLabel(); - selectPublishFolderPathBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); - sshVuePublishBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); - sshNetCorePublishBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); - materialLabel4 = new MaterialSkin2DotNet.Controls.MaterialLabel(); - tabPage4 = new TabPage(); groupBox1.SuspendLayout(); groupBox3.SuspendLayout(); - groupBox4.SuspendLayout(); + tabControl1.SuspendLayout(); + tabPage2.SuspendLayout(); + tabPage5.SuspendLayout(); + tabPage6.SuspendLayout(); groupBox2.SuspendLayout(); + groupBox4.SuspendLayout(); groupBox5.SuspendLayout(); - materialTabControl1.SuspendLayout(); - tabPage3.SuspendLayout(); - tabPage1.SuspendLayout(); - tabPage4.SuspendLayout(); SuspendLayout(); // // groupBox1 @@ -173,42 +173,543 @@ logTBox.TabIndex = 1; logTBox.Text = ""; // + // tabControl1 + // + tabControl1.Controls.Add(tabPage2); + tabControl1.Controls.Add(tabPage5); + tabControl1.Controls.Add(tabPage6); + tabControl1.Font = new Font("Microsoft YaHei UI", 10.5F, FontStyle.Regular, GraphicsUnit.Point); + tabControl1.Location = new Point(12, 310); + tabControl1.Name = "tabControl1"; + tabControl1.SelectedIndex = 0; + tabControl1.Size = new Size(672, 689); + tabControl1.TabIndex = 2; + // + // tabPage2 + // + tabPage2.BackColor = Color.White; + tabPage2.Controls.Add(materialLabel3); + tabPage2.Controls.Add(backExePath); + tabPage2.Controls.Add(backPathTBox); + tabPage2.Controls.Add(bakConfigSaveBtn); + tabPage2.Controls.Add(bakDbName); + tabPage2.Controls.Add(materialLabel1); + tabPage2.Controls.Add(materialLabel2); + tabPage2.Controls.Add(startBakBtn); + tabPage2.Location = new Point(4, 29); + tabPage2.Name = "tabPage2"; + tabPage2.Padding = new Padding(3); + tabPage2.Size = new Size(664, 656); + tabPage2.TabIndex = 0; + tabPage2.Text = "备份远程网站"; + // // materialLabel3 // materialLabel3.AutoSize = true; materialLabel3.Depth = 0; materialLabel3.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); - materialLabel3.Location = new Point(20, 305); + materialLabel3.Location = new Point(30, 290); materialLabel3.MouseState = MaterialSkin2DotNet.MouseState.HOVER; materialLabel3.Name = "materialLabel3"; materialLabel3.Size = new Size(225, 19); materialLabel3.TabIndex = 4; materialLabel3.Text = "后端数据库和程序备份根路径:"; // - // materialLabel2 + // backExePath // - materialLabel2.AutoSize = true; - materialLabel2.Depth = 0; - materialLabel2.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); - materialLabel2.Location = new Point(20, 174); - materialLabel2.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - materialLabel2.Name = "materialLabel2"; - materialLabel2.Size = new Size(129, 19); - materialLabel2.TabIndex = 3; - materialLabel2.Text = "被备份程序路径:"; + backExePath.AllowPromptAsInput = true; + backExePath.AnimateReadOnly = false; + backExePath.AsciiOnly = false; + backExePath.BackgroundImageLayout = ImageLayout.None; + backExePath.BeepOnError = false; + backExePath.CutCopyMaskFormat = MaskFormat.IncludeLiterals; + backExePath.Depth = 0; + backExePath.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); + backExePath.HidePromptOnLeave = false; + backExePath.HideSelection = true; + backExePath.InsertKeyMode = InsertKeyMode.Default; + backExePath.LeadingIcon = null; + backExePath.Location = new Point(30, 210); + backExePath.Mask = ""; + backExePath.MaxLength = 32767; + backExePath.MouseState = MaterialSkin2DotNet.MouseState.OUT; + backExePath.Name = "backExePath"; + backExePath.PasswordChar = '\0'; + backExePath.PrefixSuffixText = null; + backExePath.PromptChar = '_'; + backExePath.ReadOnly = false; + backExePath.RejectInputOnFirstFailure = false; + backExePath.ResetOnPrompt = true; + backExePath.ResetOnSpace = true; + backExePath.RightToLeft = RightToLeft.No; + backExePath.SelectedText = ""; + backExePath.SelectionLength = 0; + backExePath.SelectionStart = 0; + backExePath.ShortcutsEnabled = true; + backExePath.Size = new Size(583, 48); + backExePath.SkipLiterals = true; + backExePath.TabIndex = 3; + backExePath.TabStop = false; + backExePath.TextAlign = HorizontalAlignment.Left; + backExePath.TextMaskFormat = MaskFormat.IncludeLiterals; + backExePath.TrailingIcon = null; + backExePath.UseSystemPasswordChar = false; + backExePath.ValidatingType = null; + // + // backPathTBox + // + backPathTBox.AllowPromptAsInput = true; + backPathTBox.AnimateReadOnly = false; + backPathTBox.AsciiOnly = false; + backPathTBox.BackgroundImageLayout = ImageLayout.None; + backPathTBox.BeepOnError = false; + backPathTBox.CutCopyMaskFormat = MaskFormat.IncludeLiterals; + backPathTBox.Depth = 0; + backPathTBox.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); + backPathTBox.HidePromptOnLeave = false; + backPathTBox.HideSelection = true; + backPathTBox.InsertKeyMode = InsertKeyMode.Default; + backPathTBox.LeadingIcon = null; + backPathTBox.Location = new Point(30, 341); + backPathTBox.Mask = ""; + backPathTBox.MaxLength = 32767; + backPathTBox.MouseState = MaterialSkin2DotNet.MouseState.OUT; + backPathTBox.Name = "backPathTBox"; + backPathTBox.PasswordChar = '\0'; + backPathTBox.PrefixSuffixText = null; + backPathTBox.PromptChar = '_'; + backPathTBox.ReadOnly = false; + backPathTBox.RejectInputOnFirstFailure = false; + backPathTBox.ResetOnPrompt = true; + backPathTBox.ResetOnSpace = true; + backPathTBox.RightToLeft = RightToLeft.No; + backPathTBox.SelectedText = ""; + backPathTBox.SelectionLength = 0; + backPathTBox.SelectionStart = 0; + backPathTBox.ShortcutsEnabled = true; + backPathTBox.Size = new Size(583, 48); + backPathTBox.SkipLiterals = true; + backPathTBox.TabIndex = 4; + backPathTBox.TabStop = false; + backPathTBox.TextAlign = HorizontalAlignment.Left; + backPathTBox.TextMaskFormat = MaskFormat.IncludeLiterals; + backPathTBox.TrailingIcon = null; + backPathTBox.UseSystemPasswordChar = false; + backPathTBox.ValidatingType = null; + // + // bakConfigSaveBtn + // + bakConfigSaveBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + bakConfigSaveBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + bakConfigSaveBtn.Depth = 0; + bakConfigSaveBtn.HighEmphasis = true; + bakConfigSaveBtn.Icon = null; + bakConfigSaveBtn.Location = new Point(120, 504); + bakConfigSaveBtn.Margin = new Padding(4, 6, 4, 6); + bakConfigSaveBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + bakConfigSaveBtn.Name = "bakConfigSaveBtn"; + bakConfigSaveBtn.NoAccentTextColor = Color.Empty; + bakConfigSaveBtn.Size = new Size(117, 36); + bakConfigSaveBtn.TabIndex = 43; + bakConfigSaveBtn.Text = "备份配置保存"; + bakConfigSaveBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + bakConfigSaveBtn.UseAccentColor = false; + bakConfigSaveBtn.UseVisualStyleBackColor = true; + bakConfigSaveBtn.Click += bakConfigSaveBtn_Click; + // + // bakDbName + // + bakDbName.AllowPromptAsInput = true; + bakDbName.AnimateReadOnly = false; + bakDbName.AsciiOnly = false; + bakDbName.BackgroundImageLayout = ImageLayout.None; + bakDbName.BeepOnError = false; + bakDbName.CutCopyMaskFormat = MaskFormat.IncludeLiterals; + bakDbName.Depth = 0; + bakDbName.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); + bakDbName.HidePromptOnLeave = false; + bakDbName.HideSelection = true; + bakDbName.InsertKeyMode = InsertKeyMode.Default; + bakDbName.LeadingIcon = null; + bakDbName.Location = new Point(30, 79); + bakDbName.Mask = ""; + bakDbName.MaxLength = 32767; + bakDbName.MouseState = MaterialSkin2DotNet.MouseState.OUT; + bakDbName.Name = "bakDbName"; + bakDbName.PasswordChar = '\0'; + bakDbName.PrefixSuffixText = null; + bakDbName.PromptChar = '_'; + bakDbName.ReadOnly = false; + bakDbName.RejectInputOnFirstFailure = false; + bakDbName.ResetOnPrompt = true; + bakDbName.ResetOnSpace = true; + bakDbName.RightToLeft = RightToLeft.No; + bakDbName.SelectedText = ""; + bakDbName.SelectionLength = 0; + bakDbName.SelectionStart = 0; + bakDbName.ShortcutsEnabled = true; + bakDbName.Size = new Size(583, 48); + bakDbName.SkipLiterals = true; + bakDbName.TabIndex = 2; + bakDbName.TabStop = false; + bakDbName.TextAlign = HorizontalAlignment.Left; + bakDbName.TextMaskFormat = MaskFormat.IncludeLiterals; + bakDbName.TrailingIcon = null; + bakDbName.UseSystemPasswordChar = false; + bakDbName.ValidatingType = null; // // materialLabel1 // materialLabel1.AutoSize = true; materialLabel1.Depth = 0; materialLabel1.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); - materialLabel1.Location = new Point(20, 43); + materialLabel1.Location = new Point(30, 28); materialLabel1.MouseState = MaterialSkin2DotNet.MouseState.HOVER; materialLabel1.Name = "materialLabel1"; materialLabel1.Size = new Size(129, 19); materialLabel1.TabIndex = 2; materialLabel1.Text = "被备份数据库名:"; // + // materialLabel2 + // + materialLabel2.AutoSize = true; + materialLabel2.Depth = 0; + materialLabel2.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); + materialLabel2.Location = new Point(30, 159); + materialLabel2.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + materialLabel2.Name = "materialLabel2"; + materialLabel2.Size = new Size(129, 19); + materialLabel2.TabIndex = 3; + materialLabel2.Text = "被备份程序路径:"; + // + // startBakBtn + // + startBakBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + startBakBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + startBakBtn.Depth = 0; + startBakBtn.HighEmphasis = true; + startBakBtn.Icon = null; + startBakBtn.Location = new Point(405, 504); + startBakBtn.Margin = new Padding(4, 6, 4, 6); + startBakBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + startBakBtn.Name = "startBakBtn"; + startBakBtn.NoAccentTextColor = Color.Empty; + startBakBtn.Size = new Size(85, 36); + startBakBtn.TabIndex = 44; + startBakBtn.Text = "开始备份"; + startBakBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + startBakBtn.UseAccentColor = false; + startBakBtn.UseVisualStyleBackColor = true; + startBakBtn.Click += startBakBtn_Click; + // + // tabPage5 + // + tabPage5.BackColor = Color.White; + tabPage5.Controls.Add(publishFolderTBox); + tabPage5.Controls.Add(publishFileTBox); + tabPage5.Controls.Add(materialLabel4); + tabPage5.Controls.Add(selectPublishFilePathBtn); + tabPage5.Controls.Add(sshNetCorePublishBtn); + tabPage5.Controls.Add(sshNetCorePublishBtn2); + tabPage5.Controls.Add(sshVuePublishBtn); + tabPage5.Controls.Add(materialLabel5); + tabPage5.Controls.Add(selectPublishFolderPathBtn); + tabPage5.Location = new Point(4, 29); + tabPage5.Name = "tabPage5"; + tabPage5.Padding = new Padding(3); + tabPage5.Size = new Size(664, 656); + tabPage5.TabIndex = 1; + tabPage5.Text = "发布远程网站"; + // + // publishFolderTBox + // + publishFolderTBox.AllowPromptAsInput = true; + publishFolderTBox.AnimateReadOnly = false; + publishFolderTBox.AsciiOnly = false; + publishFolderTBox.BackgroundImageLayout = ImageLayout.None; + publishFolderTBox.BeepOnError = false; + publishFolderTBox.CutCopyMaskFormat = MaskFormat.IncludeLiterals; + publishFolderTBox.Depth = 0; + publishFolderTBox.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); + publishFolderTBox.HidePromptOnLeave = false; + publishFolderTBox.HideSelection = true; + publishFolderTBox.InsertKeyMode = InsertKeyMode.Default; + publishFolderTBox.LeadingIcon = null; + publishFolderTBox.Location = new Point(20, 448); + publishFolderTBox.Mask = ""; + publishFolderTBox.MaxLength = 32767; + publishFolderTBox.MouseState = MaterialSkin2DotNet.MouseState.OUT; + publishFolderTBox.Name = "publishFolderTBox"; + publishFolderTBox.PasswordChar = '\0'; + publishFolderTBox.PrefixSuffixText = null; + publishFolderTBox.PromptChar = '_'; + publishFolderTBox.ReadOnly = false; + publishFolderTBox.RejectInputOnFirstFailure = false; + publishFolderTBox.ResetOnPrompt = true; + publishFolderTBox.ResetOnSpace = true; + publishFolderTBox.RightToLeft = RightToLeft.No; + publishFolderTBox.SelectedText = ""; + publishFolderTBox.SelectionLength = 0; + publishFolderTBox.SelectionStart = 0; + publishFolderTBox.ShortcutsEnabled = true; + publishFolderTBox.Size = new Size(483, 48); + publishFolderTBox.SkipLiterals = true; + publishFolderTBox.TabIndex = 60; + publishFolderTBox.TabStop = false; + publishFolderTBox.TextAlign = HorizontalAlignment.Left; + publishFolderTBox.TextMaskFormat = MaskFormat.IncludeLiterals; + publishFolderTBox.TrailingIcon = null; + publishFolderTBox.UseSystemPasswordChar = false; + publishFolderTBox.ValidatingType = null; + // + // publishFileTBox + // + publishFileTBox.AllowPromptAsInput = true; + publishFileTBox.AnimateReadOnly = false; + publishFileTBox.AsciiOnly = false; + publishFileTBox.BackgroundImageLayout = ImageLayout.None; + publishFileTBox.BeepOnError = false; + publishFileTBox.CutCopyMaskFormat = MaskFormat.IncludeLiterals; + publishFileTBox.Depth = 0; + publishFileTBox.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); + publishFileTBox.HidePromptOnLeave = false; + publishFileTBox.HideSelection = true; + publishFileTBox.InsertKeyMode = InsertKeyMode.Default; + publishFileTBox.LeadingIcon = null; + publishFileTBox.Location = new Point(20, 76); + publishFileTBox.Mask = ""; + publishFileTBox.MaxLength = 32767; + publishFileTBox.MouseState = MaterialSkin2DotNet.MouseState.OUT; + publishFileTBox.Name = "publishFileTBox"; + publishFileTBox.PasswordChar = '\0'; + publishFileTBox.PrefixSuffixText = null; + publishFileTBox.PromptChar = '_'; + publishFileTBox.ReadOnly = false; + publishFileTBox.RejectInputOnFirstFailure = false; + publishFileTBox.ResetOnPrompt = true; + publishFileTBox.ResetOnSpace = true; + publishFileTBox.RightToLeft = RightToLeft.No; + publishFileTBox.SelectedText = ""; + publishFileTBox.SelectionLength = 0; + publishFileTBox.SelectionStart = 0; + publishFileTBox.ShortcutsEnabled = true; + publishFileTBox.Size = new Size(483, 48); + publishFileTBox.SkipLiterals = true; + publishFileTBox.TabIndex = 59; + publishFileTBox.TabStop = false; + publishFileTBox.TextAlign = HorizontalAlignment.Left; + publishFileTBox.TextMaskFormat = MaskFormat.IncludeLiterals; + publishFileTBox.TrailingIcon = null; + publishFileTBox.UseSystemPasswordChar = false; + publishFileTBox.ValidatingType = null; + // + // materialLabel4 + // + materialLabel4.AutoSize = true; + materialLabel4.Depth = 0; + materialLabel4.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); + materialLabel4.Location = new Point(20, 30); + materialLabel4.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + materialLabel4.Name = "materialLabel4"; + materialLabel4.Size = new Size(473, 19); + materialLabel4.TabIndex = 57; + materialLabel4.Text = "方式一: 前端发布选择html | 后端发布选择压缩包 (上传后发布)"; + // + // selectPublishFilePathBtn + // + selectPublishFilePathBtn.AutoSize = false; + selectPublishFilePathBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + selectPublishFilePathBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + selectPublishFilePathBtn.Depth = 0; + selectPublishFilePathBtn.HighEmphasis = true; + selectPublishFilePathBtn.Icon = null; + selectPublishFilePathBtn.Location = new Point(523, 85); + selectPublishFilePathBtn.Margin = new Padding(4, 6, 4, 6); + selectPublishFilePathBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + selectPublishFilePathBtn.Name = "selectPublishFilePathBtn"; + selectPublishFilePathBtn.NoAccentTextColor = Color.Empty; + selectPublishFilePathBtn.Size = new Size(85, 30); + selectPublishFilePathBtn.TabIndex = 43; + selectPublishFilePathBtn.Text = "选择"; + selectPublishFilePathBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + selectPublishFilePathBtn.UseAccentColor = false; + selectPublishFilePathBtn.UseVisualStyleBackColor = true; + selectPublishFilePathBtn.Click += selectPublishFilePathBtn_Click; + // + // sshNetCorePublishBtn + // + sshNetCorePublishBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + sshNetCorePublishBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + sshNetCorePublishBtn.Depth = 0; + sshNetCorePublishBtn.HighEmphasis = true; + sshNetCorePublishBtn.Icon = null; + sshNetCorePublishBtn.Location = new Point(389, 174); + sshNetCorePublishBtn.Margin = new Padding(4, 6, 4, 6); + sshNetCorePublishBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + sshNetCorePublishBtn.Name = "sshNetCorePublishBtn"; + sshNetCorePublishBtn.NoAccentTextColor = Color.Empty; + sshNetCorePublishBtn.Size = new Size(85, 36); + sshNetCorePublishBtn.TabIndex = 54; + sshNetCorePublishBtn.Text = "发布后端"; + sshNetCorePublishBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + sshNetCorePublishBtn.UseAccentColor = false; + sshNetCorePublishBtn.UseVisualStyleBackColor = true; + sshNetCorePublishBtn.Click += sshNetCorePublishBtn_Click; + // + // sshNetCorePublishBtn2 + // + sshNetCorePublishBtn2.AutoSizeMode = AutoSizeMode.GrowAndShrink; + sshNetCorePublishBtn2.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + sshNetCorePublishBtn2.Depth = 0; + sshNetCorePublishBtn2.HighEmphasis = true; + sshNetCorePublishBtn2.Icon = null; + sshNetCorePublishBtn2.Location = new Point(389, 543); + sshNetCorePublishBtn2.Margin = new Padding(4, 6, 4, 6); + sshNetCorePublishBtn2.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + sshNetCorePublishBtn2.Name = "sshNetCorePublishBtn2"; + sshNetCorePublishBtn2.NoAccentTextColor = Color.Empty; + sshNetCorePublishBtn2.Size = new Size(85, 36); + sshNetCorePublishBtn2.TabIndex = 55; + sshNetCorePublishBtn2.Text = "发布后端"; + sshNetCorePublishBtn2.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + sshNetCorePublishBtn2.UseAccentColor = false; + sshNetCorePublishBtn2.UseVisualStyleBackColor = true; + sshNetCorePublishBtn2.Click += sshNetCorePublishBtn2_Click; + // + // sshVuePublishBtn + // + sshVuePublishBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + sshVuePublishBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + sshVuePublishBtn.Depth = 0; + sshVuePublishBtn.HighEmphasis = true; + sshVuePublishBtn.Icon = null; + sshVuePublishBtn.Location = new Point(136, 174); + sshVuePublishBtn.Margin = new Padding(4, 6, 4, 6); + sshVuePublishBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + sshVuePublishBtn.Name = "sshVuePublishBtn"; + sshVuePublishBtn.NoAccentTextColor = Color.Empty; + sshVuePublishBtn.Size = new Size(85, 36); + sshVuePublishBtn.TabIndex = 53; + sshVuePublishBtn.Text = "发布前端"; + sshVuePublishBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + sshVuePublishBtn.UseAccentColor = false; + sshVuePublishBtn.UseVisualStyleBackColor = true; + sshVuePublishBtn.Click += sshVuePublishBtn_Click; + // + // materialLabel5 + // + materialLabel5.AutoSize = true; + materialLabel5.Depth = 0; + materialLabel5.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); + materialLabel5.Location = new Point(20, 401); + materialLabel5.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + materialLabel5.Name = "materialLabel5"; + materialLabel5.Size = new Size(501, 19); + materialLabel5.TabIndex = 58; + materialLabel5.Text = "方式二: 后端发布程序文件夹(程序自动打成压缩包,上传然后发布)"; + // + // selectPublishFolderPathBtn + // + selectPublishFolderPathBtn.AutoSize = false; + selectPublishFolderPathBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + selectPublishFolderPathBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + selectPublishFolderPathBtn.Depth = 0; + selectPublishFolderPathBtn.HighEmphasis = true; + selectPublishFolderPathBtn.Icon = null; + selectPublishFolderPathBtn.Location = new Point(523, 457); + selectPublishFolderPathBtn.Margin = new Padding(4, 6, 4, 6); + selectPublishFolderPathBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + selectPublishFolderPathBtn.Name = "selectPublishFolderPathBtn"; + selectPublishFolderPathBtn.NoAccentTextColor = Color.Empty; + selectPublishFolderPathBtn.Size = new Size(85, 30); + selectPublishFolderPathBtn.TabIndex = 56; + selectPublishFolderPathBtn.Text = "选择"; + selectPublishFolderPathBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + selectPublishFolderPathBtn.UseAccentColor = false; + selectPublishFolderPathBtn.UseVisualStyleBackColor = true; + selectPublishFolderPathBtn.Click += selectPublishFolderPathBtn_Click; + // + // tabPage6 + // + tabPage6.BackColor = Color.White; + tabPage6.Controls.Add(groupBox2); + tabPage6.Controls.Add(groupBox4); + tabPage6.Location = new Point(4, 29); + tabPage6.Name = "tabPage6"; + tabPage6.Padding = new Padding(3); + tabPage6.Size = new Size(664, 656); + tabPage6.TabIndex = 2; + tabPage6.Text = "服务相关操作"; + // + // groupBox2 + // + groupBox2.Controls.Add(stopServiceBtn); + groupBox2.Controls.Add(startServiceBtn); + groupBox2.Controls.Add(label2); + groupBox2.Controls.Add(startOrStopServiceTbox); + groupBox2.Location = new Point(10, 451); + groupBox2.Name = "groupBox2"; + groupBox2.Size = new Size(645, 189); + groupBox2.TabIndex = 39; + groupBox2.TabStop = false; + groupBox2.Text = "服务停止与启动"; + // + // stopServiceBtn + // + stopServiceBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + stopServiceBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + stopServiceBtn.Depth = 0; + stopServiceBtn.HighEmphasis = true; + stopServiceBtn.Icon = null; + stopServiceBtn.Location = new Point(379, 119); + stopServiceBtn.Margin = new Padding(4, 6, 4, 6); + stopServiceBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + stopServiceBtn.Name = "stopServiceBtn"; + stopServiceBtn.NoAccentTextColor = Color.Empty; + stopServiceBtn.Size = new Size(85, 36); + stopServiceBtn.TabIndex = 44; + stopServiceBtn.Text = "停止服务"; + stopServiceBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + stopServiceBtn.UseAccentColor = false; + stopServiceBtn.UseVisualStyleBackColor = true; + stopServiceBtn.Click += stopServiceBtn_Click; + // + // startServiceBtn + // + startServiceBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + startServiceBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + startServiceBtn.Depth = 0; + startServiceBtn.HighEmphasis = true; + startServiceBtn.Icon = null; + startServiceBtn.Location = new Point(126, 119); + startServiceBtn.Margin = new Padding(4, 6, 4, 6); + startServiceBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + startServiceBtn.Name = "startServiceBtn"; + startServiceBtn.NoAccentTextColor = Color.Empty; + startServiceBtn.Size = new Size(85, 36); + startServiceBtn.TabIndex = 43; + startServiceBtn.Text = "启动服务"; + startServiceBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + startServiceBtn.UseAccentColor = false; + startServiceBtn.UseVisualStyleBackColor = true; + startServiceBtn.Click += startServiceBtn_Click; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new Point(60, 57); + label2.Name = "label2"; + label2.Size = new Size(65, 20); + label2.TabIndex = 32; + label2.Text = "服务名称"; + // + // startOrStopServiceTbox + // + startOrStopServiceTbox.Location = new Point(141, 54); + startOrStopServiceTbox.Name = "startOrStopServiceTbox"; + startOrStopServiceTbox.Size = new Size(366, 25); + startOrStopServiceTbox.TabIndex = 31; + // // groupBox4 // groupBox4.Controls.Add(selectPathBtn); @@ -225,7 +726,7 @@ groupBox4.Controls.Add(label9); groupBox4.Controls.Add(label1); groupBox4.Controls.Add(exePathTbox); - groupBox4.Location = new Point(6, 8); + groupBox4.Location = new Point(6, 6); groupBox4.Name = "groupBox4"; groupBox4.Size = new Size(645, 414); groupBox4.TabIndex = 40; @@ -394,75 +895,6 @@ exePathTbox.Size = new Size(353, 25); exePathTbox.TabIndex = 33; // - // groupBox2 - // - groupBox2.Controls.Add(stopServiceBtn); - groupBox2.Controls.Add(startServiceBtn); - groupBox2.Controls.Add(label2); - groupBox2.Controls.Add(startOrStopServiceTbox); - groupBox2.Location = new Point(11, 428); - groupBox2.Name = "groupBox2"; - groupBox2.Size = new Size(645, 232); - groupBox2.TabIndex = 39; - groupBox2.TabStop = false; - groupBox2.Text = "服务停止与启动"; - // - // stopServiceBtn - // - stopServiceBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; - stopServiceBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - stopServiceBtn.Depth = 0; - stopServiceBtn.HighEmphasis = true; - stopServiceBtn.Icon = null; - stopServiceBtn.Location = new Point(378, 119); - stopServiceBtn.Margin = new Padding(4, 6, 4, 6); - stopServiceBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - stopServiceBtn.Name = "stopServiceBtn"; - stopServiceBtn.NoAccentTextColor = Color.Empty; - stopServiceBtn.Size = new Size(85, 36); - stopServiceBtn.TabIndex = 44; - stopServiceBtn.Text = "停止服务"; - stopServiceBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - stopServiceBtn.UseAccentColor = false; - stopServiceBtn.UseVisualStyleBackColor = true; - stopServiceBtn.Click += stopServiceBtn_Click; - // - // startServiceBtn - // - startServiceBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; - startServiceBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - startServiceBtn.Depth = 0; - startServiceBtn.HighEmphasis = true; - startServiceBtn.Icon = null; - startServiceBtn.Location = new Point(125, 134); - startServiceBtn.Margin = new Padding(4, 6, 4, 6); - startServiceBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - startServiceBtn.Name = "startServiceBtn"; - startServiceBtn.NoAccentTextColor = Color.Empty; - startServiceBtn.Size = new Size(85, 36); - startServiceBtn.TabIndex = 43; - startServiceBtn.Text = "启动服务"; - startServiceBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - startServiceBtn.UseAccentColor = false; - startServiceBtn.UseVisualStyleBackColor = true; - startServiceBtn.Click += startServiceBtn_Click; - // - // label2 - // - label2.AutoSize = true; - label2.Location = new Point(60, 57); - label2.Name = "label2"; - label2.Size = new Size(65, 20); - label2.TabIndex = 32; - label2.Text = "服务名称"; - // - // startOrStopServiceTbox - // - startOrStopServiceTbox.Location = new Point(141, 54); - startOrStopServiceTbox.Name = "startOrStopServiceTbox"; - startOrStopServiceTbox.Size = new Size(366, 25); - startOrStopServiceTbox.TabIndex = 31; - // // groupBox5 // groupBox5.Controls.Add(netCorePublishBtn); @@ -523,468 +955,33 @@ // openPublishFileDialog.FileName = "openFileDialog2"; // - // materialTabControl1 - // - materialTabControl1.Controls.Add(tabPage3); - materialTabControl1.Controls.Add(tabPage1); - materialTabControl1.Controls.Add(tabPage4); - materialTabControl1.Depth = 0; - materialTabControl1.Font = new Font("Microsoft YaHei UI", 10.5F, FontStyle.Regular, GraphicsUnit.Point); - materialTabControl1.Location = new Point(6, 309); - materialTabControl1.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - materialTabControl1.Multiline = true; - materialTabControl1.Name = "materialTabControl1"; - materialTabControl1.SelectedIndex = 0; - materialTabControl1.Size = new Size(669, 678); - materialTabControl1.TabIndex = 2; - // - // tabPage3 - // - tabPage3.BackColor = Color.White; - tabPage3.Controls.Add(materialLabel3); - tabPage3.Controls.Add(backPathTBox); - tabPage3.Controls.Add(backExePath); - tabPage3.Controls.Add(materialLabel1); - tabPage3.Controls.Add(startBakBtn); - tabPage3.Controls.Add(materialLabel2); - tabPage3.Controls.Add(bakDbName); - tabPage3.Controls.Add(bakConfigSaveBtn); - tabPage3.ForeColor = SystemColors.ControlText; - tabPage3.Location = new Point(4, 29); - tabPage3.Name = "tabPage3"; - tabPage3.Padding = new Padding(3); - tabPage3.Size = new Size(661, 645); - tabPage3.TabIndex = 0; - tabPage3.Text = "备份远程网站"; - // - // backPathTBox - // - backPathTBox.AllowPromptAsInput = true; - backPathTBox.AnimateReadOnly = false; - backPathTBox.AsciiOnly = false; - backPathTBox.BackgroundImageLayout = ImageLayout.None; - backPathTBox.BeepOnError = false; - backPathTBox.CutCopyMaskFormat = MaskFormat.IncludeLiterals; - backPathTBox.Depth = 0; - backPathTBox.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); - backPathTBox.HidePromptOnLeave = false; - backPathTBox.HideSelection = true; - backPathTBox.InsertKeyMode = InsertKeyMode.Default; - backPathTBox.LeadingIcon = null; - backPathTBox.Location = new Point(20, 356); - backPathTBox.Mask = ""; - backPathTBox.MaxLength = 32767; - backPathTBox.MouseState = MaterialSkin2DotNet.MouseState.OUT; - backPathTBox.Name = "backPathTBox"; - backPathTBox.PasswordChar = '\0'; - backPathTBox.PrefixSuffixText = null; - backPathTBox.PromptChar = '_'; - backPathTBox.ReadOnly = false; - backPathTBox.RejectInputOnFirstFailure = false; - backPathTBox.ResetOnPrompt = true; - backPathTBox.ResetOnSpace = true; - backPathTBox.RightToLeft = RightToLeft.No; - backPathTBox.SelectedText = ""; - backPathTBox.SelectionLength = 0; - backPathTBox.SelectionStart = 0; - backPathTBox.ShortcutsEnabled = true; - backPathTBox.Size = new Size(583, 48); - backPathTBox.SkipLiterals = true; - backPathTBox.TabIndex = 4; - backPathTBox.TabStop = false; - backPathTBox.TextAlign = HorizontalAlignment.Left; - backPathTBox.TextMaskFormat = MaskFormat.IncludeLiterals; - backPathTBox.TrailingIcon = null; - backPathTBox.UseSystemPasswordChar = false; - backPathTBox.ValidatingType = null; - // - // backExePath - // - backExePath.AllowPromptAsInput = true; - backExePath.AnimateReadOnly = false; - backExePath.AsciiOnly = false; - backExePath.BackgroundImageLayout = ImageLayout.None; - backExePath.BeepOnError = false; - backExePath.CutCopyMaskFormat = MaskFormat.IncludeLiterals; - backExePath.Depth = 0; - backExePath.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); - backExePath.HidePromptOnLeave = false; - backExePath.HideSelection = true; - backExePath.InsertKeyMode = InsertKeyMode.Default; - backExePath.LeadingIcon = null; - backExePath.Location = new Point(20, 225); - backExePath.Mask = ""; - backExePath.MaxLength = 32767; - backExePath.MouseState = MaterialSkin2DotNet.MouseState.OUT; - backExePath.Name = "backExePath"; - backExePath.PasswordChar = '\0'; - backExePath.PrefixSuffixText = null; - backExePath.PromptChar = '_'; - backExePath.ReadOnly = false; - backExePath.RejectInputOnFirstFailure = false; - backExePath.ResetOnPrompt = true; - backExePath.ResetOnSpace = true; - backExePath.RightToLeft = RightToLeft.No; - backExePath.SelectedText = ""; - backExePath.SelectionLength = 0; - backExePath.SelectionStart = 0; - backExePath.ShortcutsEnabled = true; - backExePath.Size = new Size(583, 48); - backExePath.SkipLiterals = true; - backExePath.TabIndex = 3; - backExePath.TabStop = false; - backExePath.TextAlign = HorizontalAlignment.Left; - backExePath.TextMaskFormat = MaskFormat.IncludeLiterals; - backExePath.TrailingIcon = null; - backExePath.UseSystemPasswordChar = false; - backExePath.ValidatingType = null; - // - // startBakBtn - // - startBakBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; - startBakBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - startBakBtn.Depth = 0; - startBakBtn.HighEmphasis = true; - startBakBtn.Icon = null; - startBakBtn.Location = new Point(395, 519); - startBakBtn.Margin = new Padding(4, 6, 4, 6); - startBakBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - startBakBtn.Name = "startBakBtn"; - startBakBtn.NoAccentTextColor = Color.Empty; - startBakBtn.Size = new Size(85, 36); - startBakBtn.TabIndex = 44; - startBakBtn.Text = "开始备份"; - startBakBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - startBakBtn.UseAccentColor = false; - startBakBtn.UseVisualStyleBackColor = true; - startBakBtn.Click += startBakBtn_Click; - // - // bakDbName - // - bakDbName.AllowPromptAsInput = true; - bakDbName.AnimateReadOnly = false; - bakDbName.AsciiOnly = false; - bakDbName.BackgroundImageLayout = ImageLayout.None; - bakDbName.BeepOnError = false; - bakDbName.CutCopyMaskFormat = MaskFormat.IncludeLiterals; - bakDbName.Depth = 0; - bakDbName.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); - bakDbName.HidePromptOnLeave = false; - bakDbName.HideSelection = true; - bakDbName.InsertKeyMode = InsertKeyMode.Default; - bakDbName.LeadingIcon = null; - bakDbName.Location = new Point(20, 94); - bakDbName.Mask = ""; - bakDbName.MaxLength = 32767; - bakDbName.MouseState = MaterialSkin2DotNet.MouseState.OUT; - bakDbName.Name = "bakDbName"; - bakDbName.PasswordChar = '\0'; - bakDbName.PrefixSuffixText = null; - bakDbName.PromptChar = '_'; - bakDbName.ReadOnly = false; - bakDbName.RejectInputOnFirstFailure = false; - bakDbName.ResetOnPrompt = true; - bakDbName.ResetOnSpace = true; - bakDbName.RightToLeft = RightToLeft.No; - bakDbName.SelectedText = ""; - bakDbName.SelectionLength = 0; - bakDbName.SelectionStart = 0; - bakDbName.ShortcutsEnabled = true; - bakDbName.Size = new Size(583, 48); - bakDbName.SkipLiterals = true; - bakDbName.TabIndex = 2; - bakDbName.TabStop = false; - bakDbName.TextAlign = HorizontalAlignment.Left; - bakDbName.TextMaskFormat = MaskFormat.IncludeLiterals; - bakDbName.TrailingIcon = null; - bakDbName.UseSystemPasswordChar = false; - bakDbName.ValidatingType = null; - // - // bakConfigSaveBtn - // - bakConfigSaveBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; - bakConfigSaveBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - bakConfigSaveBtn.Depth = 0; - bakConfigSaveBtn.HighEmphasis = true; - bakConfigSaveBtn.Icon = null; - bakConfigSaveBtn.Location = new Point(110, 519); - bakConfigSaveBtn.Margin = new Padding(4, 6, 4, 6); - bakConfigSaveBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - bakConfigSaveBtn.Name = "bakConfigSaveBtn"; - bakConfigSaveBtn.NoAccentTextColor = Color.Empty; - bakConfigSaveBtn.Size = new Size(117, 36); - bakConfigSaveBtn.TabIndex = 43; - bakConfigSaveBtn.Text = "备份配置保存"; - bakConfigSaveBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - bakConfigSaveBtn.UseAccentColor = false; - bakConfigSaveBtn.UseVisualStyleBackColor = true; - bakConfigSaveBtn.Click += bakConfigSaveBtn_Click; - // - // tabPage1 - // - tabPage1.BackColor = Color.White; - tabPage1.Controls.Add(publishFolderTBox); - tabPage1.Controls.Add(publishFileTBox); - tabPage1.Controls.Add(selectPublishFilePathBtn); - tabPage1.Controls.Add(sshNetCorePublishBtn2); - tabPage1.Controls.Add(materialLabel5); - tabPage1.Controls.Add(selectPublishFolderPathBtn); - tabPage1.Controls.Add(sshVuePublishBtn); - tabPage1.Controls.Add(sshNetCorePublishBtn); - tabPage1.Controls.Add(materialLabel4); - tabPage1.Location = new Point(4, 29); - tabPage1.Name = "tabPage1"; - tabPage1.Padding = new Padding(3); - tabPage1.Size = new Size(661, 645); - tabPage1.TabIndex = 2; - tabPage1.Text = "发布远程网站"; - // - // publishFolderTBox - // - publishFolderTBox.AllowPromptAsInput = true; - publishFolderTBox.AnimateReadOnly = false; - publishFolderTBox.AsciiOnly = false; - publishFolderTBox.BackgroundImageLayout = ImageLayout.None; - publishFolderTBox.BeepOnError = false; - publishFolderTBox.CutCopyMaskFormat = MaskFormat.IncludeLiterals; - publishFolderTBox.Depth = 0; - publishFolderTBox.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); - publishFolderTBox.HidePromptOnLeave = false; - publishFolderTBox.HideSelection = true; - publishFolderTBox.InsertKeyMode = InsertKeyMode.Default; - publishFolderTBox.LeadingIcon = null; - publishFolderTBox.Location = new Point(20, 458); - publishFolderTBox.Mask = ""; - publishFolderTBox.MaxLength = 32767; - publishFolderTBox.MouseState = MaterialSkin2DotNet.MouseState.OUT; - publishFolderTBox.Name = "publishFolderTBox"; - publishFolderTBox.PasswordChar = '\0'; - publishFolderTBox.PrefixSuffixText = null; - publishFolderTBox.PromptChar = '_'; - publishFolderTBox.ReadOnly = false; - publishFolderTBox.RejectInputOnFirstFailure = false; - publishFolderTBox.ResetOnPrompt = true; - publishFolderTBox.ResetOnSpace = true; - publishFolderTBox.RightToLeft = RightToLeft.No; - publishFolderTBox.SelectedText = ""; - publishFolderTBox.SelectionLength = 0; - publishFolderTBox.SelectionStart = 0; - publishFolderTBox.ShortcutsEnabled = true; - publishFolderTBox.Size = new Size(483, 48); - publishFolderTBox.SkipLiterals = true; - publishFolderTBox.TabIndex = 60; - publishFolderTBox.TabStop = false; - publishFolderTBox.TextAlign = HorizontalAlignment.Left; - publishFolderTBox.TextMaskFormat = MaskFormat.IncludeLiterals; - publishFolderTBox.TrailingIcon = null; - publishFolderTBox.UseSystemPasswordChar = false; - publishFolderTBox.ValidatingType = null; - // - // publishFileTBox - // - publishFileTBox.AllowPromptAsInput = true; - publishFileTBox.AnimateReadOnly = false; - publishFileTBox.AsciiOnly = false; - publishFileTBox.BackgroundImageLayout = ImageLayout.None; - publishFileTBox.BeepOnError = false; - publishFileTBox.CutCopyMaskFormat = MaskFormat.IncludeLiterals; - publishFileTBox.Depth = 0; - publishFileTBox.Font = new Font("Microsoft Sans Serif", 9F, FontStyle.Regular, GraphicsUnit.Point); - publishFileTBox.HidePromptOnLeave = false; - publishFileTBox.HideSelection = true; - publishFileTBox.InsertKeyMode = InsertKeyMode.Default; - publishFileTBox.LeadingIcon = null; - publishFileTBox.Location = new Point(20, 102); - publishFileTBox.Mask = ""; - publishFileTBox.MaxLength = 32767; - publishFileTBox.MouseState = MaterialSkin2DotNet.MouseState.OUT; - publishFileTBox.Name = "publishFileTBox"; - publishFileTBox.PasswordChar = '\0'; - publishFileTBox.PrefixSuffixText = null; - publishFileTBox.PromptChar = '_'; - publishFileTBox.ReadOnly = false; - publishFileTBox.RejectInputOnFirstFailure = false; - publishFileTBox.ResetOnPrompt = true; - publishFileTBox.ResetOnSpace = true; - publishFileTBox.RightToLeft = RightToLeft.No; - publishFileTBox.SelectedText = ""; - publishFileTBox.SelectionLength = 0; - publishFileTBox.SelectionStart = 0; - publishFileTBox.ShortcutsEnabled = true; - publishFileTBox.Size = new Size(483, 48); - publishFileTBox.SkipLiterals = true; - publishFileTBox.TabIndex = 59; - publishFileTBox.TabStop = false; - publishFileTBox.TextAlign = HorizontalAlignment.Left; - publishFileTBox.TextMaskFormat = MaskFormat.IncludeLiterals; - publishFileTBox.TrailingIcon = null; - publishFileTBox.UseSystemPasswordChar = false; - publishFileTBox.ValidatingType = null; - // - // selectPublishFilePathBtn - // - selectPublishFilePathBtn.AutoSize = false; - selectPublishFilePathBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; - selectPublishFilePathBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - selectPublishFilePathBtn.Depth = 0; - selectPublishFilePathBtn.HighEmphasis = true; - selectPublishFilePathBtn.Icon = null; - selectPublishFilePathBtn.Location = new Point(523, 111); - selectPublishFilePathBtn.Margin = new Padding(4, 6, 4, 6); - selectPublishFilePathBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - selectPublishFilePathBtn.Name = "selectPublishFilePathBtn"; - selectPublishFilePathBtn.NoAccentTextColor = Color.Empty; - selectPublishFilePathBtn.Size = new Size(85, 30); - selectPublishFilePathBtn.TabIndex = 43; - selectPublishFilePathBtn.Text = "选择"; - selectPublishFilePathBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - selectPublishFilePathBtn.UseAccentColor = false; - selectPublishFilePathBtn.UseVisualStyleBackColor = true; - selectPublishFilePathBtn.Click += selectPublishFilePathBtn_Click; - // - // sshNetCorePublishBtn2 - // - sshNetCorePublishBtn2.AutoSizeMode = AutoSizeMode.GrowAndShrink; - sshNetCorePublishBtn2.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - sshNetCorePublishBtn2.Depth = 0; - sshNetCorePublishBtn2.HighEmphasis = true; - sshNetCorePublishBtn2.Icon = null; - sshNetCorePublishBtn2.Location = new Point(389, 553); - sshNetCorePublishBtn2.Margin = new Padding(4, 6, 4, 6); - sshNetCorePublishBtn2.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - sshNetCorePublishBtn2.Name = "sshNetCorePublishBtn2"; - sshNetCorePublishBtn2.NoAccentTextColor = Color.Empty; - sshNetCorePublishBtn2.Size = new Size(85, 36); - sshNetCorePublishBtn2.TabIndex = 55; - sshNetCorePublishBtn2.Text = "发布后端"; - sshNetCorePublishBtn2.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - sshNetCorePublishBtn2.UseAccentColor = false; - sshNetCorePublishBtn2.UseVisualStyleBackColor = true; - sshNetCorePublishBtn2.Click += sshNetCorePublishBtn2_Click; - // - // materialLabel5 - // - materialLabel5.AutoSize = true; - materialLabel5.Depth = 0; - materialLabel5.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); - materialLabel5.Location = new Point(20, 411); - materialLabel5.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - materialLabel5.Name = "materialLabel5"; - materialLabel5.Size = new Size(501, 19); - materialLabel5.TabIndex = 58; - materialLabel5.Text = "方式二: 后端发布程序文件夹(程序自动打成压缩包,上传然后发布)"; - // - // selectPublishFolderPathBtn - // - selectPublishFolderPathBtn.AutoSize = false; - selectPublishFolderPathBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; - selectPublishFolderPathBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - selectPublishFolderPathBtn.Depth = 0; - selectPublishFolderPathBtn.HighEmphasis = true; - selectPublishFolderPathBtn.Icon = null; - selectPublishFolderPathBtn.Location = new Point(523, 467); - selectPublishFolderPathBtn.Margin = new Padding(4, 6, 4, 6); - selectPublishFolderPathBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - selectPublishFolderPathBtn.Name = "selectPublishFolderPathBtn"; - selectPublishFolderPathBtn.NoAccentTextColor = Color.Empty; - selectPublishFolderPathBtn.Size = new Size(85, 30); - selectPublishFolderPathBtn.TabIndex = 56; - selectPublishFolderPathBtn.Text = "选择"; - selectPublishFolderPathBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - selectPublishFolderPathBtn.UseAccentColor = false; - selectPublishFolderPathBtn.UseVisualStyleBackColor = true; - selectPublishFolderPathBtn.Click += selectPublishFolderPathBtn_Click; - // - // sshVuePublishBtn - // - sshVuePublishBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; - sshVuePublishBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - sshVuePublishBtn.Depth = 0; - sshVuePublishBtn.HighEmphasis = true; - sshVuePublishBtn.Icon = null; - sshVuePublishBtn.Location = new Point(136, 200); - sshVuePublishBtn.Margin = new Padding(4, 6, 4, 6); - sshVuePublishBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - sshVuePublishBtn.Name = "sshVuePublishBtn"; - sshVuePublishBtn.NoAccentTextColor = Color.Empty; - sshVuePublishBtn.Size = new Size(85, 36); - sshVuePublishBtn.TabIndex = 53; - sshVuePublishBtn.Text = "发布前端"; - sshVuePublishBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - sshVuePublishBtn.UseAccentColor = false; - sshVuePublishBtn.UseVisualStyleBackColor = true; - sshVuePublishBtn.Click += sshVuePublishBtn_Click; - // - // sshNetCorePublishBtn - // - sshNetCorePublishBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; - sshNetCorePublishBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; - sshNetCorePublishBtn.Depth = 0; - sshNetCorePublishBtn.HighEmphasis = true; - sshNetCorePublishBtn.Icon = null; - sshNetCorePublishBtn.Location = new Point(389, 200); - sshNetCorePublishBtn.Margin = new Padding(4, 6, 4, 6); - sshNetCorePublishBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - sshNetCorePublishBtn.Name = "sshNetCorePublishBtn"; - sshNetCorePublishBtn.NoAccentTextColor = Color.Empty; - sshNetCorePublishBtn.Size = new Size(85, 36); - sshNetCorePublishBtn.TabIndex = 54; - sshNetCorePublishBtn.Text = "发布后端"; - sshNetCorePublishBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; - sshNetCorePublishBtn.UseAccentColor = false; - sshNetCorePublishBtn.UseVisualStyleBackColor = true; - sshNetCorePublishBtn.Click += sshNetCorePublishBtn_Click; - // - // materialLabel4 - // - materialLabel4.AutoSize = true; - materialLabel4.Depth = 0; - materialLabel4.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); - materialLabel4.Location = new Point(20, 56); - materialLabel4.MouseState = MaterialSkin2DotNet.MouseState.HOVER; - materialLabel4.Name = "materialLabel4"; - materialLabel4.Size = new Size(473, 19); - materialLabel4.TabIndex = 57; - materialLabel4.Text = "方式一: 前端发布选择html | 后端发布选择压缩包 (上传后发布)"; - // - // tabPage4 - // - tabPage4.BackColor = Color.White; - tabPage4.Controls.Add(groupBox2); - tabPage4.Controls.Add(groupBox4); - tabPage4.Location = new Point(4, 29); - tabPage4.Name = "tabPage4"; - tabPage4.Padding = new Padding(3); - tabPage4.Size = new Size(661, 645); - tabPage4.TabIndex = 1; - tabPage4.Text = "服务相关操作"; - // // PublishForm // AutoScaleDimensions = new SizeF(7F, 17F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(1198, 1023); - Controls.Add(materialTabControl1); + Controls.Add(tabControl1); Controls.Add(groupBox5); Controls.Add(groupBox3); Controls.Add(groupBox1); Name = "PublishForm"; Text = "IRaCIS One click Publish"; + Load += PublishForm_Load; groupBox1.ResumeLayout(false); groupBox1.PerformLayout(); groupBox3.ResumeLayout(false); - groupBox4.ResumeLayout(false); - groupBox4.PerformLayout(); + tabControl1.ResumeLayout(false); + tabPage2.ResumeLayout(false); + tabPage2.PerformLayout(); + tabPage5.ResumeLayout(false); + tabPage5.PerformLayout(); + tabPage6.ResumeLayout(false); groupBox2.ResumeLayout(false); groupBox2.PerformLayout(); + groupBox4.ResumeLayout(false); + groupBox4.PerformLayout(); groupBox5.ResumeLayout(false); groupBox5.PerformLayout(); - materialTabControl1.ResumeLayout(false); - tabPage3.ResumeLayout(false); - tabPage3.PerformLayout(); - tabPage1.ResumeLayout(false); - tabPage1.PerformLayout(); - tabPage4.ResumeLayout(false); ResumeLayout(false); } @@ -1016,9 +1013,6 @@ private FolderBrowserDialog folderBrowserDialog1; private MaterialSkin2DotNet.Controls.MaterialButton netCorePublishBtn; private MaterialSkin2DotNet.Controls.MaterialButton vuePublishBtn; - private MaterialSkin2DotNet.Controls.MaterialTabControl materialTabControl1; - private TabPage tabPage3; - private TabPage tabPage4; private MaterialSkin2DotNet.Controls.MaterialButton startBakBtn; private MaterialSkin2DotNet.Controls.MaterialButton bakConfigSaveBtn; private MaterialSkin2DotNet.Controls.MaterialButton createService_Btn; @@ -1033,7 +1027,6 @@ private MaterialSkin2DotNet.Controls.MaterialLabel materialLabel3; private MaterialSkin2DotNet.Controls.MaterialLabel materialLabel2; private MaterialSkin2DotNet.Controls.MaterialLabel materialLabel1; - private TabPage tabPage1; private MaterialSkin2DotNet.Controls.MaterialMaskedTextBox publishFolderTBox; private MaterialSkin2DotNet.Controls.MaterialMaskedTextBox publishFileTBox; private MaterialSkin2DotNet.Controls.MaterialLabel materialLabel5; @@ -1043,5 +1036,9 @@ private MaterialSkin2DotNet.Controls.MaterialButton sshNetCorePublishBtn2; private MaterialSkin2DotNet.Controls.MaterialButton sshNetCorePublishBtn; private MaterialSkin2DotNet.Controls.MaterialButton sshVuePublishBtn; + private TabControl tabControl1; + private TabPage tabPage2; + private TabPage tabPage5; + private TabPage tabPage6; } } \ No newline at end of file diff --git a/PublishSite/PublishForm.cs b/PublishSite/PublishForm.cs index 97376248..e298ef44 100644 --- a/PublishSite/PublishForm.cs +++ b/PublishSite/PublishForm.cs @@ -24,6 +24,7 @@ using System.Management.Automation.Host; using SharpCompress.Common; using System.IO.Compression; using MaterialSkin2DotNet.Controls; +using MaterialSkin2DotNet; namespace PublishSite { @@ -37,6 +38,8 @@ namespace PublishSite .WriteTo.File("logs\\log.txt", rollingInterval: RollingInterval.Day) .CreateLogger(); + + } public string EnvName = ""; @@ -1014,6 +1017,13 @@ namespace PublishSite + private void PublishForm_Load(object sender, EventArgs e) + { + + //MaterialSkinManager manager = MaterialSkinManager.Instance; + //manager.AddFormToManage(this); + //manager.Theme = MaterialSkinManager.Themes.LIGHT; + } } }