diff --git a/PublishSite/PublishForm.Designer.cs b/PublishSite/PublishForm.Designer.cs index b34e1f46..6c018b40 100644 --- a/PublishSite/PublishForm.Designer.cs +++ b/PublishSite/PublishForm.Designer.cs @@ -35,64 +35,62 @@ rb_local = new RadioButton(); groupBox3 = new GroupBox(); logTBox = new RichTextBox(); - tabControl1 = new TabControl(); - tabPage2 = new TabPage(); - groupBox7 = new GroupBox(); - backExePath = new TextBox(); - bakConfigSaveBtn = new Button(); - label3 = new Label(); - startBakBtn = new Button(); - backPathTBox = new TextBox(); - label4 = new Label(); - label5 = new Label(); - bakDbName = new TextBox(); - groupBox6 = new GroupBox(); - sshNetCorePublishBtn2 = new Button(); - selectPublishFolderPathBtn = new Button(); - label8 = new Label(); - publishFolderTBox = new TextBox(); - sshNetCorePublishBtn = new Button(); - sshVuePublishBtn = new Button(); - selectPublishFilePathBtn = new Button(); - publishFileTBox = new TextBox(); - label7 = new Label(); - tabPage1 = new TabPage(); + materialLabel3 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + materialLabel2 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + materialLabel1 = new MaterialSkin2DotNet.Controls.MaterialLabel(); groupBox4 = new GroupBox(); - serviceConfigSaveBtn = new Button(); + selectPathBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + deleteService_Btn = new MaterialSkin2DotNet.Controls.MaterialButton(); + createService_Btn = new MaterialSkin2DotNet.Controls.MaterialButton(); + serviceConfigSaveBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); servicePortTBox = new TextBox(); label6 = new Label(); serviceNameTBox = new TextBox(); label10 = new Label(); - deleteService_Btn = new Button(); label11 = new Label(); - createService_Btn = new Button(); serviceDisplayNameTBox = new TextBox(); en_TBox = new TextBox(); label9 = new Label(); label1 = new Label(); exePathTbox = new TextBox(); - selectPathBtn = new Button(); groupBox2 = new GroupBox(); - stopServiceBtn = new Button(); - startServiceBtn = new Button(); + stopServiceBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + startServiceBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); label2 = new Label(); startOrStopServiceTbox = new TextBox(); groupBox5 = new GroupBox(); - netCorePublishBtn = new Button(); - vuePublishBtn = new Button(); + 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(); + materialLabel5 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + materialLabel4 = new MaterialSkin2DotNet.Controls.MaterialLabel(); + selectPublishFolderPathBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + selectPublishFilePathBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + sshNetCorePublishBtn2 = new MaterialSkin2DotNet.Controls.MaterialButton(); + sshNetCorePublishBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + sshVuePublishBtn = new MaterialSkin2DotNet.Controls.MaterialButton(); + tabPage4 = new TabPage(); groupBox1.SuspendLayout(); groupBox3.SuspendLayout(); - tabControl1.SuspendLayout(); - tabPage2.SuspendLayout(); - groupBox7.SuspendLayout(); - groupBox6.SuspendLayout(); - tabPage1.SuspendLayout(); groupBox4.SuspendLayout(); groupBox2.SuspendLayout(); groupBox5.SuspendLayout(); + materialTabControl1.SuspendLayout(); + tabPage3.SuspendLayout(); + tabPage1.SuspendLayout(); + tabPage4.SuspendLayout(); SuspendLayout(); // // groupBox1 @@ -102,7 +100,7 @@ groupBox1.Controls.Add(rb_test); groupBox1.Controls.Add(rb_local); groupBox1.Font = new Font("Microsoft YaHei UI", 10.5F, FontStyle.Regular, GraphicsUnit.Point); - groupBox1.Location = new Point(12, 123); + groupBox1.Location = new Point(12, 189); groupBox1.Name = "groupBox1"; groupBox1.Size = new Size(661, 105); groupBox1.TabIndex = 1; @@ -159,284 +157,160 @@ // groupBox3.Controls.Add(logTBox); groupBox3.Font = new Font("Microsoft YaHei UI", 10.5F, FontStyle.Regular, GraphicsUnit.Point); - groupBox3.Location = new Point(679, 13); + groupBox3.Location = new Point(681, 70); groupBox3.Name = "groupBox3"; - groupBox3.Size = new Size(569, 925); + groupBox3.Size = new Size(497, 947); groupBox3.TabIndex = 3; groupBox3.TabStop = false; groupBox3.Text = "日志"; // // logTBox // - logTBox.Location = new Point(6, 21); + logTBox.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point); + logTBox.Location = new Point(6, -835); logTBox.Name = "logTBox"; - logTBox.Size = new Size(553, 894); + logTBox.Size = new Size(469, 920); logTBox.TabIndex = 1; logTBox.Text = ""; // - // tabControl1 + // materialLabel3 // - tabControl1.Controls.Add(tabPage2); - tabControl1.Controls.Add(tabPage1); - tabControl1.Font = new Font("Microsoft YaHei UI", 10.5F, FontStyle.Regular, GraphicsUnit.Point); - tabControl1.Location = new Point(14, 233); - tabControl1.Name = "tabControl1"; - tabControl1.SelectedIndex = 0; - tabControl1.Size = new Size(665, 704); - tabControl1.TabIndex = 2; + materialLabel3.AutoSize = true; + materialLabel3.Depth = 0; + materialLabel3.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); + materialLabel3.Location = new Point(20, 305); + materialLabel3.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + materialLabel3.Name = "materialLabel3"; + materialLabel3.Size = new Size(225, 19); + materialLabel3.TabIndex = 4; + materialLabel3.Text = "后端数据库和程序备份根路径:"; // - // tabPage2 + // materialLabel2 // - tabPage2.Controls.Add(groupBox7); - tabPage2.Controls.Add(groupBox6); - tabPage2.Location = new Point(4, 29); - tabPage2.Name = "tabPage2"; - tabPage2.Padding = new Padding(3); - tabPage2.Size = new Size(657, 671); - tabPage2.TabIndex = 1; - tabPage2.Text = "备份与发布"; - tabPage2.UseVisualStyleBackColor = true; + 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 = "被备份程序路径:"; // - // groupBox7 + // materialLabel1 // - groupBox7.BackColor = Color.Transparent; - groupBox7.Controls.Add(backExePath); - groupBox7.Controls.Add(bakConfigSaveBtn); - groupBox7.Controls.Add(label3); - groupBox7.Controls.Add(startBakBtn); - groupBox7.Controls.Add(backPathTBox); - groupBox7.Controls.Add(label4); - groupBox7.Controls.Add(label5); - groupBox7.Controls.Add(bakDbName); - groupBox7.ForeColor = SystemColors.InactiveCaptionText; - groupBox7.Location = new Point(3, 6); - groupBox7.Name = "groupBox7"; - groupBox7.Size = new Size(643, 243); - groupBox7.TabIndex = 44; - groupBox7.TabStop = false; - groupBox7.Text = "远程主机后端备份"; - // - // backExePath - // - backExePath.Enabled = false; - backExePath.Location = new Point(200, 81); - backExePath.Name = "backExePath"; - backExePath.Size = new Size(424, 25); - backExePath.TabIndex = 5; - // - // bakConfigSaveBtn - // - bakConfigSaveBtn.BackColor = Color.Beige; - bakConfigSaveBtn.ForeColor = Color.Black; - bakConfigSaveBtn.Location = new Point(124, 183); - bakConfigSaveBtn.Name = "bakConfigSaveBtn"; - bakConfigSaveBtn.Size = new Size(128, 40); - bakConfigSaveBtn.TabIndex = 42; - bakConfigSaveBtn.Text = "备份配置保存"; - bakConfigSaveBtn.UseVisualStyleBackColor = false; - bakConfigSaveBtn.Click += bakConfigSaveBtn_Click; - // - // label3 - // - label3.AutoSize = true; - label3.Location = new Point(7, 134); - label3.Name = "label3"; - label3.Size = new Size(191, 20); - label3.TabIndex = 0; - label3.Text = "后端数据库和程序备份根路径"; - // - // startBakBtn - // - startBakBtn.BackColor = Color.Beige; - startBakBtn.ForeColor = Color.Black; - startBakBtn.Location = new Point(368, 183); - startBakBtn.Name = "startBakBtn"; - startBakBtn.Size = new Size(128, 40); - startBakBtn.TabIndex = 6; - startBakBtn.Text = "开始备份"; - startBakBtn.UseVisualStyleBackColor = false; - startBakBtn.Click += startBakBtn_Click; - // - // backPathTBox - // - backPathTBox.Location = new Point(200, 131); - backPathTBox.Name = "backPathTBox"; - backPathTBox.Size = new Size(424, 25); - backPathTBox.TabIndex = 1; - // - // label4 - // - label4.AutoSize = true; - label4.Location = new Point(79, 41); - label4.Name = "label4"; - label4.Size = new Size(107, 20); - label4.TabIndex = 2; - label4.Text = "被备份数据库名"; - // - // label5 - // - label5.AutoSize = true; - label5.Location = new Point(79, 85); - label5.Name = "label5"; - label5.Size = new Size(107, 20); - label5.TabIndex = 4; - label5.Text = "被备份程序路径"; - // - // bakDbName - // - bakDbName.Location = new Point(200, 36); - bakDbName.Name = "bakDbName"; - bakDbName.Size = new Size(424, 25); - bakDbName.TabIndex = 3; - // - // groupBox6 - // - groupBox6.Controls.Add(sshNetCorePublishBtn2); - groupBox6.Controls.Add(selectPublishFolderPathBtn); - groupBox6.Controls.Add(label8); - groupBox6.Controls.Add(publishFolderTBox); - groupBox6.Controls.Add(sshNetCorePublishBtn); - groupBox6.Controls.Add(sshVuePublishBtn); - groupBox6.Controls.Add(selectPublishFilePathBtn); - groupBox6.Controls.Add(publishFileTBox); - groupBox6.Controls.Add(label7); - groupBox6.Location = new Point(3, 257); - groupBox6.Name = "groupBox6"; - groupBox6.Size = new Size(643, 408); - groupBox6.TabIndex = 43; - groupBox6.TabStop = false; - groupBox6.Text = "上传文件到远程服务器发布"; - // - // sshNetCorePublishBtn2 - // - sshNetCorePublishBtn2.BackColor = Color.Beige; - sshNetCorePublishBtn2.ForeColor = Color.Black; - sshNetCorePublishBtn2.Location = new Point(368, 328); - sshNetCorePublishBtn2.Name = "sshNetCorePublishBtn2"; - sshNetCorePublishBtn2.Size = new Size(128, 40); - sshNetCorePublishBtn2.TabIndex = 52; - sshNetCorePublishBtn2.Text = "发布后端"; - sshNetCorePublishBtn2.UseVisualStyleBackColor = false; - sshNetCorePublishBtn2.Click += sshNetCorePublishBtn2_Click; - // - // selectPublishFolderPathBtn - // - selectPublishFolderPathBtn.Location = new Point(519, 282); - selectPublishFolderPathBtn.Name = "selectPublishFolderPathBtn"; - selectPublishFolderPathBtn.Size = new Size(95, 27); - selectPublishFolderPathBtn.TabIndex = 51; - selectPublishFolderPathBtn.Text = "选择"; - selectPublishFolderPathBtn.UseVisualStyleBackColor = true; - selectPublishFolderPathBtn.Click += selectPublishFolderPathBtn_Click; - // - // label8 - // - label8.AutoSize = true; - label8.Location = new Point(9, 243); - label8.Name = "label8"; - label8.Size = new Size(447, 20); - label8.TabIndex = 50; - label8.Text = "方式二: 后端发布程序文件夹(程序自动打成压缩包,上传然后发布)"; - // - // publishFolderTBox - // - publishFolderTBox.Location = new Point(69, 282); - publishFolderTBox.Name = "publishFolderTBox"; - publishFolderTBox.Size = new Size(427, 25); - publishFolderTBox.TabIndex = 49; - // - // sshNetCorePublishBtn - // - sshNetCorePublishBtn.BackColor = Color.Beige; - sshNetCorePublishBtn.ForeColor = Color.Black; - sshNetCorePublishBtn.Location = new Point(368, 166); - sshNetCorePublishBtn.Name = "sshNetCorePublishBtn"; - sshNetCorePublishBtn.Size = new Size(128, 40); - sshNetCorePublishBtn.TabIndex = 48; - sshNetCorePublishBtn.Text = "发布后端"; - sshNetCorePublishBtn.UseVisualStyleBackColor = false; - sshNetCorePublishBtn.Click += sshNetCorePublishBtn_Click; - // - // sshVuePublishBtn - // - sshVuePublishBtn.BackColor = Color.Beige; - sshVuePublishBtn.ForeColor = Color.Black; - sshVuePublishBtn.Location = new Point(124, 166); - sshVuePublishBtn.Name = "sshVuePublishBtn"; - sshVuePublishBtn.Size = new Size(128, 40); - sshVuePublishBtn.TabIndex = 47; - sshVuePublishBtn.Text = "发布前端"; - sshVuePublishBtn.UseVisualStyleBackColor = false; - sshVuePublishBtn.Click += sshVuePublishBtn_Click; - // - // selectPublishFilePathBtn - // - selectPublishFilePathBtn.Location = new Point(519, 94); - selectPublishFilePathBtn.Name = "selectPublishFilePathBtn"; - selectPublishFilePathBtn.Size = new Size(95, 27); - selectPublishFilePathBtn.TabIndex = 46; - selectPublishFilePathBtn.Text = "选择"; - selectPublishFilePathBtn.UseVisualStyleBackColor = true; - selectPublishFilePathBtn.Click += selectPublishFilePathBtn_Click; - // - // publishFileTBox - // - publishFileTBox.Location = new Point(69, 98); - publishFileTBox.Name = "publishFileTBox"; - publishFileTBox.Size = new Size(427, 25); - publishFileTBox.TabIndex = 45; - // - // label7 - // - label7.AutoSize = true; - label7.Location = new Point(7, 63); - label7.Name = "label7"; - label7.Size = new Size(428, 20); - label7.TabIndex = 44; - label7.Text = "方式一: 前端发布选择html | 后端发布选择压缩包 (上传后发布)"; - // - // tabPage1 - // - tabPage1.Controls.Add(groupBox4); - tabPage1.Controls.Add(groupBox2); - tabPage1.Location = new Point(4, 29); - tabPage1.Name = "tabPage1"; - tabPage1.Padding = new Padding(3); - tabPage1.Size = new Size(657, 671); - tabPage1.TabIndex = 0; - tabPage1.Text = "服务相关操作"; - tabPage1.UseVisualStyleBackColor = true; + materialLabel1.AutoSize = true; + materialLabel1.Depth = 0; + materialLabel1.Font = new Font("Roboto", 14F, FontStyle.Regular, GraphicsUnit.Pixel); + materialLabel1.Location = new Point(20, 43); + materialLabel1.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + materialLabel1.Name = "materialLabel1"; + materialLabel1.Size = new Size(129, 19); + materialLabel1.TabIndex = 2; + materialLabel1.Text = "被备份数据库名:"; // // groupBox4 // + groupBox4.Controls.Add(selectPathBtn); + groupBox4.Controls.Add(deleteService_Btn); + groupBox4.Controls.Add(createService_Btn); groupBox4.Controls.Add(serviceConfigSaveBtn); groupBox4.Controls.Add(servicePortTBox); groupBox4.Controls.Add(label6); groupBox4.Controls.Add(serviceNameTBox); groupBox4.Controls.Add(label10); - groupBox4.Controls.Add(deleteService_Btn); groupBox4.Controls.Add(label11); - groupBox4.Controls.Add(createService_Btn); groupBox4.Controls.Add(serviceDisplayNameTBox); groupBox4.Controls.Add(en_TBox); groupBox4.Controls.Add(label9); groupBox4.Controls.Add(label1); groupBox4.Controls.Add(exePathTbox); - groupBox4.Controls.Add(selectPathBtn); - groupBox4.Location = new Point(6, 16); + groupBox4.Location = new Point(10, 8); groupBox4.Name = "groupBox4"; - groupBox4.Size = new Size(645, 407); + groupBox4.Size = new Size(645, 414); groupBox4.TabIndex = 40; groupBox4.TabStop = false; groupBox4.Text = "服务创建与删除"; // + // selectPathBtn + // + selectPathBtn.AutoSize = false; + selectPathBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + selectPathBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + selectPathBtn.Depth = 0; + selectPathBtn.HighEmphasis = true; + selectPathBtn.Icon = null; + selectPathBtn.Location = new Point(533, 166); + selectPathBtn.Margin = new Padding(4, 6, 4, 6); + selectPathBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + selectPathBtn.Name = "selectPathBtn"; + selectPathBtn.NoAccentTextColor = Color.Empty; + selectPathBtn.Size = new Size(85, 30); + selectPathBtn.TabIndex = 46; + selectPathBtn.Text = "选择"; + selectPathBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + selectPathBtn.UseAccentColor = false; + selectPathBtn.UseVisualStyleBackColor = true; + selectPathBtn.Click += selectPathBtn_Click; + // + // deleteService_Btn + // + deleteService_Btn.AutoSize = false; + deleteService_Btn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + deleteService_Btn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + deleteService_Btn.Depth = 0; + deleteService_Btn.HighEmphasis = true; + deleteService_Btn.Icon = null; + deleteService_Btn.Location = new Point(533, 48); + deleteService_Btn.Margin = new Padding(4, 6, 4, 6); + deleteService_Btn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + deleteService_Btn.Name = "deleteService_Btn"; + deleteService_Btn.NoAccentTextColor = Color.Empty; + deleteService_Btn.Size = new Size(85, 30); + deleteService_Btn.TabIndex = 45; + deleteService_Btn.Text = "删除服务"; + deleteService_Btn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + deleteService_Btn.UseAccentColor = false; + deleteService_Btn.UseVisualStyleBackColor = true; + deleteService_Btn.Click += deleteService_Btn_Click; + // + // createService_Btn + // + createService_Btn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + createService_Btn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + createService_Btn.Depth = 0; + createService_Btn.HighEmphasis = true; + createService_Btn.Icon = null; + createService_Btn.Location = new Point(379, 335); + createService_Btn.Margin = new Padding(4, 6, 4, 6); + createService_Btn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + createService_Btn.Name = "createService_Btn"; + createService_Btn.NoAccentTextColor = Color.Empty; + createService_Btn.Size = new Size(85, 36); + createService_Btn.TabIndex = 44; + createService_Btn.Text = "创建服务"; + createService_Btn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + createService_Btn.UseAccentColor = false; + createService_Btn.UseVisualStyleBackColor = true; + createService_Btn.Click += createService_Btn_Click; + // // serviceConfigSaveBtn // - serviceConfigSaveBtn.Location = new Point(141, 335); + serviceConfigSaveBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + serviceConfigSaveBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + serviceConfigSaveBtn.Depth = 0; + serviceConfigSaveBtn.HighEmphasis = true; + serviceConfigSaveBtn.Icon = null; + serviceConfigSaveBtn.Location = new Point(94, 335); + serviceConfigSaveBtn.Margin = new Padding(4, 6, 4, 6); + serviceConfigSaveBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; serviceConfigSaveBtn.Name = "serviceConfigSaveBtn"; - serviceConfigSaveBtn.Size = new Size(128, 40); - serviceConfigSaveBtn.TabIndex = 41; + serviceConfigSaveBtn.NoAccentTextColor = Color.Empty; + serviceConfigSaveBtn.Size = new Size(117, 36); + serviceConfigSaveBtn.TabIndex = 43; serviceConfigSaveBtn.Text = "服务配置保存"; + serviceConfigSaveBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + serviceConfigSaveBtn.UseAccentColor = false; serviceConfigSaveBtn.UseVisualStyleBackColor = true; serviceConfigSaveBtn.Click += serviceConfigSaveBtn_Click; // @@ -472,16 +346,6 @@ label10.TabIndex = 28; label10.Text = "网站后端服务名称"; // - // deleteService_Btn - // - deleteService_Btn.Location = new Point(523, 56); - deleteService_Btn.Name = "deleteService_Btn"; - deleteService_Btn.Size = new Size(95, 27); - deleteService_Btn.TabIndex = 38; - deleteService_Btn.Text = "删除服务"; - deleteService_Btn.UseVisualStyleBackColor = true; - deleteService_Btn.Click += deleteService_Btn_Click; - // // label11 // label11.AutoSize = true; @@ -491,16 +355,6 @@ label11.TabIndex = 29; label11.Text = "网站后端服务显示名称"; // - // createService_Btn - // - createService_Btn.Location = new Point(379, 335); - createService_Btn.Name = "createService_Btn"; - createService_Btn.Size = new Size(128, 40); - createService_Btn.TabIndex = 37; - createService_Btn.Text = "创建服务"; - createService_Btn.UseVisualStyleBackColor = true; - createService_Btn.Click += createService_Btn_Click; - // // serviceDisplayNameTBox // serviceDisplayNameTBox.Location = new Point(155, 111); @@ -540,23 +394,13 @@ exePathTbox.Size = new Size(353, 25); exePathTbox.TabIndex = 33; // - // selectPathBtn - // - selectPathBtn.Location = new Point(523, 165); - selectPathBtn.Name = "selectPathBtn"; - selectPathBtn.Size = new Size(95, 27); - selectPathBtn.TabIndex = 34; - selectPathBtn.Text = "选择"; - selectPathBtn.UseVisualStyleBackColor = true; - selectPathBtn.Click += selectPathBtn_Click; - // // groupBox2 // groupBox2.Controls.Add(stopServiceBtn); groupBox2.Controls.Add(startServiceBtn); groupBox2.Controls.Add(label2); groupBox2.Controls.Add(startOrStopServiceTbox); - groupBox2.Location = new Point(6, 430); + groupBox2.Location = new Point(11, 428); groupBox2.Name = "groupBox2"; groupBox2.Size = new Size(645, 232); groupBox2.TabIndex = 39; @@ -565,21 +409,41 @@ // // stopServiceBtn // - stopServiceBtn.Location = new Point(380, 115); + 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.Size = new Size(128, 40); - stopServiceBtn.TabIndex = 39; + 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.Location = new Point(142, 115); + 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.Size = new Size(128, 40); - startServiceBtn.TabIndex = 38; + 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; // @@ -604,7 +468,7 @@ groupBox5.Controls.Add(netCorePublishBtn); groupBox5.Controls.Add(vuePublishBtn); groupBox5.Font = new Font("Microsoft YaHei UI", 10.5F, FontStyle.Regular, GraphicsUnit.Point); - groupBox5.Location = new Point(10, 9); + groupBox5.Location = new Point(10, 70); groupBox5.Name = "groupBox5"; groupBox5.Size = new Size(663, 108); groupBox5.TabIndex = 41; @@ -613,24 +477,42 @@ // // netCorePublishBtn // - netCorePublishBtn.BackColor = Color.Beige; - netCorePublishBtn.Location = new Point(351, 46); + netCorePublishBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + netCorePublishBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + netCorePublishBtn.Depth = 0; + netCorePublishBtn.HighEmphasis = true; + netCorePublishBtn.Icon = null; + netCorePublishBtn.Location = new Point(395, 49); + netCorePublishBtn.Margin = new Padding(4, 6, 4, 6); + netCorePublishBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; netCorePublishBtn.Name = "netCorePublishBtn"; - netCorePublishBtn.Size = new Size(128, 40); - netCorePublishBtn.TabIndex = 40; + netCorePublishBtn.NoAccentTextColor = Color.Empty; + netCorePublishBtn.Size = new Size(85, 36); + netCorePublishBtn.TabIndex = 42; netCorePublishBtn.Text = "后端发布"; - netCorePublishBtn.UseVisualStyleBackColor = false; + netCorePublishBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + netCorePublishBtn.UseAccentColor = false; + netCorePublishBtn.UseVisualStyleBackColor = true; netCorePublishBtn.Click += netCorePublishBtn_Click; // // vuePublishBtn // - vuePublishBtn.BackColor = Color.Beige; - vuePublishBtn.Location = new Point(91, 46); + vuePublishBtn.AutoSizeMode = AutoSizeMode.GrowAndShrink; + vuePublishBtn.Density = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonDensity.Dense; + vuePublishBtn.Depth = 0; + vuePublishBtn.HighEmphasis = true; + vuePublishBtn.Icon = null; + vuePublishBtn.Location = new Point(142, 49); + vuePublishBtn.Margin = new Padding(4, 6, 4, 6); + vuePublishBtn.MouseState = MaterialSkin2DotNet.MouseState.HOVER; vuePublishBtn.Name = "vuePublishBtn"; - vuePublishBtn.Size = new Size(128, 40); - vuePublishBtn.TabIndex = 39; + vuePublishBtn.NoAccentTextColor = Color.Empty; + vuePublishBtn.Size = new Size(85, 36); + vuePublishBtn.TabIndex = 41; vuePublishBtn.Text = "前端发布"; - vuePublishBtn.UseVisualStyleBackColor = false; + vuePublishBtn.Type = MaterialSkin2DotNet.Controls.MaterialButton.MaterialButtonType.Contained; + vuePublishBtn.UseAccentColor = false; + vuePublishBtn.UseVisualStyleBackColor = true; vuePublishBtn.Click += vuePublishBtn_Click; // // openFileDialog1 @@ -641,32 +523,468 @@ // 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(12, 316); + materialTabControl1.MouseState = MaterialSkin2DotNet.MouseState.HOVER; + materialTabControl1.Multiline = true; + materialTabControl1.Name = "materialTabControl1"; + materialTabControl1.SelectedIndex = 0; + materialTabControl1.Size = new Size(669, 701); + 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, 668); + 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, 668); + 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; + // + // 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 = "方式二: 后端发布程序文件夹(程序自动打成压缩包,上传然后发布)"; + // + // 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 | 后端发布选择压缩包 (上传后发布)"; + // + // 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; + // + // 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; + // + // 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; + // + // 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; + // + // 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, 668); + tabPage4.TabIndex = 1; + tabPage4.Text = "服务相关操作"; + // // PublishForm // AutoScaleDimensions = new SizeF(7F, 17F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(1254, 949); - Controls.Add(tabControl1); + ClientSize = new Size(1198, 1023); + Controls.Add(materialTabControl1); Controls.Add(groupBox5); Controls.Add(groupBox3); Controls.Add(groupBox1); Name = "PublishForm"; - Text = "PublishForm"; + Text = "IRaCIS One click Publish"; groupBox1.ResumeLayout(false); groupBox1.PerformLayout(); groupBox3.ResumeLayout(false); - tabControl1.ResumeLayout(false); - tabPage2.ResumeLayout(false); - groupBox7.ResumeLayout(false); - groupBox7.PerformLayout(); - groupBox6.ResumeLayout(false); - groupBox6.PerformLayout(); - tabPage1.ResumeLayout(false); groupBox4.ResumeLayout(false); groupBox4.PerformLayout(); groupBox2.ResumeLayout(false); groupBox2.PerformLayout(); groupBox5.ResumeLayout(false); + groupBox5.PerformLayout(); + materialTabControl1.ResumeLayout(false); + tabPage3.ResumeLayout(false); + tabPage3.PerformLayout(); + tabPage1.ResumeLayout(false); + tabPage1.PerformLayout(); + tabPage4.ResumeLayout(false); ResumeLayout(false); } @@ -678,53 +996,52 @@ private RadioButton rb_local; private GroupBox groupBox3; private RichTextBox logTBox; - private TabControl tabControl1; - private TabPage tabPage1; - private Button deleteService_Btn; - private Button createService_Btn; private TextBox en_TBox; private Label label1; - private Button selectPathBtn; private TextBox exePathTbox; private Label label9; private TextBox serviceDisplayNameTBox; private TextBox serviceNameTBox; private Label label11; private Label label10; - private TabPage tabPage2; private GroupBox groupBox2; - private Button stopServiceBtn; - private Button startServiceBtn; private Label label2; private TextBox startOrStopServiceTbox; - private Label label4; - private TextBox backPathTBox; - private Label label3; - private TextBox bakDbName; - private TextBox backExePath; - private Label label5; private GroupBox groupBox4; - private Button startBakBtn; private GroupBox groupBox5; - private Button netCorePublishBtn; - private Button vuePublishBtn; private TextBox servicePortTBox; private Label label6; private OpenFileDialog openFileDialog1; - private Button serviceConfigSaveBtn; - private Button bakConfigSaveBtn; - private GroupBox groupBox6; - private TextBox publishFileTBox; - private Label label7; - private Button selectPublishFilePathBtn; - private Button sshNetCorePublishBtn; - private Button sshVuePublishBtn; - private Button selectPublishFolderPathBtn; - private Label label8; - private TextBox publishFolderTBox; - private Button sshNetCorePublishBtn2; private OpenFileDialog openPublishFileDialog; private FolderBrowserDialog folderBrowserDialog1; - private GroupBox groupBox7; + 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; + private MaterialSkin2DotNet.Controls.MaterialButton serviceConfigSaveBtn; + private MaterialSkin2DotNet.Controls.MaterialButton stopServiceBtn; + private MaterialSkin2DotNet.Controls.MaterialButton startServiceBtn; + private MaterialSkin2DotNet.Controls.MaterialButton selectPathBtn; + private MaterialSkin2DotNet.Controls.MaterialButton deleteService_Btn; + private MaterialSkin2DotNet.Controls.MaterialMaskedTextBox backPathTBox; + private MaterialSkin2DotNet.Controls.MaterialMaskedTextBox backExePath; + private MaterialSkin2DotNet.Controls.MaterialMaskedTextBox bakDbName; + 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; + private MaterialSkin2DotNet.Controls.MaterialLabel materialLabel4; + private MaterialSkin2DotNet.Controls.MaterialButton selectPublishFolderPathBtn; + private MaterialSkin2DotNet.Controls.MaterialButton selectPublishFilePathBtn; + private MaterialSkin2DotNet.Controls.MaterialButton sshNetCorePublishBtn2; + private MaterialSkin2DotNet.Controls.MaterialButton sshNetCorePublishBtn; + private MaterialSkin2DotNet.Controls.MaterialButton sshVuePublishBtn; } } \ No newline at end of file diff --git a/PublishSite/PublishForm.cs b/PublishSite/PublishForm.cs index 5eb85d84..18e32bfc 100644 --- a/PublishSite/PublishForm.cs +++ b/PublishSite/PublishForm.cs @@ -23,10 +23,11 @@ using static System.Windows.Forms.VisualStyles.VisualStyleElement.Window; using System.Management.Automation.Host; using SharpCompress.Common; using System.IO.Compression; +using MaterialSkin2DotNet.Controls; namespace PublishSite { - public partial class PublishForm : Form + public partial class PublishForm : MaterialForm { public PublishForm() { @@ -1013,5 +1014,6 @@ namespace PublishSite + } } diff --git a/PublishSite/PublishSite.csproj b/PublishSite/PublishSite.csproj index 0c230345..fe76639f 100644 --- a/PublishSite/PublishSite.csproj +++ b/PublishSite/PublishSite.csproj @@ -35,6 +35,7 @@ +