Reimplemented the window manager

This commit is contained in:
Andrew Lee 2018-05-17 14:18:26 -04:00
parent 780a695ac9
commit 5439c15a8e
3 changed files with 18 additions and 33 deletions

View file

@ -44,7 +44,7 @@
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="WindowManager\WM.cs">
<SubType>Form</SubType>
<SubType>UserControl</SubType>
</Compile>
<Compile Include="WindowManager\WM.Designer.cs">
<DependentUpon>WM.cs</DependentUpon>

View file

@ -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;
}
}
}

View file

@ -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()
{