aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/GlobalPrograms
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/GlobalPrograms')
-rw-r--r--TimeHACK.Main/GlobalPrograms/WinClassicCalculator.Designer.cs646
-rw-r--r--TimeHACK.Main/GlobalPrograms/WinClassicCalculator.cs175
-rw-r--r--TimeHACK.Main/GlobalPrograms/WinClassicCalculator.resx126
-rw-r--r--TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs11
4 files changed, 949 insertions, 9 deletions
diff --git a/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.Designer.cs b/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.Designer.cs
new file mode 100644
index 0000000..70ad0a2
--- /dev/null
+++ b/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.Designer.cs
@@ -0,0 +1,646 @@
+namespace TimeHACK.OS.Win95.Win95Apps
+{
+ partial class WinClassicCalculator
+ {
+ /// <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 Component 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.components = new System.ComponentModel.Container();
+ this.timer1 = new System.Windows.Forms.Timer(this.components);
+ this.HelpToolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
+ this.AboutCalculatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.StandardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.ScientificToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.HelpToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
+ this.PasteCtrlVToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
+ this.CopyCtrlCToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
+ this.EditToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
+ this.txtNumbers = new System.Windows.Forms.TextBox();
+ this.Button27 = new System.Windows.Forms.Button();
+ this.Button26 = new System.Windows.Forms.Button();
+ this.Button1 = new System.Windows.Forms.Button();
+ this.Button25 = new System.Windows.Forms.Button();
+ this.Button2 = new System.Windows.Forms.Button();
+ this.Button21 = new System.Windows.Forms.Button();
+ this.Button3 = new System.Windows.Forms.Button();
+ this.Button22 = new System.Windows.Forms.Button();
+ this.Button4 = new System.Windows.Forms.Button();
+ this.Button23 = new System.Windows.Forms.Button();
+ this.Button11 = new System.Windows.Forms.Button();
+ this.Button7 = new System.Windows.Forms.Button();
+ this.Button16 = new System.Windows.Forms.Button();
+ this.Button24 = new System.Windows.Forms.Button();
+ this.Button12 = new System.Windows.Forms.Button();
+ this.one = new System.Windows.Forms.Button();
+ this.Button15 = new System.Windows.Forms.Button();
+ this.Button17 = new System.Windows.Forms.Button();
+ this.Button13 = new System.Windows.Forms.Button();
+ this.Button5 = new System.Windows.Forms.Button();
+ this.Button14 = new System.Windows.Forms.Button();
+ this.Button18 = new System.Windows.Forms.Button();
+ this.Button8 = new System.Windows.Forms.Button();
+ this.Button10 = new System.Windows.Forms.Button();
+ this.Button20 = new System.Windows.Forms.Button();
+ this.Button19 = new System.Windows.Forms.Button();
+ this.Button9 = new System.Windows.Forms.Button();
+ this.MenuStrip2 = new System.Windows.Forms.MenuStrip();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.MenuStrip2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ this.SuspendLayout();
+ //
+ // timer1
+ //
+ this.timer1.Interval = 1;
+ //
+ // HelpToolStripMenuItem3
+ //
+ this.HelpToolStripMenuItem3.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.AboutCalculatorToolStripMenuItem});
+ this.HelpToolStripMenuItem3.Name = "HelpToolStripMenuItem3";
+ this.HelpToolStripMenuItem3.Size = new System.Drawing.Size(41, 20);
+ this.HelpToolStripMenuItem3.Text = "Help";
+ //
+ // AboutCalculatorToolStripMenuItem
+ //
+ this.AboutCalculatorToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
+ this.AboutCalculatorToolStripMenuItem.Name = "AboutCalculatorToolStripMenuItem";
+ this.AboutCalculatorToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
+ this.AboutCalculatorToolStripMenuItem.Text = "About Calculator";
+ this.AboutCalculatorToolStripMenuItem.Click += new System.EventHandler(this.AboutCalculatorToolStripMenuItem_Click);
+ //
+ // StandardToolStripMenuItem
+ //
+ this.StandardToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
+ this.StandardToolStripMenuItem.Name = "StandardToolStripMenuItem";
+ this.StandardToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
+ this.StandardToolStripMenuItem.Text = "Standard";
+ //
+ // ScientificToolStripMenuItem
+ //
+ this.ScientificToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
+ this.ScientificToolStripMenuItem.Name = "ScientificToolStripMenuItem";
+ this.ScientificToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
+ this.ScientificToolStripMenuItem.Text = "Scientific";
+ //
+ // HelpToolStripMenuItem2
+ //
+ this.HelpToolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.ScientificToolStripMenuItem,
+ this.StandardToolStripMenuItem});
+ this.HelpToolStripMenuItem2.Name = "HelpToolStripMenuItem2";
+ this.HelpToolStripMenuItem2.Size = new System.Drawing.Size(42, 20);
+ this.HelpToolStripMenuItem2.Text = "View";
+ //
+ // PasteCtrlVToolStripMenuItem1
+ //
+ this.PasteCtrlVToolStripMenuItem1.BackColor = System.Drawing.Color.Silver;
+ this.PasteCtrlVToolStripMenuItem1.Name = "PasteCtrlVToolStripMenuItem1";
+ this.PasteCtrlVToolStripMenuItem1.Size = new System.Drawing.Size(152, 22);
+ this.PasteCtrlVToolStripMenuItem1.Text = "Paste Ctrl+V";
+ this.PasteCtrlVToolStripMenuItem1.Click += new System.EventHandler(this.PasteCtrlVToolStripMenuItem1_Click);
+ //
+ // CopyCtrlCToolStripMenuItem1
+ //
+ this.CopyCtrlCToolStripMenuItem1.BackColor = System.Drawing.Color.Silver;
+ this.CopyCtrlCToolStripMenuItem1.Name = "CopyCtrlCToolStripMenuItem1";
+ this.CopyCtrlCToolStripMenuItem1.Size = new System.Drawing.Size(152, 22);
+ this.CopyCtrlCToolStripMenuItem1.Text = "Copy Ctrl+C";
+ this.CopyCtrlCToolStripMenuItem1.Click += new System.EventHandler(this.CopyCtrlCToolStripMenuItem1_Click);
+ //
+ // EditToolStripMenuItem1
+ //
+ this.EditToolStripMenuItem1.BackColor = System.Drawing.Color.Silver;
+ this.EditToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.CopyCtrlCToolStripMenuItem1,
+ this.PasteCtrlVToolStripMenuItem1});
+ this.EditToolStripMenuItem1.Name = "EditToolStripMenuItem1";
+ this.EditToolStripMenuItem1.Size = new System.Drawing.Size(37, 20);
+ this.EditToolStripMenuItem1.Text = "Edit";
+ //
+ // txtNumbers
+ //
+ this.txtNumbers.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtNumbers.BackColor = System.Drawing.Color.White;
+ this.txtNumbers.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
+ this.txtNumbers.Location = new System.Drawing.Point(11, 39);
+ this.txtNumbers.Margin = new System.Windows.Forms.Padding(4);
+ this.txtNumbers.Multiline = true;
+ this.txtNumbers.Name = "txtNumbers";
+ this.txtNumbers.ReadOnly = true;
+ this.txtNumbers.Size = new System.Drawing.Size(249, 26);
+ this.txtNumbers.TabIndex = 85;
+ this.txtNumbers.Text = "0";
+ this.txtNumbers.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+ //
+ // Button27
+ //
+ this.Button27.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button27.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button27.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button27.ForeColor = System.Drawing.Color.Firebrick;
+ this.Button27.Location = new System.Drawing.Point(159, 71);
+ this.Button27.Name = "Button27";
+ this.Button27.Size = new System.Drawing.Size(49, 28);
+ this.Button27.TabIndex = 84;
+ this.Button27.Text = "CE";
+ this.Button27.UseVisualStyleBackColor = true;
+ this.Button27.Click += new System.EventHandler(this.Button27_Click);
+ //
+ // Button26
+ //
+ this.Button26.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button26.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button26.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button26.ForeColor = System.Drawing.Color.Firebrick;
+ this.Button26.Location = new System.Drawing.Point(210, 71);
+ this.Button26.Name = "Button26";
+ this.Button26.Size = new System.Drawing.Size(49, 28);
+ this.Button26.TabIndex = 83;
+ this.Button26.Text = "C";
+ this.Button26.UseVisualStyleBackColor = true;
+ this.Button26.Click += new System.EventHandler(this.Button26_Click);
+ //
+ // Button1
+ //
+ this.Button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.Button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button1.ForeColor = System.Drawing.Color.Red;
+ this.Button1.Location = new System.Drawing.Point(11, 139);
+ this.Button1.Name = "Button1";
+ this.Button1.Size = new System.Drawing.Size(36, 28);
+ this.Button1.TabIndex = 58;
+ this.Button1.Text = "MR";
+ this.Button1.UseVisualStyleBackColor = true;
+ //
+ // Button25
+ //
+ this.Button25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button25.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button25.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button25.ForeColor = System.Drawing.Color.Firebrick;
+ this.Button25.Location = new System.Drawing.Point(104, 71);
+ this.Button25.Name = "Button25";
+ this.Button25.Size = new System.Drawing.Size(49, 28);
+ this.Button25.TabIndex = 82;
+ this.Button25.Text = "Back";
+ this.Button25.UseVisualStyleBackColor = true;
+ this.Button25.Click += new System.EventHandler(this.Button25_Click);
+ //
+ // Button2
+ //
+ this.Button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.Button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button2.ForeColor = System.Drawing.Color.Red;
+ this.Button2.Location = new System.Drawing.Point(11, 207);
+ this.Button2.Name = "Button2";
+ this.Button2.Size = new System.Drawing.Size(36, 28);
+ this.Button2.TabIndex = 59;
+ this.Button2.Text = "M+";
+ this.Button2.UseVisualStyleBackColor = true;
+ //
+ // Button21
+ //
+ this.Button21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button21.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button21.ForeColor = System.Drawing.Color.Red;
+ this.Button21.Location = new System.Drawing.Point(223, 207);
+ this.Button21.Name = "Button21";
+ this.Button21.Size = new System.Drawing.Size(36, 28);
+ this.Button21.TabIndex = 81;
+ this.Button21.Text = "=";
+ this.Button21.UseVisualStyleBackColor = true;
+ this.Button21.Click += new System.EventHandler(this.Button21_Click);
+ //
+ // Button3
+ //
+ this.Button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.Button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button3.ForeColor = System.Drawing.Color.Red;
+ this.Button3.Location = new System.Drawing.Point(11, 173);
+ this.Button3.Name = "Button3";
+ this.Button3.Size = new System.Drawing.Size(36, 28);
+ this.Button3.TabIndex = 60;
+ this.Button3.Text = "MS";
+ this.Button3.UseVisualStyleBackColor = true;
+ //
+ // Button22
+ //
+ this.Button22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button22.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button22.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button22.ForeColor = System.Drawing.Color.MidnightBlue;
+ this.Button22.Location = new System.Drawing.Point(223, 105);
+ this.Button22.Name = "Button22";
+ this.Button22.Size = new System.Drawing.Size(36, 28);
+ this.Button22.TabIndex = 80;
+ this.Button22.Text = "sqrt";
+ this.Button22.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.Button22.UseVisualStyleBackColor = true;
+ this.Button22.Click += new System.EventHandler(this.arithmitic_click);
+ //
+ // Button4
+ //
+ this.Button4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.Button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button4.ForeColor = System.Drawing.Color.Red;
+ this.Button4.Location = new System.Drawing.Point(11, 105);
+ this.Button4.Name = "Button4";
+ this.Button4.Size = new System.Drawing.Size(36, 28);
+ this.Button4.TabIndex = 61;
+ this.Button4.Text = "MC";
+ this.Button4.UseVisualStyleBackColor = true;
+ //
+ // Button23
+ //
+ this.Button23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button23.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button23.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button23.ForeColor = System.Drawing.Color.MidnightBlue;
+ this.Button23.Location = new System.Drawing.Point(223, 173);
+ this.Button23.Name = "Button23";
+ this.Button23.Size = new System.Drawing.Size(36, 28);
+ this.Button23.TabIndex = 79;
+ this.Button23.Text = "1/x";
+ this.Button23.UseVisualStyleBackColor = true;
+ this.Button23.Click += new System.EventHandler(this.arithmitic_click);
+ //
+ // Button11
+ //
+ this.Button11.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button11.ForeColor = System.Drawing.Color.Blue;
+ this.Button11.Location = new System.Drawing.Point(143, 105);
+ this.Button11.Name = "Button11";
+ this.Button11.Size = new System.Drawing.Size(36, 28);
+ this.Button11.TabIndex = 70;
+ this.Button11.Text = "9";
+ this.Button11.UseVisualStyleBackColor = true;
+ this.Button11.Click += new System.EventHandler(this.number_click);
+ //
+ // Button7
+ //
+ this.Button7.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button7.ForeColor = System.Drawing.Color.Blue;
+ this.Button7.Location = new System.Drawing.Point(63, 139);
+ this.Button7.Name = "Button7";
+ this.Button7.Size = new System.Drawing.Size(36, 28);
+ this.Button7.TabIndex = 62;
+ this.Button7.Text = "4";
+ this.Button7.UseVisualStyleBackColor = true;
+ this.Button7.Click += new System.EventHandler(this.number_click);
+ //
+ // Button16
+ //
+ this.Button16.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button16.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button16.ForeColor = System.Drawing.Color.Blue;
+ this.Button16.Location = new System.Drawing.Point(63, 207);
+ this.Button16.Name = "Button16";
+ this.Button16.Size = new System.Drawing.Size(36, 28);
+ this.Button16.TabIndex = 71;
+ this.Button16.Text = "0";
+ this.Button16.UseVisualStyleBackColor = true;
+ this.Button16.Click += new System.EventHandler(this.number_click);
+ //
+ // Button24
+ //
+ this.Button24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button24.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button24.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button24.ForeColor = System.Drawing.Color.MidnightBlue;
+ this.Button24.Location = new System.Drawing.Point(223, 139);
+ this.Button24.Name = "Button24";
+ this.Button24.Size = new System.Drawing.Size(36, 28);
+ this.Button24.TabIndex = 78;
+ this.Button24.Text = "%";
+ this.Button24.UseVisualStyleBackColor = true;
+ this.Button24.Click += new System.EventHandler(this.arithmitic_click);
+ //
+ // Button12
+ //
+ this.Button12.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button12.ForeColor = System.Drawing.Color.Blue;
+ this.Button12.Location = new System.Drawing.Point(143, 173);
+ this.Button12.Name = "Button12";
+ this.Button12.Size = new System.Drawing.Size(36, 28);
+ this.Button12.TabIndex = 69;
+ this.Button12.Text = "3";
+ this.Button12.UseVisualStyleBackColor = true;
+ this.Button12.Click += new System.EventHandler(this.number_click);
+ //
+ // one
+ //
+ this.one.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.one.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.one.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.one.ForeColor = System.Drawing.Color.Blue;
+ this.one.Location = new System.Drawing.Point(63, 173);
+ this.one.Name = "one";
+ this.one.Size = new System.Drawing.Size(36, 28);
+ this.one.TabIndex = 63;
+ this.one.Text = "1";
+ this.one.UseVisualStyleBackColor = true;
+ this.one.Click += new System.EventHandler(this.number_click);
+ //
+ // Button15
+ //
+ this.Button15.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button15.ForeColor = System.Drawing.Color.Blue;
+ this.Button15.Location = new System.Drawing.Point(103, 207);
+ this.Button15.Name = "Button15";
+ this.Button15.Size = new System.Drawing.Size(36, 28);
+ this.Button15.TabIndex = 72;
+ this.Button15.Text = "+/-";
+ this.Button15.UseVisualStyleBackColor = true;
+ this.Button15.Click += new System.EventHandler(this.Button15_Click);
+ //
+ // Button17
+ //
+ this.Button17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button17.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button17.ForeColor = System.Drawing.Color.Red;
+ this.Button17.Location = new System.Drawing.Point(183, 207);
+ this.Button17.Name = "Button17";
+ this.Button17.Size = new System.Drawing.Size(36, 28);
+ this.Button17.TabIndex = 77;
+ this.Button17.Text = "+";
+ this.Button17.UseVisualStyleBackColor = true;
+ this.Button17.Click += new System.EventHandler(this.arithmitic_click);
+ //
+ // Button13
+ //
+ this.Button13.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button13.ForeColor = System.Drawing.Color.Blue;
+ this.Button13.Location = new System.Drawing.Point(143, 139);
+ this.Button13.Name = "Button13";
+ this.Button13.Size = new System.Drawing.Size(36, 28);
+ this.Button13.TabIndex = 68;
+ this.Button13.Text = "6";
+ this.Button13.UseVisualStyleBackColor = true;
+ this.Button13.Click += new System.EventHandler(this.number_click);
+ //
+ // Button5
+ //
+ this.Button5.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button5.ForeColor = System.Drawing.Color.Blue;
+ this.Button5.Location = new System.Drawing.Point(63, 105);
+ this.Button5.Name = "Button5";
+ this.Button5.Size = new System.Drawing.Size(36, 28);
+ this.Button5.TabIndex = 64;
+ this.Button5.Text = "7";
+ this.Button5.UseVisualStyleBackColor = true;
+ this.Button5.Click += new System.EventHandler(this.number_click);
+ //
+ // Button14
+ //
+ this.Button14.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button14.ForeColor = System.Drawing.Color.Blue;
+ this.Button14.Location = new System.Drawing.Point(143, 207);
+ this.Button14.Name = "Button14";
+ this.Button14.Size = new System.Drawing.Size(36, 28);
+ this.Button14.TabIndex = 73;
+ this.Button14.Text = ".";
+ this.Button14.UseVisualStyleBackColor = true;
+ this.Button14.Click += new System.EventHandler(this.number_click);
+ //
+ // Button18
+ //
+ this.Button18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button18.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button18.ForeColor = System.Drawing.Color.Red;
+ this.Button18.Location = new System.Drawing.Point(183, 105);
+ this.Button18.Name = "Button18";
+ this.Button18.Size = new System.Drawing.Size(36, 28);
+ this.Button18.TabIndex = 76;
+ this.Button18.Text = "/";
+ this.Button18.UseVisualStyleBackColor = true;
+ this.Button18.Click += new System.EventHandler(this.arithmitic_click);
+ //
+ // Button8
+ //
+ this.Button8.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button8.ForeColor = System.Drawing.Color.Blue;
+ this.Button8.Location = new System.Drawing.Point(103, 105);
+ this.Button8.Name = "Button8";
+ this.Button8.Size = new System.Drawing.Size(36, 28);
+ this.Button8.TabIndex = 67;
+ this.Button8.Text = "8";
+ this.Button8.UseVisualStyleBackColor = true;
+ this.Button8.Click += new System.EventHandler(this.number_click);
+ //
+ // Button10
+ //
+ this.Button10.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button10.ForeColor = System.Drawing.Color.Blue;
+ this.Button10.Location = new System.Drawing.Point(103, 139);
+ this.Button10.Name = "Button10";
+ this.Button10.Size = new System.Drawing.Size(36, 28);
+ this.Button10.TabIndex = 65;
+ this.Button10.Text = "5";
+ this.Button10.UseVisualStyleBackColor = true;
+ this.Button10.Click += new System.EventHandler(this.number_click);
+ //
+ // Button20
+ //
+ this.Button20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button20.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button20.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button20.ForeColor = System.Drawing.Color.Red;
+ this.Button20.Location = new System.Drawing.Point(183, 139);
+ this.Button20.Name = "Button20";
+ this.Button20.Size = new System.Drawing.Size(36, 28);
+ this.Button20.TabIndex = 74;
+ this.Button20.Text = "*";
+ this.Button20.UseVisualStyleBackColor = true;
+ this.Button20.Click += new System.EventHandler(this.arithmitic_click);
+ //
+ // Button19
+ //
+ this.Button19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.Button19.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button19.ForeColor = System.Drawing.Color.Red;
+ this.Button19.Location = new System.Drawing.Point(183, 173);
+ this.Button19.Name = "Button19";
+ this.Button19.Size = new System.Drawing.Size(36, 28);
+ this.Button19.TabIndex = 75;
+ this.Button19.Text = "-";
+ this.Button19.UseVisualStyleBackColor = true;
+ this.Button19.Click += new System.EventHandler(this.arithmitic_click);
+ //
+ // Button9
+ //
+ this.Button9.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.Button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.Button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Button9.ForeColor = System.Drawing.Color.Blue;
+ this.Button9.Location = new System.Drawing.Point(103, 173);
+ this.Button9.Name = "Button9";
+ this.Button9.Size = new System.Drawing.Size(36, 28);
+ this.Button9.TabIndex = 66;
+ this.Button9.Text = "2";
+ this.Button9.UseVisualStyleBackColor = true;
+ this.Button9.Click += new System.EventHandler(this.number_click);
+ //
+ // MenuStrip2
+ //
+ this.MenuStrip2.BackColor = System.Drawing.Color.Silver;
+ this.MenuStrip2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.MenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.EditToolStripMenuItem1,
+ this.HelpToolStripMenuItem2,
+ this.HelpToolStripMenuItem3});
+ this.MenuStrip2.Location = new System.Drawing.Point(0, 0);
+ this.MenuStrip2.Name = "MenuStrip2";
+ this.MenuStrip2.Size = new System.Drawing.Size(270, 24);
+ this.MenuStrip2.TabIndex = 86;
+ this.MenuStrip2.Text = "MenuStrip2";
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.BackgroundImage = global::TimeHACK.Properties.Resources.ie4_hsplitter;
+ this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+ this.pictureBox1.Location = new System.Drawing.Point(1, 24);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(268, 2);
+ this.pictureBox1.TabIndex = 87;
+ this.pictureBox1.TabStop = false;
+ //
+ // WinClassicCalculator
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.Silver;
+ this.Controls.Add(this.pictureBox1);
+ this.Controls.Add(this.txtNumbers);
+ this.Controls.Add(this.Button27);
+ this.Controls.Add(this.Button26);
+ this.Controls.Add(this.Button1);
+ this.Controls.Add(this.Button25);
+ this.Controls.Add(this.Button2);
+ this.Controls.Add(this.Button21);
+ this.Controls.Add(this.Button3);
+ this.Controls.Add(this.Button22);
+ this.Controls.Add(this.Button4);
+ this.Controls.Add(this.Button23);
+ this.Controls.Add(this.Button11);
+ this.Controls.Add(this.Button7);
+ this.Controls.Add(this.Button16);
+ this.Controls.Add(this.Button24);
+ this.Controls.Add(this.Button12);
+ this.Controls.Add(this.one);
+ this.Controls.Add(this.Button15);
+ this.Controls.Add(this.Button17);
+ this.Controls.Add(this.Button13);
+ this.Controls.Add(this.Button5);
+ this.Controls.Add(this.Button14);
+ this.Controls.Add(this.Button18);
+ this.Controls.Add(this.Button8);
+ this.Controls.Add(this.Button10);
+ this.Controls.Add(this.Button20);
+ this.Controls.Add(this.Button19);
+ this.Controls.Add(this.Button9);
+ this.Controls.Add(this.MenuStrip2);
+ this.Name = "WinClassicCalculator";
+ this.Size = new System.Drawing.Size(270, 247);
+ this.MenuStrip2.ResumeLayout(false);
+ this.MenuStrip2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Timer timer1;
+ internal System.Windows.Forms.ToolStripMenuItem HelpToolStripMenuItem3;
+ internal System.Windows.Forms.ToolStripMenuItem AboutCalculatorToolStripMenuItem;
+ internal System.Windows.Forms.ToolStripMenuItem StandardToolStripMenuItem;
+ internal System.Windows.Forms.ToolStripMenuItem ScientificToolStripMenuItem;
+ internal System.Windows.Forms.ToolStripMenuItem HelpToolStripMenuItem2;
+ internal System.Windows.Forms.ToolStripMenuItem PasteCtrlVToolStripMenuItem1;
+ internal System.Windows.Forms.ToolStripMenuItem CopyCtrlCToolStripMenuItem1;
+ internal System.Windows.Forms.ToolStripMenuItem EditToolStripMenuItem1;
+ internal System.Windows.Forms.TextBox txtNumbers;
+ internal System.Windows.Forms.Button Button27;
+ internal System.Windows.Forms.Button Button26;
+ internal System.Windows.Forms.Button Button1;
+ internal System.Windows.Forms.Button Button25;
+ internal System.Windows.Forms.Button Button2;
+ internal System.Windows.Forms.Button Button21;
+ internal System.Windows.Forms.Button Button3;
+ internal System.Windows.Forms.Button Button22;
+ internal System.Windows.Forms.Button Button4;
+ internal System.Windows.Forms.Button Button23;
+ internal System.Windows.Forms.Button Button11;
+ internal System.Windows.Forms.Button Button7;
+ internal System.Windows.Forms.Button Button16;
+ internal System.Windows.Forms.Button Button24;
+ internal System.Windows.Forms.Button Button12;
+ internal System.Windows.Forms.Button one;
+ internal System.Windows.Forms.Button Button15;
+ internal System.Windows.Forms.Button Button17;
+ internal System.Windows.Forms.Button Button13;
+ internal System.Windows.Forms.Button Button5;
+ internal System.Windows.Forms.Button Button14;
+ internal System.Windows.Forms.Button Button18;
+ internal System.Windows.Forms.Button Button8;
+ internal System.Windows.Forms.Button Button10;
+ internal System.Windows.Forms.Button Button20;
+ internal System.Windows.Forms.Button Button19;
+ internal System.Windows.Forms.Button Button9;
+ internal System.Windows.Forms.MenuStrip MenuStrip2;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ }
+}
diff --git a/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.cs b/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.cs
new file mode 100644
index 0000000..71ded89
--- /dev/null
+++ b/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.cs
@@ -0,0 +1,175 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using TimeHACK.Engine;
+
+namespace TimeHACK.OS.Win95.Win95Apps
+{
+ public partial class WinClassicCalculator : UserControl
+ {
+ double prevnum = 0;
+ string operation = "";
+ bool operation_pressed = false;
+ public WinClassicCalculator()
+ {
+ InitializeComponent();
+ foreach (Control c in Controls)
+ {
+ if (c is Button)
+ {
+ c.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(0)));
+ c.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2);
+ }
+ else
+ {
+ c.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ }
+ }
+ txtNumbers.Paint += (sender, args) => Paintbrush.PaintClassicBordersIndented(sender, args, 2);
+ }
+ private void number_click(object sender, EventArgs e)
+ {
+ if (txtNumbers.Text.Contains("∞"))
+ txtNumbers.Clear();
+ if ((txtNumbers.Text == "0") || (operation_pressed))
+ txtNumbers.Text = "";
+ operation_pressed = false;
+ Button num = (Button)sender;
+ if (num.Text == ".")
+ {
+ if (!txtNumbers.Text.Contains("."))
+ txtNumbers.Text = txtNumbers.Text + num.Text;
+ }
+ else
+ txtNumbers.Text = txtNumbers.Text + num.Text;
+ }
+
+ private void Button27_Click(object sender, EventArgs e)
+ {
+ txtNumbers.Text = "0";
+ }
+
+ private void Button26_Click(object sender, EventArgs e)
+ {
+ prevnum = 0;
+ operation = "";
+ operation_pressed = false;
+ txtNumbers.Text = "0";
+ }
+
+ private void Button25_Click(object sender, EventArgs e)
+ {
+ if (txtNumbers.Text.Length>0)
+ {
+ txtNumbers.Text = txtNumbers.Text.Remove(txtNumbers.Text.Length - 1, 1);
+ }
+ if (txtNumbers.Text =="")
+ {
+ txtNumbers.Text = "0";
+ }
+ }
+
+ private void arithmitic_click(object sender, EventArgs e)
+ {
+ Button num = (Button)sender;
+ if (txtNumbers.Text.Contains("∞"))
+ txtNumbers.Clear();
+ if (prevnum != 0)
+ {
+ if (num.Text == "sqrt")
+ prevnum = Math.Sqrt(double.Parse(txtNumbers.Text));
+ if (num.Text == "1/x")
+ prevnum = Convert.ToDouble(1.0 / Convert.ToDouble(txtNumbers.Text));
+ if (num.Text == "%")
+ prevnum = Convert.ToDouble(txtNumbers.Text) / 100;
+ Button21.PerformClick();
+ operation = num.Text;
+ operation_pressed = true;
+ }
+ else if (num.Text == "sqrt")
+ {
+ prevnum = Math.Sqrt(double.Parse(txtNumbers.Text));
+ txtNumbers.Text = prevnum.ToString();
+ }
+ else if (num.Text == "1/x")
+ {
+ prevnum = Convert.ToDouble(1.0 / Convert.ToDouble(txtNumbers.Text));
+ txtNumbers.Text = prevnum.ToString();
+ }
+ else if (num.Text == "%")
+ {
+ prevnum = Convert.ToDouble(txtNumbers.Text) / 100;
+ txtNumbers.Text = prevnum.ToString();
+ }
+ else
+ {
+ operation = num.Text;
+ prevnum = double.Parse(txtNumbers.Text);
+ txtNumbers.Text = "0";
+ operation_pressed = true;
+ }
+ }
+
+ private void Button21_Click(object sender, EventArgs e)
+ {
+ if (txtNumbers.Text.Contains("∞"))
+ txtNumbers.Clear();
+ switch (operation)
+ {
+ case "+":
+ txtNumbers.Text = (prevnum + double.Parse(txtNumbers.Text)).ToString();
+ break;
+ case "-":
+ txtNumbers.Text = (prevnum - double.Parse(txtNumbers.Text)).ToString();
+ break;
+ case "*":
+ txtNumbers.Text = (prevnum * double.Parse(txtNumbers.Text)).ToString();
+ break;
+ case "/":
+ txtNumbers.Text = (prevnum / double.Parse(txtNumbers.Text)).ToString();
+ break;
+ }
+ prevnum = Int32.Parse(txtNumbers.Text);
+ operation = "";
+ }
+
+ private void AboutCalculatorToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WindowManager wm = new WindowManager();
+ wm.StartAboutBox95("Calculator", "Microsoft Calculator", Properties.Resources.WinClassicCalc);
+ }
+
+ private void Button15_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void CopyCtrlCToolStripMenuItem1_Click(object sender, EventArgs e)
+ {
+ txtNumbers.Copy();
+ }
+
+ private void PasteCtrlVToolStripMenuItem1_Click(object sender, EventArgs e)
+ {
+ string pasteText = Clipboard.GetText();
+ string strippedText = "";
+ for (int i = 0; i < pasteText.Length; i++)
+ {
+ if (char.IsDigit(pasteText[i]))
+ strippedText += pasteText[i].ToString();
+ MessageBox.Show("Test");
+ }
+ if (strippedText!=pasteText)
+ {
+ txtNumbers.Text = pasteText;
+ }
+ }
+
+ }
+}
diff --git a/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.resx b/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.resx
new file mode 100644
index 0000000..d7509b3
--- /dev/null
+++ b/TimeHACK.Main/GlobalPrograms/WinClassicCalculator.resx
@@ -0,0 +1,126 @@
+<?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>
+ <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>219, 17</value>
+ </metadata>
+ <metadata name="MenuStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>306, 17</value>
+ </metadata>
+</root> \ No newline at end of file
diff --git a/TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs b/TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs
index 581b789..8e3726d 100644
--- a/TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs
+++ b/TimeHACK.Main/GlobalPrograms/WinClassicNotepad.cs
@@ -56,18 +56,12 @@ namespace TimeHACK.OS.Win95.Win95Apps
private void cutToolStripMenuItem_Click(object sender, EventArgs e)
{
- if (mainText.SelectedText.Length >= 0)
- {
- mainText.Cut();
- }
+ if (mainText.SelectedText.Length >= 0) mainText.Cut();
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
- if (mainText.SelectedText.Length >= 0)
- {
- mainText.Copy();
- }
+ if (mainText.SelectedText.Length >= 0) mainText.Copy();
}
private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
@@ -116,7 +110,6 @@ namespace TimeHACK.OS.Win95.Win95Apps
if (selectedPath != "")
{
SaveSystem.CreateWindowsFile(pathList.ToString(), selectedPath.Split('\\').Last(), mainText.Text, 12, mainText.Text.Length);
- //File.WriteAllText(selectedPath, mainText.Text);
}
} catch {
}