From 0877f3e607b78bbeacf87a482d290c74c126da7c Mon Sep 17 00:00:00 2001 From: Jannick van Ballegooijen Date: Fri, 2 Oct 2015 15:09:23 +0200 Subject: [PATCH] Added basic window functionality(switching panels) - used visibility true/false - to do: research more effective method when encountering performance issues --- .../ConActiveSessions.cs | 26 ++ ErgometerDoctorApplication/ConClientData.cs | 26 ++ .../ConSessionHistory.cs | 26 ++ .../ConSessionLibrary.cs | 26 ++ .../ErgometerDoctorApplication.csproj | 21 +- ErgometerDoctorApplication/Form1.Designer.cs | 39 --- ErgometerDoctorApplication/Form1.cs | 20 -- .../MainWindow.Designer.cs | 301 ++++++++++++++++++ ErgometerDoctorApplication/MainWindow.cs | 56 ++++ ErgometerDoctorApplication/MainWindow.resx | 126 ++++++++ ErgometerDoctorApplication/Program.cs | 2 +- 11 files changed, 606 insertions(+), 63 deletions(-) create mode 100644 ErgometerDoctorApplication/ConActiveSessions.cs create mode 100644 ErgometerDoctorApplication/ConClientData.cs create mode 100644 ErgometerDoctorApplication/ConSessionHistory.cs create mode 100644 ErgometerDoctorApplication/ConSessionLibrary.cs delete mode 100644 ErgometerDoctorApplication/Form1.Designer.cs delete mode 100644 ErgometerDoctorApplication/Form1.cs create mode 100644 ErgometerDoctorApplication/MainWindow.Designer.cs create mode 100644 ErgometerDoctorApplication/MainWindow.cs create mode 100644 ErgometerDoctorApplication/MainWindow.resx diff --git a/ErgometerDoctorApplication/ConActiveSessions.cs b/ErgometerDoctorApplication/ConActiveSessions.cs new file mode 100644 index 0000000..c5b7390 --- /dev/null +++ b/ErgometerDoctorApplication/ConActiveSessions.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ErgometerDoctorApplication +{ + public class ConActiveSessions : Panel + { + public ConActiveSessions() : base() + { + // + // ConActiveSessions + // + this.Dock = System.Windows.Forms.DockStyle.Fill; + this.Location = new System.Drawing.Point(0, 0); + this.Name = "ConActiveSessions"; + this.Size = new System.Drawing.Size(584, 459); + this.TabIndex = 0; + + this.BackColor = System.Drawing.Color.Green; + } + } +} diff --git a/ErgometerDoctorApplication/ConClientData.cs b/ErgometerDoctorApplication/ConClientData.cs new file mode 100644 index 0000000..35d5ed2 --- /dev/null +++ b/ErgometerDoctorApplication/ConClientData.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ErgometerDoctorApplication +{ + public class ConClientData : Panel + { + public ConClientData() : base() + { + // + // ConClientData + // + this.Dock = System.Windows.Forms.DockStyle.Fill; + this.Location = new System.Drawing.Point(0, 0); + this.Name = "ConClientData"; + this.Size = new System.Drawing.Size(584, 459); + this.TabIndex = 0; + + this.BackColor = System.Drawing.Color.Red; + } + } +} diff --git a/ErgometerDoctorApplication/ConSessionHistory.cs b/ErgometerDoctorApplication/ConSessionHistory.cs new file mode 100644 index 0000000..590f17a --- /dev/null +++ b/ErgometerDoctorApplication/ConSessionHistory.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ErgometerDoctorApplication +{ + public class ConSessionHistory : Panel + { + public ConSessionHistory() : base() + { + // + // ConSessionLibrary + // + this.Dock = System.Windows.Forms.DockStyle.Fill; + this.Location = new System.Drawing.Point(0, 0); + this.Name = "ConSessionHistory"; + this.Size = new System.Drawing.Size(584, 459); + this.TabIndex = 0; + + this.BackColor = System.Drawing.Color.Yellow; + } + } +} diff --git a/ErgometerDoctorApplication/ConSessionLibrary.cs b/ErgometerDoctorApplication/ConSessionLibrary.cs new file mode 100644 index 0000000..ca6e921 --- /dev/null +++ b/ErgometerDoctorApplication/ConSessionLibrary.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ErgometerDoctorApplication +{ + public class ConSessionLibrary : Panel + { + public ConSessionLibrary() : base() + { + // + // ConSessionLibrary + // + this.Dock = System.Windows.Forms.DockStyle.Fill; + this.Location = new System.Drawing.Point(0, 0); + this.Name = "ConSessionLibrary"; + this.Size = new System.Drawing.Size(584, 459); + this.TabIndex = 0; + + this.BackColor = System.Drawing.Color.Blue; + } + } +} diff --git a/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj b/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj index 4c429ed..38b5afc 100644 --- a/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj +++ b/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj @@ -46,14 +46,29 @@ - + + Component + + + Component + + + Component + + + Component + + Form - - Form1.cs + + MainWindow.cs + + MainWindow.cs + ResXFileCodeGenerator Resources.Designer.cs diff --git a/ErgometerDoctorApplication/Form1.Designer.cs b/ErgometerDoctorApplication/Form1.Designer.cs deleted file mode 100644 index d01d595..0000000 --- a/ErgometerDoctorApplication/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace ErgometerDoctorApplication -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Text = "Form1"; - } - - #endregion - } -} - diff --git a/ErgometerDoctorApplication/Form1.cs b/ErgometerDoctorApplication/Form1.cs deleted file mode 100644 index 7f1da91..0000000 --- a/ErgometerDoctorApplication/Form1.cs +++ /dev/null @@ -1,20 +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 ErgometerDoctorApplication -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} diff --git a/ErgometerDoctorApplication/MainWindow.Designer.cs b/ErgometerDoctorApplication/MainWindow.Designer.cs new file mode 100644 index 0000000..fc2de43 --- /dev/null +++ b/ErgometerDoctorApplication/MainWindow.Designer.cs @@ -0,0 +1,301 @@ +using System.Windows.Forms; + +namespace ErgometerDoctorApplication +{ + partial class MainWindow + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.MenuPanel = new System.Windows.Forms.Panel(); + this.BtnSessionLibrary = new System.Windows.Forms.Button(); + this.BtnSessionHistory = new System.Windows.Forms.Button(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.BtnClientData = new System.Windows.Forms.Button(); + this.BtnActiveSessions = new System.Windows.Forms.Button(); + this.LblHoofdvenster = new System.Windows.Forms.Label(); + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.panel1 = new System.Windows.Forms.Panel(); + this.HeaderLabel = new System.Windows.Forms.Label(); + this.panel3 = new System.Windows.Forms.Panel(); + this.MainContainer = new System.Windows.Forms.Panel(); + this.conActiveSessions = new ConActiveSessions(); + this.conSessionHistory = new ConSessionHistory(); + this.conClientData = new ConClientData(); + this.conSessionLibrary = new ConSessionLibrary(); + this.MenuPanel.SuspendLayout(); + this.menuStrip1.SuspendLayout(); + this.panel1.SuspendLayout(); + this.MainContainer.SuspendLayout(); + this.SuspendLayout(); + // + // MenuPanel + // + this.MenuPanel.BackColor = System.Drawing.SystemColors.ControlLight; + this.MenuPanel.Controls.Add(this.BtnSessionLibrary); + this.MenuPanel.Controls.Add(this.BtnSessionHistory); + this.MenuPanel.Controls.Add(this.label2); + this.MenuPanel.Controls.Add(this.label1); + this.MenuPanel.Controls.Add(this.BtnClientData); + this.MenuPanel.Controls.Add(this.BtnActiveSessions); + this.MenuPanel.Controls.Add(this.LblHoofdvenster); + this.MenuPanel.Dock = System.Windows.Forms.DockStyle.Left; + this.MenuPanel.Location = new System.Drawing.Point(0, 24); + this.MenuPanel.Margin = new System.Windows.Forms.Padding(0); + this.MenuPanel.Name = "MenuPanel"; + this.MenuPanel.Size = new System.Drawing.Size(200, 537); + this.MenuPanel.TabIndex = 0; + // + // BtnSessionLibrary + // + this.BtnSessionLibrary.BackColor = System.Drawing.Color.DarkGray; + this.BtnSessionLibrary.Dock = System.Windows.Forms.DockStyle.Top; + this.BtnSessionLibrary.FlatAppearance.BorderSize = 0; + this.BtnSessionLibrary.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.BtnSessionLibrary.ForeColor = System.Drawing.Color.White; + this.BtnSessionLibrary.Location = new System.Drawing.Point(0, 205); + this.BtnSessionLibrary.Name = "BtnSessionLibrary"; + this.BtnSessionLibrary.Size = new System.Drawing.Size(200, 35); + this.BtnSessionLibrary.TabIndex = 8; + this.BtnSessionLibrary.Text = "Sessie Bibliotheek"; + this.BtnSessionLibrary.UseVisualStyleBackColor = false; + this.BtnSessionLibrary.Click += new System.EventHandler(this.BtnSessionLibrary_Click); + // + // BtnSessionHistory + // + this.BtnSessionHistory.BackColor = System.Drawing.Color.DarkGray; + this.BtnSessionHistory.Dock = System.Windows.Forms.DockStyle.Top; + this.BtnSessionHistory.FlatAppearance.BorderSize = 0; + this.BtnSessionHistory.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.BtnSessionHistory.ForeColor = System.Drawing.Color.White; + this.BtnSessionHistory.Location = new System.Drawing.Point(0, 170); + this.BtnSessionHistory.Name = "BtnSessionHistory"; + this.BtnSessionHistory.Size = new System.Drawing.Size(200, 35); + this.BtnSessionHistory.TabIndex = 7; + this.BtnSessionHistory.Text = "Sessie Geschiedenis"; + this.BtnSessionHistory.UseVisualStyleBackColor = false; + this.BtnSessionHistory.Click += new System.EventHandler(this.BtnSessionHistory_Click); + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Top; + this.label2.Location = new System.Drawing.Point(0, 145); + this.label2.Margin = new System.Windows.Forms.Padding(6, 3, 6, 3); + this.label2.Name = "label2"; + this.label2.Padding = new System.Windows.Forms.Padding(5, 4, 0, 0); + this.label2.Size = new System.Drawing.Size(200, 25); + this.label2.TabIndex = 6; + this.label2.Text = "SESSIE BEHEER"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Top; + this.label1.Location = new System.Drawing.Point(0, 95); + this.label1.Margin = new System.Windows.Forms.Padding(6, 3, 6, 3); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(200, 50); + this.label1.TabIndex = 5; + // + // BtnClientData + // + this.BtnClientData.BackColor = System.Drawing.Color.DarkGray; + this.BtnClientData.Dock = System.Windows.Forms.DockStyle.Top; + this.BtnClientData.FlatAppearance.BorderSize = 0; + this.BtnClientData.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.BtnClientData.ForeColor = System.Drawing.Color.White; + this.BtnClientData.Location = new System.Drawing.Point(0, 60); + this.BtnClientData.Name = "BtnClientData"; + this.BtnClientData.Size = new System.Drawing.Size(200, 35); + this.BtnClientData.TabIndex = 4; + this.BtnClientData.Text = "Clientenbestand"; + this.BtnClientData.UseVisualStyleBackColor = false; + this.BtnClientData.Click += new System.EventHandler(this.BtnClientData_Click); + // + // BtnActiveSessions + // + this.BtnActiveSessions.BackColor = System.Drawing.Color.DarkGray; + this.BtnActiveSessions.Dock = System.Windows.Forms.DockStyle.Top; + this.BtnActiveSessions.FlatAppearance.BorderSize = 0; + this.BtnActiveSessions.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.BtnActiveSessions.ForeColor = System.Drawing.Color.White; + this.BtnActiveSessions.Location = new System.Drawing.Point(0, 25); + this.BtnActiveSessions.Name = "BtnActiveSessions"; + this.BtnActiveSessions.Size = new System.Drawing.Size(200, 35); + this.BtnActiveSessions.TabIndex = 3; + this.BtnActiveSessions.Text = "Actieve Sessies"; + this.BtnActiveSessions.UseVisualStyleBackColor = false; + this.BtnActiveSessions.Click += new System.EventHandler(this.BtnActiveSessions_Click); + // + // LblHoofdvenster + // + this.LblHoofdvenster.Dock = System.Windows.Forms.DockStyle.Top; + this.LblHoofdvenster.Location = new System.Drawing.Point(0, 0); + this.LblHoofdvenster.Margin = new System.Windows.Forms.Padding(6, 3, 6, 3); + this.LblHoofdvenster.Name = "LblHoofdvenster"; + this.LblHoofdvenster.Padding = new System.Windows.Forms.Padding(5, 4, 0, 0); + this.LblHoofdvenster.Size = new System.Drawing.Size(200, 25); + this.LblHoofdvenster.TabIndex = 0; + this.LblHoofdvenster.Text = "HOOFDVENSTER"; + this.LblHoofdvenster.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // menuStrip1 + // + this.menuStrip1.BackColor = System.Drawing.Color.DimGray; + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem, + this.editToolStripMenuItem, + this.viewToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(784, 24); + this.menuStrip1.TabIndex = 1; + this.menuStrip1.Text = "menuStrip1"; + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White; + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem.Text = "File"; + // + // editToolStripMenuItem + // + this.editToolStripMenuItem.ForeColor = System.Drawing.Color.White; + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); + this.editToolStripMenuItem.Text = "Edit"; + // + // viewToolStripMenuItem + // + this.viewToolStripMenuItem.ForeColor = System.Drawing.Color.White; + this.viewToolStripMenuItem.Name = "viewToolStripMenuItem"; + this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.viewToolStripMenuItem.Text = "View"; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.HeaderLabel); + this.panel1.Controls.Add(this.panel3); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(200, 24); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(584, 78); + this.panel1.TabIndex = 2; + // + // HeaderLabel + // + this.HeaderLabel.Dock = System.Windows.Forms.DockStyle.Top; + this.HeaderLabel.Font = new System.Drawing.Font("Segoe UI Semibold", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.HeaderLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.HeaderLabel.Location = new System.Drawing.Point(0, 0); + this.HeaderLabel.Name = "HeaderLabel"; + this.HeaderLabel.Padding = new System.Windows.Forms.Padding(8, 12, 0, 0); + this.HeaderLabel.Size = new System.Drawing.Size(584, 50); + this.HeaderLabel.TabIndex = 1; + this.HeaderLabel.Text = "Actieve Sessies"; + // + // panel3 + // + this.panel3.BackColor = System.Drawing.Color.Silver; + this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom; + this.panel3.ForeColor = System.Drawing.Color.Black; + this.panel3.Location = new System.Drawing.Point(0, 74); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(584, 4); + this.panel3.TabIndex = 0; + // + // MainContainer + // + + // First panel added gets priority + this.MainContainer.Controls.Add(this.conActiveSessions); + this.MainContainer.Controls.Add(this.conClientData); + this.MainContainer.Controls.Add(this.conSessionHistory); + this.MainContainer.Controls.Add(this.conSessionLibrary); + + + + this.MainContainer.Dock = System.Windows.Forms.DockStyle.Fill; + this.MainContainer.Location = new System.Drawing.Point(200, 102); + this.MainContainer.Name = "MainContainer"; + this.MainContainer.Size = new System.Drawing.Size(584, 459); + this.MainContainer.TabIndex = 3; + // + // MainWindow + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(784, 561); + this.Controls.Add(this.MainContainer); + this.Controls.Add(this.panel1); + this.Controls.Add(this.MenuPanel); + this.Controls.Add(this.menuStrip1); + this.MainMenuStrip = this.menuStrip1; + this.Name = "MainWindow"; + this.Text = "Dokter applicatie"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.MenuPanel.ResumeLayout(false); + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.panel1.ResumeLayout(false); + this.MainContainer.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + + #endregion + + private Panel MenuPanel; + private Label LblHoofdvenster; + private MenuStrip menuStrip1; + private ToolStripMenuItem fileToolStripMenuItem; + private ToolStripMenuItem editToolStripMenuItem; + private ToolStripMenuItem viewToolStripMenuItem; + private Button BtnActiveSessions; + private Button BtnSessionLibrary; + private Button BtnSessionHistory; + private Button BtnClientData; + private Label label2; + private Label label1; + private Panel panel1; + private Panel panel3; + public Label HeaderLabel; + public Panel MainContainer; + public ConActiveSessions conActiveSessions; + public ConSessionHistory conSessionHistory; + public ConClientData conClientData; + public ConSessionLibrary conSessionLibrary; + } +} + diff --git a/ErgometerDoctorApplication/MainWindow.cs b/ErgometerDoctorApplication/MainWindow.cs new file mode 100644 index 0000000..54db5f6 --- /dev/null +++ b/ErgometerDoctorApplication/MainWindow.cs @@ -0,0 +1,56 @@ +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 ErgometerDoctorApplication +{ + public partial class MainWindow : Form + { + public MainWindow() + { + InitializeComponent(); + } + + private void BtnActiveSessions_Click(object sender, EventArgs e) + { + this.HeaderLabel.Text = "Actieve Sessies"; + conActiveSessions.Visible = true; + conClientData.Visible = false; + conSessionHistory.Visible = false; + conSessionLibrary.Visible = false; + } + + private void BtnSessionLibrary_Click(object sender, EventArgs e) + { + this.HeaderLabel.Text = "Bibliotheek"; + conActiveSessions.Visible = false; + conClientData.Visible = false; + conSessionHistory.Visible = false; + conSessionLibrary.Visible = true; + } + + private void BtnClientData_Click(object sender, EventArgs e) + { + this.HeaderLabel.Text = "Clientenbestand"; + conActiveSessions.Visible = false; + conClientData.Visible = true; + conSessionHistory.Visible = false; + conSessionLibrary.Visible = false; + } + + private void BtnSessionHistory_Click(object sender, EventArgs e) + { + this.HeaderLabel.Text = "Sessie geschiedenis"; + conActiveSessions.Visible = false; + conClientData.Visible = false; + conSessionHistory.Visible = true; + conSessionLibrary.Visible = false; + } + } +} diff --git a/ErgometerDoctorApplication/MainWindow.resx b/ErgometerDoctorApplication/MainWindow.resx new file mode 100644 index 0000000..32fcbfb --- /dev/null +++ b/ErgometerDoctorApplication/MainWindow.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 25 + + \ No newline at end of file diff --git a/ErgometerDoctorApplication/Program.cs b/ErgometerDoctorApplication/Program.cs index 0e6f4fb..c469659 100644 --- a/ErgometerDoctorApplication/Program.cs +++ b/ErgometerDoctorApplication/Program.cs @@ -16,7 +16,7 @@ namespace ErgometerDoctorApplication { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); + Application.Run(new MainWindow()); } } }