deadmoon 2 年之前
父節點
當前提交
acc0da381c

+ 0 - 58
Optimizer/Controls/MoonToggleButton.cs

@@ -1,58 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace Optimizer
-{
-    public sealed class MoonToggleButton : Button
-    {
-        bool _state;
-
-        string _captionYes;
-        string _captionNo;
-
-        public MoonToggleButton()
-        {
-            this.DoubleBuffered = true;
-            CheckForIllegalCrossThreadCalls = false;
-
-            _captionYes = Options.TranslationList["btnYes"].ToString();
-            _captionNo = Options.TranslationList["btnNo"].ToString();
-
-            ToggleState = false;
-            this.Click += MoonToggleButton_Click;
-        }
-
-        private void MoonToggleButton_Click(object sender, EventArgs e)
-        {
-            ToggleState = !_state;
-        }
-
-        public bool ToggleState
-        {
-            get { return this._state; }
-            set
-            {
-                _state = value;
-                this.ForeColor = Options.TextColor;
-
-                if (_state)
-                {
-                    this.Text = _captionYes;
-                    this.BackColor = Options.ForegroundColor;
-                }
-                else
-                {
-                    this.Text = _captionNo;
-                    this.BackColor = Options.BackAccentColor;
-                }
-            }
-        }
-
-
-    }
-}

+ 0 - 102
Optimizer/Forms/WizardForm.Designer.cs

@@ -1,102 +0,0 @@
-namespace Optimizer
-{
-    partial class WizardForm
-    {
-        /// <summary>
-        /// Required designer variable.
-        /// </summary>
-        private System.ComponentModel.IContainer components = null;
-
-        /// <summary>
-        /// Clean up any resources being used.
-        /// </summary>
-        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing && (components != null))
-            {
-                components.Dispose();
-            }
-            base.Dispose(disposing);
-        }
-
-        #region Windows Form Designer generated code
-
-        /// <summary>
-        /// Required method for Designer support - do not modify
-        /// the contents of this method with the code editor.
-        /// </summary>
-        private void InitializeComponent()
-        {
-            this.lblUsingPrint = new System.Windows.Forms.Label();
-            this.moonToggleButton1 = new Optimizer.MoonToggleButton();
-            this.panelGeneral = new System.Windows.Forms.Panel();
-            this.panelGeneral.SuspendLayout();
-            this.SuspendLayout();
-            // 
-            // lblUsingPrint
-            // 
-            this.lblUsingPrint.AutoSize = true;
-            this.lblUsingPrint.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.lblUsingPrint.ForeColor = System.Drawing.Color.Silver;
-            this.lblUsingPrint.Location = new System.Drawing.Point(21, 21);
-            this.lblUsingPrint.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            this.lblUsingPrint.Name = "lblUsingPrint";
-            this.lblUsingPrint.Size = new System.Drawing.Size(39, 19);
-            this.lblUsingPrint.TabIndex = 56;
-            this.lblUsingPrint.Tag = "";
-            this.lblUsingPrint.Text = "label";
-            // 
-            // moonToggleButton1
-            // 
-            this.moonToggleButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(102)))), ((int)(((byte)(204)))));
-            this.moonToggleButton1.FlatAppearance.BorderSize = 0;
-            this.moonToggleButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
-            this.moonToggleButton1.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold);
-            this.moonToggleButton1.Location = new System.Drawing.Point(25, 43);
-            this.moonToggleButton1.Name = "moonToggleButton1";
-            this.moonToggleButton1.Size = new System.Drawing.Size(113, 29);
-            this.moonToggleButton1.TabIndex = 57;
-            this.moonToggleButton1.Text = "Yes";
-            this.moonToggleButton1.ToggleState = false;
-            this.moonToggleButton1.UseVisualStyleBackColor = false;
-            this.moonToggleButton1.Click += new System.EventHandler(this.moonToggleButton1_Click);
-            // 
-            // panelGeneral
-            // 
-            this.panelGeneral.Controls.Add(this.moonToggleButton1);
-            this.panelGeneral.Controls.Add(this.lblUsingPrint);
-            this.panelGeneral.Location = new System.Drawing.Point(12, 12);
-            this.panelGeneral.Name = "panelGeneral";
-            this.panelGeneral.Size = new System.Drawing.Size(473, 402);
-            this.panelGeneral.TabIndex = 57;
-            // 
-            // WizardForm
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
-            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
-            this.ClientSize = new System.Drawing.Size(771, 568);
-            this.Controls.Add(this.panelGeneral);
-            this.DoubleBuffered = true;
-            this.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold);
-            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
-            this.MinimizeBox = false;
-            this.Name = "WizardForm";
-            this.ShowIcon = false;
-            this.ShowInTaskbar = false;
-            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Load += new System.EventHandler(this.WizardForm_Load);
-            this.panelGeneral.ResumeLayout(false);
-            this.panelGeneral.PerformLayout();
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-
-        private System.Windows.Forms.Label lblUsingPrint;
-        private MoonToggleButton moonToggleButton1;
-        private System.Windows.Forms.Panel panelGeneral;
-    }
-}

+ 0 - 30
Optimizer/Forms/WizardForm.cs

@@ -1,30 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace Optimizer
-{
-    public partial class WizardForm : Form
-    {
-        public WizardForm()
-        {
-            InitializeComponent();
-        }
-
-        private void WizardForm_Load(object sender, EventArgs e)
-        {
-
-        }
-
-        private void moonToggleButton1_Click(object sender, EventArgs e)
-        {
-
-        }
-    }
-}

+ 0 - 120
Optimizer/Forms/WizardForm.resx

@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-</root>

+ 1 - 1
Optimizer/Resources/i18n/EL.json

@@ -233,7 +233,7 @@
 	"ccKeywordL": "Λέξη-κλειδί",
 	"ccFileL": "Θέση αρχείου",
 	"ccL": "Ορίστε τις προσαρμοσμένες εντολές Εκτέλεσης",
-	"btnYes": "Ναί",
+	"btnYes": "Ναι",
 	"btnNo": "Όχι",
 	"btnOk": "Εντάξει",
 	"HostsEditorForm": "Επεξεργασία αρχείου Hosts",

+ 1 - 16
Optimizer/Resources/i18n/EN.json

@@ -439,20 +439,5 @@ It has negative effect on performance.",
 	"winSearchSw": "Disable Search",
 	"winSearchTip": "Disables Windows search service.",
 	"btnRestoreUwp": "Restore all UWP",
-	"restoreUwpMessage": "Are you sure you want to do this?",
-	"lblUsingPrint": "Using printers and fax devices?",
-	"lblUsingSR": "Actively using System Restore feature?",
-	"lblHibernate": "Using hibernate instead of sleep?",
-	"lblOffice": "Do you have Office installed?",
-	"lblFF": "Using Mozilla Firefox browser?",
-	"lblGC": "Using Google Chrome browser?",
-	"lblNvidiaGpu": "Do you have a NVIDIA graphics card installed?",
-	"lblVS": "Using Visual Studio?",
-	"lblAutoUpdates": "Do you wish to disable automatic Windows updated?",
-	"lblStoreAutoUpdates": "Do you wish to disable Microsoft Store automatic updates?",
-	"lblCortana": "Using Cortana?",
-	"lblGamingPerf": "Do you wish to improve gaming performance?",
-	"lblXboxServices": "Using Xbox Live services?",
-	"lblTouchSupport": "Does your device support touch screen?",
-	"lblClassic11": "Do you wish to make Windows 11 look like Windows 10?"
+	"restoreUwpMessage": "Are you sure you want to do this?"
 }