Add files via upload

This commit is contained in:
Belim 2020-08-25 17:42:51 +02:00 committed by GitHub
parent 2b596a6f96
commit 0e996e1282
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 188 additions and 163 deletions

View file

@ -43,33 +43,35 @@
this.LstPS = new System.Windows.Forms.CheckedListBox(); this.LstPS = new System.Windows.Forms.CheckedListBox();
this.PnlSettings = new System.Windows.Forms.Panel(); this.PnlSettings = new System.Windows.Forms.Panel();
this.PicOpenGitHubPage = new System.Windows.Forms.PictureBox(); this.PicOpenGitHubPage = new System.Windows.Forms.PictureBox();
this.BtnSettingsUndo = new System.Windows.Forms.Button(); this.PBar = new System.Windows.Forms.ProgressBar();
this.LblStatus = new System.Windows.Forms.Label();
this.LvwStatus = new System.Windows.Forms.ListView(); this.LvwStatus = new System.Windows.Forms.ListView();
this.Setting = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.Setting = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.State = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.State = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.PBar = new System.Windows.Forms.ProgressBar(); this.BtnSettingsUndo = new System.Windows.Forms.Button();
this.BtnSettingsDo = new System.Windows.Forms.Button(); this.BtnSettingsDo = new System.Windows.Forms.Button();
this.BtnSettingsAnalyze = new System.Windows.Forms.Button(); this.BtnSettingsAnalyze = new System.Windows.Forms.Button();
this.LblStatus = new System.Windows.Forms.Label();
this.PnlPS = new System.Windows.Forms.Panel(); this.PnlPS = new System.Windows.Forms.Panel();
this.BtnMenuPS = new System.Windows.Forms.Button(); this.BtnMenuPS = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.ChkCodePS = new System.Windows.Forms.CheckBox();
this.BtnDoPS = new System.Windows.Forms.Button();
this.TxtPSInfo = new System.Windows.Forms.TextBox(); this.TxtPSInfo = new System.Windows.Forms.TextBox();
this.TxtConsolePS = new System.Windows.Forms.TextBox();
this.TxtOutputPS = new System.Windows.Forms.TextBox(); this.TxtOutputPS = new System.Windows.Forms.TextBox();
this.TxtConsolePS = new System.Windows.Forms.TextBox();
this.PSMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.PSMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.PSImport = new System.Windows.Forms.ToolStripMenuItem(); this.PSImport = new System.Windows.Forms.ToolStripMenuItem();
this.PSSaveAs = new System.Windows.Forms.ToolStripMenuItem(); this.PSSaveAs = new System.Windows.Forms.ToolStripMenuItem();
this.PSMarketplace = new System.Windows.Forms.ToolStripMenuItem(); this.PSMarketplace = new System.Windows.Forms.ToolStripMenuItem();
this.ToolTip = new System.Windows.Forms.ToolTip(this.components); this.ToolTip = new System.Windows.Forms.ToolTip(this.components);
this.PnlSettingsBottom = new System.Windows.Forms.Panel();
this.ChkCodePS = new System.Windows.Forms.CheckBox();
this.BtnDoPS = new System.Windows.Forms.Button();
this.MainMenu.SuspendLayout(); this.MainMenu.SuspendLayout();
this.PnlNav.SuspendLayout(); this.PnlNav.SuspendLayout();
this.PnlSettings.SuspendLayout(); this.PnlSettings.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.PicOpenGitHubPage)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.PicOpenGitHubPage)).BeginInit();
this.PnlPS.SuspendLayout(); this.PnlPS.SuspendLayout();
this.PSMenu.SuspendLayout(); this.PSMenu.SuspendLayout();
this.PnlSettingsBottom.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// TvwSettings // TvwSettings
@ -86,7 +88,7 @@
this.TvwSettings.ShowLines = false; this.TvwSettings.ShowLines = false;
this.TvwSettings.ShowNodeToolTips = true; this.TvwSettings.ShowNodeToolTips = true;
this.TvwSettings.ShowPlusMinus = false; this.TvwSettings.ShowPlusMinus = false;
this.TvwSettings.Size = new System.Drawing.Size(355, 749); this.TvwSettings.Size = new System.Drawing.Size(355, 746);
this.TvwSettings.TabIndex = 18; this.TvwSettings.TabIndex = 18;
this.TvwSettings.TabStop = false; this.TvwSettings.TabStop = false;
this.TvwSettings.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.TvwSetting_AfterCheck); this.TvwSettings.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.TvwSetting_AfterCheck);
@ -157,10 +159,10 @@
// PnlNav // PnlNav
// //
this.PnlNav.BackColor = System.Drawing.Color.WhiteSmoke; this.PnlNav.BackColor = System.Drawing.Color.WhiteSmoke;
this.PnlNav.Controls.Add(this.TvwSettings);
this.PnlNav.Controls.Add(this.LblPS); this.PnlNav.Controls.Add(this.LblPS);
this.PnlNav.Controls.Add(this.LblSettings); this.PnlNav.Controls.Add(this.LblSettings);
this.PnlNav.Controls.Add(this.LblMainMenu); this.PnlNav.Controls.Add(this.LblMainMenu);
this.PnlNav.Controls.Add(this.TvwSettings);
this.PnlNav.Controls.Add(this.LstPS); this.PnlNav.Controls.Add(this.LstPS);
this.PnlNav.Dock = System.Windows.Forms.DockStyle.Left; this.PnlNav.Dock = System.Windows.Forms.DockStyle.Left;
this.PnlNav.Location = new System.Drawing.Point(0, 0); this.PnlNav.Location = new System.Drawing.Point(0, 0);
@ -217,7 +219,7 @@
this.LstPS.FormattingEnabled = true; this.LstPS.FormattingEnabled = true;
this.LstPS.Location = new System.Drawing.Point(16, 88); this.LstPS.Location = new System.Drawing.Point(16, 88);
this.LstPS.Name = "LstPS"; this.LstPS.Name = "LstPS";
this.LstPS.Size = new System.Drawing.Size(351, 700); this.LstPS.Size = new System.Drawing.Size(351, 750);
this.LstPS.Sorted = true; this.LstPS.Sorted = true;
this.LstPS.TabIndex = 112; this.LstPS.TabIndex = 112;
this.LstPS.ThreeDCheckBoxes = true; this.LstPS.ThreeDCheckBoxes = true;
@ -230,15 +232,12 @@
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.PnlSettings.Controls.Add(this.PicOpenGitHubPage); this.PnlSettings.Controls.Add(this.PicOpenGitHubPage);
this.PnlSettings.Controls.Add(this.BtnSettingsUndo);
this.PnlSettings.Controls.Add(this.LvwStatus);
this.PnlSettings.Controls.Add(this.PBar); this.PnlSettings.Controls.Add(this.PBar);
this.PnlSettings.Controls.Add(this.BtnSettingsDo);
this.PnlSettings.Controls.Add(this.BtnSettingsAnalyze);
this.PnlSettings.Controls.Add(this.LblStatus); this.PnlSettings.Controls.Add(this.LblStatus);
this.PnlSettings.Controls.Add(this.LvwStatus);
this.PnlSettings.Location = new System.Drawing.Point(366, 0); this.PnlSettings.Location = new System.Drawing.Point(366, 0);
this.PnlSettings.Name = "PnlSettings"; this.PnlSettings.Name = "PnlSettings";
this.PnlSettings.Size = new System.Drawing.Size(716, 837); this.PnlSettings.Size = new System.Drawing.Size(716, 773);
this.PnlSettings.TabIndex = 113; this.PnlSettings.TabIndex = 113;
// //
// PicOpenGitHubPage // PicOpenGitHubPage
@ -251,24 +250,31 @@
this.PicOpenGitHubPage.Size = new System.Drawing.Size(24, 24); this.PicOpenGitHubPage.Size = new System.Drawing.Size(24, 24);
this.PicOpenGitHubPage.TabIndex = 32; this.PicOpenGitHubPage.TabIndex = 32;
this.PicOpenGitHubPage.TabStop = false; this.PicOpenGitHubPage.TabStop = false;
this.ToolTip.SetToolTip(this.PicOpenGitHubPage, "github/privatezilla"); this.ToolTip.SetToolTip(this.PicOpenGitHubPage, "I\'m open on github/privatezilla");
this.PicOpenGitHubPage.Click += new System.EventHandler(this.PicOpenGitHubPage_Click); this.PicOpenGitHubPage.Click += new System.EventHandler(this.PicOpenGitHubPage_Click);
// //
// BtnSettingsUndo // PBar
// //
this.BtnSettingsUndo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.PBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.BtnSettingsUndo.BackColor = System.Drawing.Color.Gainsboro; | System.Windows.Forms.AnchorStyles.Right)));
this.BtnSettingsUndo.FlatAppearance.BorderColor = System.Drawing.Color.Gainsboro; this.PBar.Location = new System.Drawing.Point(12, 41);
this.BtnSettingsUndo.FlatAppearance.BorderSize = 0; this.PBar.Name = "PBar";
this.BtnSettingsUndo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.PBar.Size = new System.Drawing.Size(814, 5);
this.BtnSettingsUndo.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.PBar.TabIndex = 27;
this.BtnSettingsUndo.Location = new System.Drawing.Point(298, 794); this.PBar.Visible = false;
this.BtnSettingsUndo.Name = "BtnSettingsUndo"; //
this.BtnSettingsUndo.Size = new System.Drawing.Size(196, 32); // LblStatus
this.BtnSettingsUndo.TabIndex = 30; //
this.BtnSettingsUndo.Text = "Revert selected"; this.LblStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.BtnSettingsUndo.UseVisualStyleBackColor = false; | System.Windows.Forms.AnchorStyles.Right)));
this.BtnSettingsUndo.Click += new System.EventHandler(this.BtnSettingsUndo_Click); this.LblStatus.AutoEllipsis = true;
this.LblStatus.BackColor = System.Drawing.Color.White;
this.LblStatus.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LblStatus.Location = new System.Drawing.Point(9, 7);
this.LblStatus.Name = "LblStatus";
this.LblStatus.Size = new System.Drawing.Size(704, 40);
this.LblStatus.TabIndex = 29;
this.LblStatus.Text = "Press Analyze to check for configured settings.";
// //
// LvwStatus // LvwStatus
// //
@ -286,7 +292,7 @@
this.LvwStatus.HideSelection = false; this.LvwStatus.HideSelection = false;
this.LvwStatus.Location = new System.Drawing.Point(9, 50); this.LvwStatus.Location = new System.Drawing.Point(9, 50);
this.LvwStatus.Name = "LvwStatus"; this.LvwStatus.Name = "LvwStatus";
this.LvwStatus.Size = new System.Drawing.Size(704, 723); this.LvwStatus.Size = new System.Drawing.Size(704, 720);
this.LvwStatus.TabIndex = 31; this.LvwStatus.TabIndex = 31;
this.LvwStatus.TileSize = new System.Drawing.Size(1, 1); this.LvwStatus.TileSize = new System.Drawing.Size(1, 1);
this.LvwStatus.UseCompatibleStateImageBehavior = false; this.LvwStatus.UseCompatibleStateImageBehavior = false;
@ -303,15 +309,21 @@
this.State.Text = "State"; this.State.Text = "State";
this.State.Width = 150; this.State.Width = 150;
// //
// PBar // BtnSettingsUndo
// //
this.PBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.BtnSettingsUndo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
| System.Windows.Forms.AnchorStyles.Right))); this.BtnSettingsUndo.BackColor = System.Drawing.Color.Gainsboro;
this.PBar.Location = new System.Drawing.Point(12, 41); this.BtnSettingsUndo.FlatAppearance.BorderColor = System.Drawing.Color.Gainsboro;
this.PBar.Name = "PBar"; this.BtnSettingsUndo.FlatAppearance.BorderSize = 0;
this.PBar.Size = new System.Drawing.Size(814, 5); this.BtnSettingsUndo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.PBar.TabIndex = 27; this.BtnSettingsUndo.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.PBar.Visible = false; this.BtnSettingsUndo.Location = new System.Drawing.Point(297, 14);
this.BtnSettingsUndo.Name = "BtnSettingsUndo";
this.BtnSettingsUndo.Size = new System.Drawing.Size(196, 32);
this.BtnSettingsUndo.TabIndex = 30;
this.BtnSettingsUndo.Text = "Revert selected";
this.BtnSettingsUndo.UseVisualStyleBackColor = false;
this.BtnSettingsUndo.Click += new System.EventHandler(this.BtnSettingsUndo_Click);
// //
// BtnSettingsDo // BtnSettingsDo
// //
@ -321,7 +333,7 @@
this.BtnSettingsDo.FlatAppearance.BorderSize = 0; this.BtnSettingsDo.FlatAppearance.BorderSize = 0;
this.BtnSettingsDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.BtnSettingsDo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnSettingsDo.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.BtnSettingsDo.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.BtnSettingsDo.Location = new System.Drawing.Point(509, 794); this.BtnSettingsDo.Location = new System.Drawing.Point(508, 14);
this.BtnSettingsDo.Name = "BtnSettingsDo"; this.BtnSettingsDo.Name = "BtnSettingsDo";
this.BtnSettingsDo.Size = new System.Drawing.Size(196, 32); this.BtnSettingsDo.Size = new System.Drawing.Size(196, 32);
this.BtnSettingsDo.TabIndex = 26; this.BtnSettingsDo.TabIndex = 26;
@ -337,7 +349,7 @@
this.BtnSettingsAnalyze.FlatAppearance.BorderSize = 0; this.BtnSettingsAnalyze.FlatAppearance.BorderSize = 0;
this.BtnSettingsAnalyze.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.BtnSettingsAnalyze.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnSettingsAnalyze.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.BtnSettingsAnalyze.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.BtnSettingsAnalyze.Location = new System.Drawing.Point(13, 794); this.BtnSettingsAnalyze.Location = new System.Drawing.Point(12, 14);
this.BtnSettingsAnalyze.Name = "BtnSettingsAnalyze"; this.BtnSettingsAnalyze.Name = "BtnSettingsAnalyze";
this.BtnSettingsAnalyze.Size = new System.Drawing.Size(196, 32); this.BtnSettingsAnalyze.Size = new System.Drawing.Size(196, 32);
this.BtnSettingsAnalyze.TabIndex = 28; this.BtnSettingsAnalyze.TabIndex = 28;
@ -345,19 +357,6 @@
this.BtnSettingsAnalyze.UseVisualStyleBackColor = false; this.BtnSettingsAnalyze.UseVisualStyleBackColor = false;
this.BtnSettingsAnalyze.Click += new System.EventHandler(this.BtnSettingsAnalyze_Click); this.BtnSettingsAnalyze.Click += new System.EventHandler(this.BtnSettingsAnalyze_Click);
// //
// LblStatus
//
this.LblStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.LblStatus.AutoEllipsis = true;
this.LblStatus.BackColor = System.Drawing.Color.White;
this.LblStatus.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.LblStatus.Location = new System.Drawing.Point(9, 7);
this.LblStatus.Name = "LblStatus";
this.LblStatus.Size = new System.Drawing.Size(704, 40);
this.LblStatus.TabIndex = 29;
this.LblStatus.Text = "Press Analyze to check for configured settings.";
//
// PnlPS // PnlPS
// //
this.PnlPS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.PnlPS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@ -366,14 +365,12 @@
this.PnlPS.BackColor = System.Drawing.Color.White; this.PnlPS.BackColor = System.Drawing.Color.White;
this.PnlPS.Controls.Add(this.BtnMenuPS); this.PnlPS.Controls.Add(this.BtnMenuPS);
this.PnlPS.Controls.Add(this.label1); this.PnlPS.Controls.Add(this.label1);
this.PnlPS.Controls.Add(this.ChkCodePS);
this.PnlPS.Controls.Add(this.BtnDoPS);
this.PnlPS.Controls.Add(this.TxtPSInfo); this.PnlPS.Controls.Add(this.TxtPSInfo);
this.PnlPS.Controls.Add(this.TxtConsolePS);
this.PnlPS.Controls.Add(this.TxtOutputPS); this.PnlPS.Controls.Add(this.TxtOutputPS);
this.PnlPS.Controls.Add(this.TxtConsolePS);
this.PnlPS.Location = new System.Drawing.Point(366, 0); this.PnlPS.Location = new System.Drawing.Point(366, 0);
this.PnlPS.Name = "PnlPS"; this.PnlPS.Name = "PnlPS";
this.PnlPS.Size = new System.Drawing.Size(716, 837); this.PnlPS.Size = new System.Drawing.Size(716, 773);
this.PnlPS.TabIndex = 113; this.PnlPS.TabIndex = 113;
this.PnlPS.Visible = false; this.PnlPS.Visible = false;
// //
@ -409,42 +406,6 @@
this.label1.Text = "Apply PowerShell Script"; this.label1.Text = "Apply PowerShell Script";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
// //
// ChkCodePS
//
this.ChkCodePS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.ChkCodePS.Appearance = System.Windows.Forms.Appearance.Button;
this.ChkCodePS.BackColor = System.Drawing.Color.Gainsboro;
this.ChkCodePS.FlatAppearance.BorderColor = System.Drawing.Color.Black;
this.ChkCodePS.FlatAppearance.BorderSize = 0;
this.ChkCodePS.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ChkCodePS.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ChkCodePS.ForeColor = System.Drawing.Color.Black;
this.ChkCodePS.Location = new System.Drawing.Point(13, 794);
this.ChkCodePS.Margin = new System.Windows.Forms.Padding(2);
this.ChkCodePS.Name = "ChkCodePS";
this.ChkCodePS.Size = new System.Drawing.Size(196, 32);
this.ChkCodePS.TabIndex = 113;
this.ChkCodePS.Text = "View code";
this.ChkCodePS.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.ChkCodePS.UseVisualStyleBackColor = false;
this.ChkCodePS.CheckedChanged += new System.EventHandler(this.ChkCodePS_CheckedChanged);
//
// BtnDoPS
//
this.BtnDoPS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnDoPS.BackColor = System.Drawing.Color.Gainsboro;
this.BtnDoPS.FlatAppearance.BorderColor = System.Drawing.Color.Gainsboro;
this.BtnDoPS.FlatAppearance.BorderSize = 0;
this.BtnDoPS.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnDoPS.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.BtnDoPS.Location = new System.Drawing.Point(509, 794);
this.BtnDoPS.Name = "BtnDoPS";
this.BtnDoPS.Size = new System.Drawing.Size(196, 32);
this.BtnDoPS.TabIndex = 112;
this.BtnDoPS.Text = "Apply selected";
this.BtnDoPS.UseVisualStyleBackColor = false;
this.BtnDoPS.Click += new System.EventHandler(this.BtnDoPS_Click);
//
// TxtPSInfo // TxtPSInfo
// //
this.TxtPSInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.TxtPSInfo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@ -457,10 +418,28 @@
this.TxtPSInfo.Multiline = true; this.TxtPSInfo.Multiline = true;
this.TxtPSInfo.Name = "TxtPSInfo"; this.TxtPSInfo.Name = "TxtPSInfo";
this.TxtPSInfo.ReadOnly = true; this.TxtPSInfo.ReadOnly = true;
this.TxtPSInfo.Size = new System.Drawing.Size(238, 778); this.TxtPSInfo.Size = new System.Drawing.Size(238, 714);
this.TxtPSInfo.TabIndex = 110; this.TxtPSInfo.TabIndex = 110;
this.TxtPSInfo.Text = resources.GetString("TxtPSInfo.Text"); this.TxtPSInfo.Text = resources.GetString("TxtPSInfo.Text");
// //
// TxtOutputPS
//
this.TxtOutputPS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtOutputPS.BackColor = System.Drawing.Color.White;
this.TxtOutputPS.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TxtOutputPS.Font = new System.Drawing.Font("Consolas", 9F);
this.TxtOutputPS.ForeColor = System.Drawing.Color.Black;
this.TxtOutputPS.Location = new System.Drawing.Point(242, 48);
this.TxtOutputPS.Multiline = true;
this.TxtOutputPS.Name = "TxtOutputPS";
this.TxtOutputPS.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.TxtOutputPS.Size = new System.Drawing.Size(474, 722);
this.TxtOutputPS.TabIndex = 10;
this.TxtOutputPS.Text = "PS";
this.TxtOutputPS.WordWrap = false;
//
// TxtConsolePS // TxtConsolePS
// //
this.TxtConsolePS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.TxtConsolePS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@ -476,29 +455,11 @@
this.TxtConsolePS.Multiline = true; this.TxtConsolePS.Multiline = true;
this.TxtConsolePS.Name = "TxtConsolePS"; this.TxtConsolePS.Name = "TxtConsolePS";
this.TxtConsolePS.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.TxtConsolePS.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.TxtConsolePS.Size = new System.Drawing.Size(474, 740); this.TxtConsolePS.Size = new System.Drawing.Size(474, 722);
this.TxtConsolePS.TabIndex = 111; this.TxtConsolePS.TabIndex = 111;
this.TxtConsolePS.Visible = false; this.TxtConsolePS.Visible = false;
this.TxtConsolePS.WordWrap = false; this.TxtConsolePS.WordWrap = false;
// //
// TxtOutputPS
//
this.TxtOutputPS.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtOutputPS.BackColor = System.Drawing.Color.White;
this.TxtOutputPS.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.TxtOutputPS.Font = new System.Drawing.Font("Consolas", 9F);
this.TxtOutputPS.ForeColor = System.Drawing.Color.Black;
this.TxtOutputPS.Location = new System.Drawing.Point(242, 48);
this.TxtOutputPS.Multiline = true;
this.TxtOutputPS.Name = "TxtOutputPS";
this.TxtOutputPS.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.TxtOutputPS.Size = new System.Drawing.Size(474, 740);
this.TxtOutputPS.TabIndex = 10;
this.TxtOutputPS.Text = "PS";
this.TxtOutputPS.WordWrap = false;
//
// PSMenu // PSMenu
// //
this.PSMenu.BackColor = System.Drawing.Color.WhiteSmoke; this.PSMenu.BackColor = System.Drawing.Color.WhiteSmoke;
@ -545,12 +506,64 @@
this.ToolTip.UseAnimation = false; this.ToolTip.UseAnimation = false;
this.ToolTip.UseFading = false; this.ToolTip.UseFading = false;
// //
// PnlSettingsBottom
//
this.PnlSettingsBottom.Controls.Add(this.BtnSettingsUndo);
this.PnlSettingsBottom.Controls.Add(this.ChkCodePS);
this.PnlSettingsBottom.Controls.Add(this.BtnDoPS);
this.PnlSettingsBottom.Controls.Add(this.BtnSettingsDo);
this.PnlSettingsBottom.Controls.Add(this.BtnSettingsAnalyze);
this.PnlSettingsBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.PnlSettingsBottom.Location = new System.Drawing.Point(367, 779);
this.PnlSettingsBottom.Name = "PnlSettingsBottom";
this.PnlSettingsBottom.Size = new System.Drawing.Size(716, 58);
this.PnlSettingsBottom.TabIndex = 114;
//
// ChkCodePS
//
this.ChkCodePS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.ChkCodePS.Appearance = System.Windows.Forms.Appearance.Button;
this.ChkCodePS.BackColor = System.Drawing.Color.Gainsboro;
this.ChkCodePS.FlatAppearance.BorderColor = System.Drawing.Color.Black;
this.ChkCodePS.FlatAppearance.BorderSize = 0;
this.ChkCodePS.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.ChkCodePS.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ChkCodePS.ForeColor = System.Drawing.Color.Black;
this.ChkCodePS.Location = new System.Drawing.Point(12, 14);
this.ChkCodePS.Margin = new System.Windows.Forms.Padding(2);
this.ChkCodePS.Name = "ChkCodePS";
this.ChkCodePS.Size = new System.Drawing.Size(196, 32);
this.ChkCodePS.TabIndex = 115;
this.ChkCodePS.Text = "View code";
this.ChkCodePS.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.ChkCodePS.UseVisualStyleBackColor = false;
this.ChkCodePS.Visible = false;
this.ChkCodePS.CheckedChanged += new System.EventHandler(this.ChkCodePS_CheckedChanged);
//
// BtnDoPS
//
this.BtnDoPS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnDoPS.BackColor = System.Drawing.Color.Gainsboro;
this.BtnDoPS.FlatAppearance.BorderColor = System.Drawing.Color.Gainsboro;
this.BtnDoPS.FlatAppearance.BorderSize = 0;
this.BtnDoPS.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnDoPS.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.BtnDoPS.Location = new System.Drawing.Point(508, 14);
this.BtnDoPS.Name = "BtnDoPS";
this.BtnDoPS.Size = new System.Drawing.Size(196, 32);
this.BtnDoPS.TabIndex = 114;
this.BtnDoPS.Text = "Apply selected";
this.BtnDoPS.UseVisualStyleBackColor = false;
this.BtnDoPS.Visible = false;
this.BtnDoPS.Click += new System.EventHandler(this.BtnDoPS_Click);
//
// MainWindow // MainWindow
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1083, 837); this.ClientSize = new System.Drawing.Size(1083, 837);
this.Controls.Add(this.PnlSettingsBottom);
this.Controls.Add(this.PnlNav); this.Controls.Add(this.PnlNav);
this.Controls.Add(this.PnlSettings); this.Controls.Add(this.PnlSettings);
this.Controls.Add(this.PnlPS); this.Controls.Add(this.PnlPS);
@ -568,6 +581,7 @@
this.PnlPS.ResumeLayout(false); this.PnlPS.ResumeLayout(false);
this.PnlPS.PerformLayout(); this.PnlPS.PerformLayout();
this.PSMenu.ResumeLayout(false); this.PSMenu.ResumeLayout(false);
this.PnlSettingsBottom.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@ -596,8 +610,6 @@
private System.Windows.Forms.TextBox TxtPSInfo; private System.Windows.Forms.TextBox TxtPSInfo;
private System.Windows.Forms.TextBox TxtOutputPS; private System.Windows.Forms.TextBox TxtOutputPS;
private System.Windows.Forms.TextBox TxtConsolePS; private System.Windows.Forms.TextBox TxtConsolePS;
private System.Windows.Forms.CheckBox ChkCodePS;
private System.Windows.Forms.Button BtnDoPS;
private System.Windows.Forms.ContextMenuStrip PSMenu; private System.Windows.Forms.ContextMenuStrip PSMenu;
private System.Windows.Forms.ToolStripMenuItem PSImport; private System.Windows.Forms.ToolStripMenuItem PSImport;
private System.Windows.Forms.ToolStripMenuItem PSSaveAs; private System.Windows.Forms.ToolStripMenuItem PSSaveAs;
@ -607,6 +619,9 @@
private System.Windows.Forms.Button BtnMenuPS; private System.Windows.Forms.Button BtnMenuPS;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.PictureBox PicOpenGitHubPage; private System.Windows.Forms.PictureBox PicOpenGitHubPage;
private System.Windows.Forms.Panel PnlSettingsBottom;
private System.Windows.Forms.Button BtnDoPS;
private System.Windows.Forms.CheckBox ChkCodePS;
} }
} }

View file

@ -55,12 +55,53 @@ namespace Privatezilla
public Version CurrentVersion = new Version(Application.ProductVersion); public Version CurrentVersion = new Version(Application.ProductVersion);
public Version LatestVersion; public Version LatestVersion;
private void CheckRelease_Click(object sender, EventArgs e)
{
try
{
WebRequest hreq = WebRequest.Create(_releaseURL);
hreq.Timeout = 10000;
hreq.Headers.Set("Cache-Control", "no-cache, no-store, must-revalidate");
WebResponse hres = hreq.GetResponse();
StreamReader sr = new StreamReader(hres.GetResponseStream());
LatestVersion = new Version(sr.ReadToEnd().Trim());
// Done and dispose!
sr.Dispose();
hres.Dispose();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); // Update check failed!
}
var equals = LatestVersion.CompareTo(CurrentVersion);
if (equals == 0)
{
MessageBox.Show(_releaseUpToDate, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); // Up-to-date
}
else if (equals < 0)
{
MessageBox.Show(_releaseUnofficial, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); // Unofficial
}
else // New release available!
{
if (MessageBox.Show("There is a new version available #" + LatestVersion + "\nYour are using version #" + CurrentVersion + "\n\nDo you want to open the @github/releases page?", this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) // New release available!
{
Process.Start("https://github.com/builtbybel/privatezilla/releases/tag/" + LatestVersion);
}
}
}
public MainWindow() public MainWindow()
{ {
InitializeComponent(); InitializeComponent();
// Initilize settings // Initilize settings
InitializeGPO(); InitializeSettings();
// Check if community package is installed // Check if community package is installed
CommunityPackageAvailable(); CommunityPackageAvailable();
@ -69,7 +110,7 @@ namespace Privatezilla
LblMainMenu.Text = "\ue700"; // Hamburger menu LblMainMenu.Text = "\ue700"; // Hamburger menu
} }
public void InitializeGPO() public void InitializeSettings()
{ {
TvwSettings.Nodes.Clear(); TvwSettings.Nodes.Clear();
@ -454,47 +495,6 @@ namespace Privatezilla
this.MainMenu.Show(Cursor.Position.X, Cursor.Position.Y); this.MainMenu.Show(Cursor.Position.X, Cursor.Position.Y);
} }
private void CheckRelease_Click(object sender, EventArgs e)
{
try
{
WebRequest hreq = WebRequest.Create(_releaseURL);
hreq.Timeout = 10000;
hreq.Headers.Set("Cache-Control", "no-cache, no-store, must-revalidate");
WebResponse hres = hreq.GetResponse();
StreamReader sr = new StreamReader(hres.GetResponseStream());
LatestVersion = new Version(sr.ReadToEnd().Trim());
// Done and dispose!
sr.Dispose();
hres.Dispose();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); // Update check failed!
}
var equals = LatestVersion.CompareTo(CurrentVersion);
if (equals == 0)
{
MessageBox.Show(_releaseUpToDate, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information); // Up-to-date
}
else if (equals < 0)
{
MessageBox.Show(_releaseUnofficial, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); // Unofficial
}
else // New release available!
{
if (MessageBox.Show("There is a new version available #" + LatestVersion + "\nYour are using version #" + CurrentVersion + "\n\nDo you want to open the @github/releases page?", this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) // New release available!
{
Process.Start("https://github.com/builtbybel/privatezilla/releases/tag/" + LatestVersion);
}
}
}
private void Help_Click(object sender, EventArgs e) private void Help_Click(object sender, EventArgs e)
{ {
MessageBox.Show(_helpApp, Help.Text, MessageBoxButtons.OK, MessageBoxIcon.Question); MessageBox.Show(_helpApp, Help.Text, MessageBoxButtons.OK, MessageBoxIcon.Question);
@ -507,9 +507,14 @@ namespace Privatezilla
{ {
// Switch to More // Switch to More
PnlPS.Visible = true; PnlPS.Visible = true;
BtnDoPS.Visible = true;
ChkCodePS.Visible = true;
LstPS.Visible = true; LstPS.Visible = true;
PnlSettings.Visible = false; PnlSettings.Visible = false;
BtnSettingsAnalyze.Visible = false;
BtnSettingsUndo.Visible = false;
BtnSettingsDo.Visible = false;
TvwSettings.Visible = false; TvwSettings.Visible = false;
// Clear list // Clear list
@ -544,9 +549,14 @@ namespace Privatezilla
{ {
// Switch to Setting // Switch to Setting
PnlSettings.Visible = true; PnlSettings.Visible = true;
BtnSettingsAnalyze.Visible = true;
BtnSettingsUndo.Visible = true;
BtnSettingsDo.Visible = true;
TvwSettings.Visible = true; TvwSettings.Visible = true;
PnlPS.Visible = false; PnlPS.Visible = false;
BtnDoPS.Visible = false;
ChkCodePS.Visible = false;
LstPS.Visible = false; LstPS.Visible = false;
} }

View file

@ -38,7 +38,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon> <ApplicationIcon>privatezilla.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'x64|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'x64|AnyCPU'">
<OutputPath>bin\x64\</OutputPath> <OutputPath>bin\x64\</OutputPath>
@ -178,7 +178,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup />
<ItemGroup> <ItemGroup>
<Content Include="icon.ico" /> <Content Include="privatezilla.ico" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View file

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben: // indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.30.0")] [assembly: AssemblyVersion("0.30.2")]
[assembly: AssemblyFileVersion("0.30.0")] [assembly: AssemblyFileVersion("0.30.2")]

View file

@ -5,7 +5,7 @@ namespace Privatezilla.Setting.Cortana
internal class DisableBing : SettingBase internal class DisableBing : SettingBase
{ {
private const string BingKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Windows Search"; private const string BingKey = @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Windows Search";
private const string Bing2004Key = @"HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer"; //Disable Websearch on W1indows 10, version >=2004 private const string Bing2004Key = @"HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer"; // Disable Websearch on Windows 10, version >=2004
private const int DesiredValue = 0; private const int DesiredValue = 0;
public override string ID() public override string ID()

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB