aboutsummaryrefslogtreecommitdiff
path: root/PortEngine/WindowManager
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2018-05-17 14:18:26 -0400
committerAlee14 <Alee14498@gmail.com>2018-05-17 14:18:26 -0400
commit5439c15a8ead80183297ba8c65a9a61e84cd7f44 (patch)
tree1d3aefacc627cd25d13c1aa735cdee32e5f95cd1 /PortEngine/WindowManager
parent780a695ac9c523a39297c6523f5788959c9f1b25 (diff)
downloadProject-Silicon-5439c15a8ead80183297ba8c65a9a61e84cd7f44.tar.gz
Project-Silicon-5439c15a8ead80183297ba8c65a9a61e84cd7f44.tar.bz2
Project-Silicon-5439c15a8ead80183297ba8c65a9a61e84cd7f44.zip
Reimplemented the window manager
Diffstat (limited to 'PortEngine/WindowManager')
-rw-r--r--PortEngine/WindowManager/WM.Designer.cs45
-rw-r--r--PortEngine/WindowManager/WM.cs4
2 files changed, 17 insertions, 32 deletions
diff --git a/PortEngine/WindowManager/WM.Designer.cs b/PortEngine/WindowManager/WM.Designer.cs
index 5737799..3e6ef63 100644
--- a/PortEngine/WindowManager/WM.Designer.cs
+++ b/PortEngine/WindowManager/WM.Designer.cs
@@ -2,12 +2,12 @@
{
partial class WM
{
- /// <summary>
+ /// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
- /// <summary>
+ /// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
@@ -20,58 +20,44 @@
base.Dispose(disposing);
}
- #region Windows Form Designer generated code
+ #region Component Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
+ /// <summary>
+ /// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
- this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
- this.panel1.SuspendLayout();
- this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
- this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- this.panel1.Controls.Add(this.panel3);
+ this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.panel1.BackColor = System.Drawing.Color.DimGray;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(343, 32);
+ this.panel1.Size = new System.Drawing.Size(372, 36);
this.panel1.TabIndex = 0;
//
- // panel3
- //
- this.panel3.Location = new System.Drawing.Point(0, 29);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(10, 319);
- this.panel3.TabIndex = 2;
- //
// panel2
//
- this.panel2.Controls.Add(this.panel1);
- this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel2.Location = new System.Drawing.Point(0, 0);
+ this.panel2.BackColor = System.Drawing.Color.White;
+ this.panel2.Location = new System.Drawing.Point(0, 35);
this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(343, 283);
+ this.panel2.Size = new System.Drawing.Size(372, 267);
this.panel2.TabIndex = 1;
//
// WM
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.BackColor = System.Drawing.Color.White;
- this.ClientSize = new System.Drawing.Size(343, 283);
this.Controls.Add(this.panel2);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.Controls.Add(this.panel1);
this.Name = "WM";
- this.Text = "WM";
- this.panel1.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
+ this.Size = new System.Drawing.Size(372, 302);
this.ResumeLayout(false);
}
@@ -79,7 +65,6 @@
#endregion
private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel2;
}
-} \ No newline at end of file
+}
diff --git a/PortEngine/WindowManager/WM.cs b/PortEngine/WindowManager/WM.cs
index 5f7f23c..babc0c9 100644
--- a/PortEngine/WindowManager/WM.cs
+++ b/PortEngine/WindowManager/WM.cs
@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
-using System.Data;
using System.Drawing;
+using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace PortEngine.WindowManager
{
- public partial class WM : Form
+ public partial class WM : UserControl
{
public WM()
{