Added basic window functionality(switching panels)
- used visibility true/false - to do: research more effective method when encountering performance issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,14 +46,29 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<Compile Include="ConClientData.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ConSessionHistory.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ConActiveSessions.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ConSessionLibrary.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainWindow.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
<Compile Include="MainWindow.Designer.cs">
|
||||
<DependentUpon>MainWindow.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="MainWindow.resx">
|
||||
<DependentUpon>MainWindow.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
|
||||
-39
@@ -1,39 +0,0 @@
|
||||
namespace ErgometerDoctorApplication
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <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 Windows Form 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.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Text = "Form1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
+301
@@ -0,0 +1,301 @@
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ErgometerDoctorApplication
|
||||
{
|
||||
partial class MainWindow
|
||||
{
|
||||
/// <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 Windows Form 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.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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>25</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -16,7 +16,7 @@ namespace ErgometerDoctorApplication
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
Application.Run(new MainWindow());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user