diff --git a/ErgometerDoctorApplication/ConActiveSessions.cs b/ErgometerDoctorApplication/ConActiveSessions.cs index c5b7390..254f483 100644 --- a/ErgometerDoctorApplication/ConActiveSessions.cs +++ b/ErgometerDoctorApplication/ConActiveSessions.cs @@ -9,6 +9,7 @@ namespace ErgometerDoctorApplication { public class ConActiveSessions : Panel { + public ConActiveSessions() : base() { // @@ -20,7 +21,6 @@ namespace ErgometerDoctorApplication this.Size = new System.Drawing.Size(584, 459); this.TabIndex = 0; - this.BackColor = System.Drawing.Color.Green; } } } diff --git a/ErgometerDoctorApplication/ConPanelLogin.cs b/ErgometerDoctorApplication/ConPanelLogin.cs new file mode 100644 index 0000000..cac3072 --- /dev/null +++ b/ErgometerDoctorApplication/ConPanelLogin.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ErgometerDoctorApplication +{ + public class ConPanelLogin:Panel + { + + MainWindow mainWindow; + + public ConPanelLogin(Form mainWindow) : base() + { + this.mainWindow = (MainWindow)mainWindow; + this.textBoxPassword = new System.Windows.Forms.TextBox(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.buttonLogin = new System.Windows.Forms.Button(); + this.labelPassword = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + // + // Container + // + this.BackColor = System.Drawing.Color.White; + this.Controls.Add(this.labelPassword); + this.Controls.Add(this.buttonLogin); + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.textBoxPassword); + this.Dock = System.Windows.Forms.DockStyle.Fill; + this.Location = new System.Drawing.Point(0, 0); + // + // textBoxPassword + // + this.textBoxPassword.Anchor = System.Windows.Forms.AnchorStyles.None; + this.textBoxPassword.Location = new System.Drawing.Point(15, 70); + this.textBoxPassword.Name = "textBoxPassword"; + this.textBoxPassword.Size = new System.Drawing.Size(150, 20); + this.textBoxPassword.TabIndex = 0; + // + // pictureBox1 + // + this.pictureBox1.Image = ((System.Drawing.Image)Properties.Resources.imageDoctor); + this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.None; + this.pictureBox1.Location = new System.Drawing.Point(0, -150); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(175, 175); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + + // + // buttonLogin + // + this.buttonLogin.Anchor = System.Windows.Forms.AnchorStyles.None; + this.buttonLogin.BackColor = System.Drawing.SystemColors.Highlight; + this.buttonLogin.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonLogin.Font = new System.Drawing.Font("Segoe UI Semibold", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonLogin.ForeColor = System.Drawing.Color.White; + this.buttonLogin.Location = new System.Drawing.Point(15, 105); + this.buttonLogin.Name = "buttonLogin"; + this.buttonLogin.Size = new System.Drawing.Size(150, 30); + this.buttonLogin.TabIndex = 2; + this.buttonLogin.Text = "Log In"; + this.buttonLogin.UseVisualStyleBackColor = false; + this.buttonLogin.Click += new System.EventHandler(this.buttonLogin_Click); + // + // labelPassword + // + this.labelPassword.Anchor = System.Windows.Forms.AnchorStyles.None; + this.labelPassword.AutoSize = true; + this.labelPassword.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelPassword.Location = new System.Drawing.Point(11, 40); + this.labelPassword.Name = "labelPassword"; + this.labelPassword.Size = new System.Drawing.Size(103, 21); + this.labelPassword.TabIndex = 3; + this.labelPassword.Text = "Wachtwoord"; + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + + } + + private void buttonLogin_Click(object sender, EventArgs e) + { + mainWindow.validateLogin(); + } + public System.Windows.Forms.TextBox textBoxPassword; + private PictureBox pictureBox1; + private System.Windows.Forms.Button buttonLogin; + private System.Windows.Forms.Label labelPassword; + } + +} diff --git a/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj b/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj index 38b5afc..243dfe0 100644 --- a/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj +++ b/ErgometerDoctorApplication/ErgometerDoctorApplication.csproj @@ -49,6 +49,9 @@ Component + + Component + Component @@ -77,6 +80,7 @@ True Resources.resx + True SettingsSingleFileGenerator @@ -91,6 +95,9 @@ + + + + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -109,9 +112,13 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\doctorImage.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/ErgometerDoctorApplication/Resources/doctorImage.png b/ErgometerDoctorApplication/Resources/doctorImage.png new file mode 100644 index 0000000..5160822 Binary files /dev/null and b/ErgometerDoctorApplication/Resources/doctorImage.png differ