aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine
diff options
context:
space:
mode:
authorFloppyDiskDrive <[email protected]>2017-11-05 14:13:06 -0600
committerFloppyDiskDrive <[email protected]>2017-11-05 14:13:06 -0600
commit019da5b9ebf67b758a31dd05c4b17de66fa682f2 (patch)
tree9d2341a1e9ab8fe1216800265d70a18f5e7ac762 /ShiftOS.Engine
parent70ccdd214ed90d7d3ec3b5c1f9d0e4414fbe4987 (diff)
downloadshiftos-rewind-019da5b9ebf67b758a31dd05c4b17de66fa682f2.tar.gz
shiftos-rewind-019da5b9ebf67b758a31dd05c4b17de66fa682f2.tar.bz2
shiftos-rewind-019da5b9ebf67b758a31dd05c4b17de66fa682f2.zip
Began to add textpad, extra functionality to the infobox template
Diffstat (limited to 'ShiftOS.Engine')
-rw-r--r--ShiftOS.Engine/WindowManager/InfoboxTemplate.Designer.cs13
-rw-r--r--ShiftOS.Engine/WindowManager/InfoboxTemplate.cs15
2 files changed, 15 insertions, 13 deletions
diff --git a/ShiftOS.Engine/WindowManager/InfoboxTemplate.Designer.cs b/ShiftOS.Engine/WindowManager/InfoboxTemplate.Designer.cs
index a076c2a..58c191e 100644
--- a/ShiftOS.Engine/WindowManager/InfoboxTemplate.Designer.cs
+++ b/ShiftOS.Engine/WindowManager/InfoboxTemplate.Designer.cs
@@ -43,9 +43,9 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.btnOpt1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpt1.Font = new System.Drawing.Font("Lucida Console", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnOpt1.Location = new System.Drawing.Point(65, 134);
+ this.btnOpt1.Location = new System.Drawing.Point(73, 170);
this.btnOpt1.Name = "btnOpt1";
- this.btnOpt1.Size = new System.Drawing.Size(75, 23);
+ this.btnOpt1.Size = new System.Drawing.Size(117, 23);
this.btnOpt1.TabIndex = 0;
this.btnOpt1.Text = "button1";
this.btnOpt1.UseVisualStyleBackColor = true;
@@ -57,9 +57,9 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.btnOpt2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpt2.Font = new System.Drawing.Font("Lucida Console", 9F);
- this.btnOpt2.Location = new System.Drawing.Point(188, 134);
+ this.btnOpt2.Location = new System.Drawing.Point(243, 170);
this.btnOpt2.Name = "btnOpt2";
- this.btnOpt2.Size = new System.Drawing.Size(75, 23);
+ this.btnOpt2.Size = new System.Drawing.Size(117, 23);
this.btnOpt2.TabIndex = 1;
this.btnOpt2.Text = "button2";
this.btnOpt2.UseVisualStyleBackColor = true;
@@ -80,13 +80,12 @@
// changeSize
//
this.changeSize.Interval = 1;
- this.changeSize.Tick += new System.EventHandler(this.changeSize_Tick);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Lucida Console", 9.25F);
- this.label1.Location = new System.Drawing.Point(105, 55);
+ this.label1.Location = new System.Drawing.Point(107, 48);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(55, 13);
this.label1.TabIndex = 3;
@@ -101,7 +100,7 @@
this.Controls.Add(this.btnOpt2);
this.Controls.Add(this.btnOpt1);
this.Name = "InfoboxTemplate";
- this.Size = new System.Drawing.Size(346, 174);
+ this.Size = new System.Drawing.Size(438, 210);
this.Load += new System.EventHandler(this.InfoboxTemplate_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
diff --git a/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs b/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
index a5be129..948df22 100644
--- a/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
+++ b/ShiftOS.Engine/WindowManager/InfoboxTemplate.cs
@@ -43,12 +43,19 @@ namespace ShiftOS.Engine.WindowManager
Ok
}
+ public enum DialogResult
+ {
+ Yes,
+ No,
+ Cancel,
+ Ok
+ }
+
private void btnOpt1_Click(object sender, EventArgs e)
{
switch (btnOpt1.Text)
{
case "OK":
- _buttonSelected = 1;
ParentForm?.Close();
break;
case "Yes":
@@ -82,10 +89,6 @@ namespace ShiftOS.Engine.WindowManager
private void InfoboxTemplate_Load(object sender, EventArgs e)
=> Play();
- private void changeSize_Tick(object sender, EventArgs e)
- {
- this.Height += label1.Height;
- this.Width += label1.Width;
- }
+
}
}