using System.Xml;
namespace flight_hands
{
partial class Form1
{
///
/// Erforderliche Designervariable.
///
private System.ComponentModel.IContainer components = null;
///
/// Verwendete Ressourcen bereinigen.
///
/// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Windows Form-Designer generierter Code
///
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
///
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.tabControl = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.tabControl.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(350, 5);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(100, 100);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// tabControl
//
this.tabControl.Controls.Add(this.tabPage1);
this.tabControl.Controls.Add(this.tabPage2);
this.tabControl.Controls.Add(this.tabPage3);
this.tabControl.Location = new System.Drawing.Point(12, 108);
this.tabControl.Margin = new System.Windows.Forms.Padding(0);
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 0;
this.tabControl.Size = new System.Drawing.Size(776, 480);
this.tabControl.TabIndex = 1;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.flowLayoutPanel1);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(768, 454);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Startseite";
//
// flowLayoutPanel1
//
this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(768, 454);
this.flowLayoutPanel1.TabIndex = 0;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.flowLayoutPanel2);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(768, 454);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Kurs Videos";
//
// flowLayoutPanel2
//
this.flowLayoutPanel2.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.flowLayoutPanel2.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel2.Name = "flowLayoutPanel2";
this.flowLayoutPanel2.Size = new System.Drawing.Size(768, 454);
this.flowLayoutPanel2.TabIndex = 0;
//
// tabPage3
//
this.tabPage3.Controls.Add(this.flowLayoutPanel3);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(768, 454);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Kurs Handbuch";
//
// flowLayoutPanel3
//
this.flowLayoutPanel3.BackColor = System.Drawing.SystemColors.HotTrack;
this.flowLayoutPanel3.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel3.Name = "flowLayoutPanel3";
this.flowLayoutPanel3.Size = new System.Drawing.Size(768, 454);
this.flowLayoutPanel3.TabIndex = 0;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 600);
this.Controls.Add(this.tabControl);
this.Controls.Add(this.pictureBox1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(640, 480);
this.Name = "Form1";
this.Text = "Fliegende Hände";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.tabControl.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.ResumeLayout(false);
}
private void GenInitializeComponent()
{
genPictureBox1();
genTabControl();
}
private void genTabControl()
{
double size = 0.75;
int height = (int)(this.ClientSize.Height * size);
int width = this.ClientSize.Width - 20;
this.tabControl.Location = new System.Drawing.Point(10, this.ClientSize.Height - height - 10);
this.tabControl.Size = new System.Drawing.Size(width, height);
this.tabPage1.Size = new System.Drawing.Size(this.tabControl.Size.Width, this.tabControl.Size.Height);
this.tabPage2.Size = new System.Drawing.Size(this.tabControl.Size.Width, this.tabControl.Size.Height);
this.tabPage3.Size = new System.Drawing.Size(this.tabControl.Size.Width, this.tabControl.Size.Height);
this.flowLayoutPanel1.Size = new System.Drawing.Size(this.tabPage1.Size.Width, this.tabPage1.Size.Height);
this.flowLayoutPanel2.Size = new System.Drawing.Size(this.tabPage1.Size.Width, this.tabPage1.Size.Height);
this.flowLayoutPanel3.Size = new System.Drawing.Size(this.tabPage1.Size.Width, this.tabPage1.Size.Height);
}
private void genPictureBox1()
{
double size = 0.18;
int height = (int)(this.ClientSize.Height * size);
this.pictureBox1.Location = new System.Drawing.Point((this.ClientSize.Width / 2)-(height/2), this.pictureBox1.Location.Y);
this.pictureBox1.Size = new System.Drawing.Size(height, height);
}
private void GenStartButtons()
{
System.Windows.Forms.Button Start;
XmlTextReader reader = new XmlTextReader("menu/menu.xml");
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element && reader.Name == "item")
{
string type = "";
string name = "";
string file = "";
int types = 0;
if (reader.AttributeCount == 1)
{
type = reader.GetAttribute(0);
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element)
{
if (reader.Name == "name")
{
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Text)
{
name = reader.Value;
types++;
break;
}
}
}
if (reader.Name == "file")
{
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Text)
{
file = reader.Value;
types++;
break;
}
}
}
if (types >= 2)
{
break;
}
}
}
}
Start = new System.Windows.Forms.Button();
Start.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
Start.BackColor = System.Drawing.SystemColors.Control;
Start.Text = name + "\r\n" + System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(type);
Start.Tag = file;
Start.Name = type;
Start.Margin = new System.Windows.Forms.Padding(30);
Start.Size = new System.Drawing.Size(200, 150);
Start.Click += new System.EventHandler(this.button1_Click);
this.flowLayoutPanel1.Controls.Add(Start);
}
}
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel3;
private System.Windows.Forms.TabControl tabControl;
}
}