Forum » Programiranje » Design je iziginil [WinForms]
Design je iziginil [WinForms]
BivšiUser2 ::
http://prntscr.com/ffja8z
Form1.cs
Form1.Designer.cs
Form1.cs
using System; using System.Windows.Forms; namespace AplikacijaiWinForms { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button3_Click(object sender, EventArgs e) { Navigiraj(3); } private void Navigiraj(byte izbira) { switch(izbira) { case 1: Skoda s = new Skoda(); s.Show(); break; case 2: //se pride break; case 3: Nastavitve n = new Nastavitve(); n.Show(); break; case 4: Jedilnik j = new Jedilnik(); j.Show(); break; case 5: Osebje o = new Osebje(); o.Show(); break; case 6: Dogodki d = new Dogodki(); d.Show(); break; default: throw new NotImplementedException(); } } private void button2_Click(object sender, EventArgs e) { Navigiraj(2); } private void button4_Click(object sender, EventArgs e) { Navigiraj(4); } private void button1_Click(object sender, EventArgs e) { Navigiraj(1); } private void button5_Click(object sender, EventArgs e) { Navigiraj(5); } private void button6_Click(object sender, EventArgs e) { Navigiraj(6); } private void button7_Click(object sender, EventArgs e) { Navigiraj(7); } } }
Form1.Designer.cs
namespace AplikacijaWinForms { partial class Form1 { private System.ComponentModel.IContainer components = null; /// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Vom Windows Form-Designer generierter Code private void InitializeComponent() { this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); this.button7 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(13, 52); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(95, 23); this.button1.TabIndex = 0; this.button1.Text = "Priu"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(12, 12); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(96, 23); this.button2.TabIndex = 1; this.button2.Text = "Nav"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.Location = new System.Drawing.Point(66, 136); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(96, 23); this.button3.TabIndex = 2; this.button3.Text = "Na"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // button4 // this.button4.Location = new System.Drawing.Point(124, 12); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(95, 23); this.button4.TabIndex = 3; this.button4.Text = "Jk"; this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button4_Click); // // button5 // this.button5.Location = new System.Drawing.Point(124, 52); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(95, 23); this.button5.TabIndex = 4; this.button5.Text = "Z"; this.button5.UseVisualStyleBackColor = true; this.button5.Click += new System.EventHandler(this.button5_Click); // // button6 // this.button6.Location = new System.Drawing.Point(124, 95); this.button6.Name = "button6"; this.button6.Size = new System.Drawing.Size(95, 23); this.button6.TabIndex = 5; this.button6.Text = "D"; this.button6.UseVisualStyleBackColor = true; this.button6.Click += new System.EventHandler(this.button6_Click); // // button7 // this.button7.Location = new System.Drawing.Point(13, 95); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(95, 23); this.button7.TabIndex = 6; this.button7.Text = "Mx"; this.button7.UseVisualStyleBackColor = true; // Form1 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(236, 178); this.Controls.Add(this.button7); this.Controls.Add(this.button6); this.Controls.Add(this.button5); this.Controls.Add(this.button4); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Name = "Form1"; this.Text = "Aplikacija"; this.ResumeLayout(false); } #endregion private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button4; private System.Windows.Forms.Button button5; private System.Windows.Forms.Button button6; private System.Windows.Forms.Button button7; } }
SloTech - če nisi z nami, si persona non grata.
- spremenil: BivšiUser2 ()
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | vb.net: dynamic textboxOddelek: Programiranje | 1192 (1082) | saule |
» | C# PomočOddelek: Programiranje | 1418 (1243) | jizzer |
» | Koda kalkulatorja v MS visual C# 2008?Oddelek: Programiranje | 3006 (2343) | smukC |
» | [c#]4 v vrsto - padanje krogovOddelek: Programiranje | 2001 (1833) | VASkO |
» | Sidewinder Force Feedback Wheel in Windows XPOddelek: Pomoč in nasveti | 1196 (1126) | KTr1sk |