using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace MarkGraf
{
	/// 
	/// Zusammenfassung für Form1.
	/// 
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button btnEnde;
		private System.Windows.Forms.Label lblAnz;
		private System.Windows.Forms.HScrollBar hScrollBar1;
		private System.Windows.Forms.HScrollBar hScrollBar2;
		private System.Windows.Forms.HScrollBar hScrollBar3;
		private System.Windows.Forms.HScrollBar hScrollBar4;
		private System.Windows.Forms.TextBox txt1;
		private System.Windows.Forms.TextBox txt2;
		private System.Windows.Forms.TextBox txt3;
		private System.Windows.Forms.TextBox txt4;
		private System.Windows.Forms.TextBox txtErg;
		/// 
		/// Erforderliche Designervariable.
		/// 
		private System.ComponentModel.Container components = null;
		//Eigene Deklarationen
		int BspAnz;
		double[] BspErg = new double[10] {0,0,0,0,0,0,0,0,0,0};
		int[] Teiler = new int[] {4,4,4,4,4,4,4,4,4,4};
		public double Summe;
		public double note1;
		public double note2;
		public double note3;
		public double note4;
		private System.Windows.Forms.TextBox txt8;
		private System.Windows.Forms.TextBox txt7;
		private System.Windows.Forms.TextBox txt6;
		private System.Windows.Forms.TextBox txt5;
		private System.Windows.Forms.HScrollBar hScrollBar8;
		private System.Windows.Forms.HScrollBar hScrollBar7;
		private System.Windows.Forms.HScrollBar hScrollBar6;
		private System.Windows.Forms.HScrollBar hScrollBar5;
		private System.Windows.Forms.TextBox txt9;
		private System.Windows.Forms.HScrollBar hScrollBar9;
		private System.Windows.Forms.TextBox txt10;
		private System.Windows.Forms.HScrollBar hScrollBar10;
		private System.Windows.Forms.NumericUpDown numAnz;
		private System.Windows.Forms.NumericUpDown num1;
		private System.Windows.Forms.NumericUpDown num2;
		private System.Windows.Forms.NumericUpDown num3;
		private System.Windows.Forms.NumericUpDown num4;
		private System.Windows.Forms.NumericUpDown num5;
		private System.Windows.Forms.NumericUpDown num6;
		private System.Windows.Forms.NumericUpDown num7;
		private System.Windows.Forms.NumericUpDown num8;
		private System.Windows.Forms.NumericUpDown num9;
		private System.Windows.Forms.NumericUpDown num10;
		private System.Windows.Forms.GroupBox grp2;
		private System.Windows.Forms.Label lblTeiler;
		private System.Windows.Forms.Label lblNote;
		private System.Windows.Forms.Label lbl1;
		private System.Windows.Forms.Label lbl2;
		private System.Windows.Forms.Label lbl3;
		private System.Windows.Forms.Label lbl4;
		private System.Windows.Forms.NumericUpDown numNote1;
		private System.Windows.Forms.NumericUpDown numNote2;
		private System.Windows.Forms.NumericUpDown numNote3;
		private System.Windows.Forms.NumericUpDown numNote4;
		private System.Windows.Forms.GroupBox grp1;
		private System.Windows.Forms.GroupBox grp3;
		private System.Windows.Forms.TextBox txtNote;
		private System.Windows.Forms.GroupBox grpSystem;
		private System.Windows.Forms.RadioButton radioBsp;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.RadioButton radManu;
		private System.Windows.Forms.RadioButton radLinea;
		private System.Windows.Forms.Button btnReset;
		private System.Windows.Forms.RadioButton radioTest;
		
		//
		public Form1()
		{
			//
			// Erforderlich für die Windows Form-Designerunterstützung
			//
			InitializeComponent();
			//
			// TODO: Fügen Sie den Konstruktorcode nach dem Aufruf von InitializeComponent hinzu
			//
		}
		/// 
		/// Die verwendeten Ressourcen bereinigen.
		/// 
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.btnEnde = new System.Windows.Forms.Button();
			this.grp2 = new System.Windows.Forms.GroupBox();
			this.lblNote = new System.Windows.Forms.Label();
			this.numNote3 = new System.Windows.Forms.NumericUpDown();
			this.numNote1 = new System.Windows.Forms.NumericUpDown();
			this.numNote2 = new System.Windows.Forms.NumericUpDown();
			this.numNote4 = new System.Windows.Forms.NumericUpDown();
			this.lbl2 = new System.Windows.Forms.Label();
			this.lbl3 = new System.Windows.Forms.Label();
			this.lbl4 = new System.Windows.Forms.Label();
			this.lbl1 = new System.Windows.Forms.Label();
			this.numAnz = new System.Windows.Forms.NumericUpDown();
			this.lblAnz = new System.Windows.Forms.Label();
			this.hScrollBar1 = new System.Windows.Forms.HScrollBar();
			this.hScrollBar2 = new System.Windows.Forms.HScrollBar();
			this.hScrollBar3 = new System.Windows.Forms.HScrollBar();
			this.hScrollBar4 = new System.Windows.Forms.HScrollBar();
			this.txt1 = new System.Windows.Forms.TextBox();
			this.txt2 = new System.Windows.Forms.TextBox();
			this.txt3 = new System.Windows.Forms.TextBox();
			this.txt4 = new System.Windows.Forms.TextBox();
			this.txtErg = new System.Windows.Forms.TextBox();
			this.txt8 = new System.Windows.Forms.TextBox();
			this.txt7 = new System.Windows.Forms.TextBox();
			this.txt6 = new System.Windows.Forms.TextBox();
			this.txt5 = new System.Windows.Forms.TextBox();
			this.hScrollBar8 = new System.Windows.Forms.HScrollBar();
			this.hScrollBar7 = new System.Windows.Forms.HScrollBar();
			this.hScrollBar6 = new System.Windows.Forms.HScrollBar();
			this.hScrollBar5 = new System.Windows.Forms.HScrollBar();
			this.txt9 = new System.Windows.Forms.TextBox();
			this.hScrollBar9 = new System.Windows.Forms.HScrollBar();
			this.txt10 = new System.Windows.Forms.TextBox();
			this.hScrollBar10 = new System.Windows.Forms.HScrollBar();
			this.num1 = new System.Windows.Forms.NumericUpDown();
			this.num2 = new System.Windows.Forms.NumericUpDown();
			this.num3 = new System.Windows.Forms.NumericUpDown();
			this.num4 = new System.Windows.Forms.NumericUpDown();
			this.num5 = new System.Windows.Forms.NumericUpDown();
			this.num6 = new System.Windows.Forms.NumericUpDown();
			this.num7 = new System.Windows.Forms.NumericUpDown();
			this.num8 = new System.Windows.Forms.NumericUpDown();
			this.num9 = new System.Windows.Forms.NumericUpDown();
			this.num10 = new System.Windows.Forms.NumericUpDown();
			this.lblTeiler = new System.Windows.Forms.Label();
			this.grp1 = new System.Windows.Forms.GroupBox();
			this.grp3 = new System.Windows.Forms.GroupBox();
			this.txtNote = new System.Windows.Forms.TextBox();
			this.grpSystem = new System.Windows.Forms.GroupBox();
			this.radioTest = new System.Windows.Forms.RadioButton();
			this.radioBsp = new System.Windows.Forms.RadioButton();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.radLinea = new System.Windows.Forms.RadioButton();
			this.radManu = new System.Windows.Forms.RadioButton();
			this.btnReset = new System.Windows.Forms.Button();
			this.grp2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.numNote3)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numNote1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numNote2)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numNote4)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numAnz)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num2)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num3)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num4)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num5)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num6)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num7)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num8)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num9)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.num10)).BeginInit();
			this.grp1.SuspendLayout();
			this.grp3.SuspendLayout();
			this.grpSystem.SuspendLayout();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// btnEnde
			// 
			this.btnEnde.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnEnde.Location = new System.Drawing.Point(456, 360);
			this.btnEnde.Name = "btnEnde";
			this.btnEnde.Size = new System.Drawing.Size(168, 40);
			this.btnEnde.TabIndex = 21;
			this.btnEnde.Text = "&Ende";
			this.btnEnde.Click += new System.EventHandler(this.btnEnde_Click);
			// 
			// grp2
			// 
			this.grp2.Controls.Add(this.lblNote);
			this.grp2.Controls.Add(this.numNote3);
			this.grp2.Controls.Add(this.numNote1);
			this.grp2.Controls.Add(this.numNote2);
			this.grp2.Controls.Add(this.numNote4);
			this.grp2.Controls.Add(this.lbl2);
			this.grp2.Controls.Add(this.lbl3);
			this.grp2.Controls.Add(this.lbl4);
			this.grp2.Controls.Add(this.lbl1);
			this.grp2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.grp2.Location = new System.Drawing.Point(344, 8);
			this.grp2.Name = "grp2";
			this.grp2.Size = new System.Drawing.Size(280, 72);
			this.grp2.TabIndex = 1;
			this.grp2.TabStop = false;
			this.grp2.Text = "Mindestmass in %";
			// 
			// lblNote
			// 
			this.lblNote.Location = new System.Drawing.Point(8, 16);
			this.lblNote.Name = "lblNote";
			this.lblNote.Size = new System.Drawing.Size(32, 20);
			this.lblNote.TabIndex = 2;
			this.lblNote.Text = "Note:";
			this.lblNote.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// numNote3
			// 
			this.numNote3.Location = new System.Drawing.Point(168, 40);
			this.numNote3.Name = "numNote3";
			this.numNote3.Size = new System.Drawing.Size(48, 20);
			this.numNote3.TabIndex = 6;
			this.numNote3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numNote3.Value = new System.Decimal(new int[] {
																   60,
																   0,
																   0,
																   0});
			this.numNote3.ValueChanged += new System.EventHandler(this.numNote3_ValueChanged);
			// 
			// numNote1
			// 
			this.numNote1.Location = new System.Drawing.Point(72, 40);
			this.numNote1.Name = "numNote1";
			this.numNote1.Size = new System.Drawing.Size(48, 20);
			this.numNote1.TabIndex = 4;
			this.numNote1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numNote1.Value = new System.Decimal(new int[] {
																   90,
																   0,
																   0,
																   0});
			this.numNote1.ValueChanged += new System.EventHandler(this.numNote1_ValueChanged);
			// 
			// numNote2
			// 
			this.numNote2.Location = new System.Drawing.Point(120, 40);
			this.numNote2.Name = "numNote2";
			this.numNote2.Size = new System.Drawing.Size(48, 20);
			this.numNote2.TabIndex = 5;
			this.numNote2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numNote2.Value = new System.Decimal(new int[] {
																   80,
																   0,
																   0,
																   0});
			this.numNote2.ValueChanged += new System.EventHandler(this.numNote2_ValueChanged);
			// 
			// numNote4
			// 
			this.numNote4.Location = new System.Drawing.Point(216, 40);
			this.numNote4.Name = "numNote4";
			this.numNote4.Size = new System.Drawing.Size(48, 20);
			this.numNote4.TabIndex = 7;
			this.numNote4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numNote4.Value = new System.Decimal(new int[] {
																   50,
																   0,
																   0,
																   0});
			this.numNote4.ValueChanged += new System.EventHandler(this.numNote4_ValueChanged);
			// 
			// lbl2
			// 
			this.lbl2.Location = new System.Drawing.Point(120, 16);
			this.lbl2.Name = "lbl2";
			this.lbl2.Size = new System.Drawing.Size(48, 20);
			this.lbl2.TabIndex = 34;
			this.lbl2.Text = "2";
			this.lbl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// lbl3
			// 
			this.lbl3.Location = new System.Drawing.Point(168, 16);
			this.lbl3.Name = "lbl3";
			this.lbl3.Size = new System.Drawing.Size(48, 20);
			this.lbl3.TabIndex = 34;
			this.lbl3.Text = "3";
			this.lbl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// lbl4
			// 
			this.lbl4.Location = new System.Drawing.Point(216, 16);
			this.lbl4.Name = "lbl4";
			this.lbl4.Size = new System.Drawing.Size(48, 20);
			this.lbl4.TabIndex = 34;
			this.lbl4.Text = "4";
			this.lbl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// lbl1
			// 
			this.lbl1.Location = new System.Drawing.Point(72, 16);
			this.lbl1.Name = "lbl1";
			this.lbl1.Size = new System.Drawing.Size(48, 20);
			this.lbl1.TabIndex = 4;
			this.lbl1.Text = "1";
			this.lbl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// numAnz
			// 
			this.numAnz.Location = new System.Drawing.Point(120, 32);
			this.numAnz.Maximum = new System.Decimal(new int[] {
																   10,
																   0,
																   0,
																   0});
			this.numAnz.Minimum = new System.Decimal(new int[] {
																   1,
																   0,
																   0,
																   0});
			this.numAnz.Name = "numAnz";
			this.numAnz.Size = new System.Drawing.Size(40, 20);
			this.numAnz.TabIndex = 1;
			this.numAnz.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			this.numAnz.Value = new System.Decimal(new int[] {
																 4,
																 0,
																 0,
																 0});
			this.numAnz.ValueChanged += new System.EventHandler(this.numAnz_ValueChanged);
			// 
			// lblAnz
			// 
			this.lblAnz.Location = new System.Drawing.Point(8, 32);
			this.lblAnz.Name = "lblAnz";
			this.lblAnz.Size = new System.Drawing.Size(112, 20);
			this.lblAnz.TabIndex = 0;
			this.lblAnz.Text = "Anzahl der Beispiele:";
			this.lblAnz.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// hScrollBar1
			// 
			this.hScrollBar1.Enabled = false;
			this.hScrollBar1.LargeChange = 2;
			this.hScrollBar1.Location = new System.Drawing.Point(104, 96);
			this.hScrollBar1.Maximum = 9;
			this.hScrollBar1.Name = "hScrollBar1";
			this.hScrollBar1.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar1.TabIndex = 10;
			this.hScrollBar1.TabStop = true;
			this.hScrollBar1.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar1_Scroll);
			// 
			// hScrollBar2
			// 
			this.hScrollBar2.Enabled = false;
			this.hScrollBar2.LargeChange = 2;
			this.hScrollBar2.Location = new System.Drawing.Point(104, 128);
			this.hScrollBar2.Maximum = 9;
			this.hScrollBar2.Name = "hScrollBar2";
			this.hScrollBar2.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar2.TabIndex = 11;
			this.hScrollBar2.TabStop = true;
			this.hScrollBar2.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar2_Scroll);
			// 
			// hScrollBar3
			// 
			this.hScrollBar3.Enabled = false;
			this.hScrollBar3.LargeChange = 2;
			this.hScrollBar3.Location = new System.Drawing.Point(104, 160);
			this.hScrollBar3.Maximum = 9;
			this.hScrollBar3.Name = "hScrollBar3";
			this.hScrollBar3.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar3.TabIndex = 12;
			this.hScrollBar3.TabStop = true;
			this.hScrollBar3.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar3_Scroll);
			// 
			// hScrollBar4
			// 
			this.hScrollBar4.Enabled = false;
			this.hScrollBar4.LargeChange = 2;
			this.hScrollBar4.Location = new System.Drawing.Point(104, 192);
			this.hScrollBar4.Maximum = 9;
			this.hScrollBar4.Name = "hScrollBar4";
			this.hScrollBar4.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar4.TabIndex = 13;
			this.hScrollBar4.TabStop = true;
			this.hScrollBar4.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar4_Scroll);
			// 
			// txt1
			// 
			this.txt1.Location = new System.Drawing.Point(400, 96);
			this.txt1.Name = "txt1";
			this.txt1.ReadOnly = true;
			this.txt1.Size = new System.Drawing.Size(25, 20);
			this.txt1.TabIndex = 6;
			this.txt1.TabStop = false;
			this.txt1.Text = "";
			this.txt1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// txt2
			// 
			this.txt2.Location = new System.Drawing.Point(400, 128);
			this.txt2.Name = "txt2";
			this.txt2.ReadOnly = true;
			this.txt2.Size = new System.Drawing.Size(25, 20);
			this.txt2.TabIndex = 7;
			this.txt2.TabStop = false;
			this.txt2.Text = "";
			this.txt2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// txt3
			// 
			this.txt3.Location = new System.Drawing.Point(400, 160);
			this.txt3.Name = "txt3";
			this.txt3.ReadOnly = true;
			this.txt3.Size = new System.Drawing.Size(25, 20);
			this.txt3.TabIndex = 8;
			this.txt3.TabStop = false;
			this.txt3.Text = "";
			this.txt3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// txt4
			// 
			this.txt4.Location = new System.Drawing.Point(400, 192);
			this.txt4.Name = "txt4";
			this.txt4.ReadOnly = true;
			this.txt4.Size = new System.Drawing.Size(25, 20);
			this.txt4.TabIndex = 9;
			this.txt4.TabStop = false;
			this.txt4.Text = "";
			this.txt4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// txtErg
			// 
			this.txtErg.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.txtErg.Location = new System.Drawing.Point(40, 24);
			this.txtErg.Name = "txtErg";
			this.txtErg.ReadOnly = true;
			this.txtErg.Size = new System.Drawing.Size(88, 22);
			this.txtErg.TabIndex = 10;
			this.txtErg.TabStop = false;
			this.txtErg.Text = "";
			this.txtErg.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			// 
			// txt8
			// 
			this.txt8.Location = new System.Drawing.Point(400, 320);
			this.txt8.Name = "txt8";
			this.txt8.ReadOnly = true;
			this.txt8.Size = new System.Drawing.Size(25, 20);
			this.txt8.TabIndex = 18;
			this.txt8.TabStop = false;
			this.txt8.Text = "";
			this.txt8.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// txt7
			// 
			this.txt7.Location = new System.Drawing.Point(400, 288);
			this.txt7.Name = "txt7";
			this.txt7.ReadOnly = true;
			this.txt7.Size = new System.Drawing.Size(25, 20);
			this.txt7.TabIndex = 17;
			this.txt7.TabStop = false;
			this.txt7.Text = "";
			this.txt7.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// txt6
			// 
			this.txt6.Location = new System.Drawing.Point(400, 256);
			this.txt6.Name = "txt6";
			this.txt6.ReadOnly = true;
			this.txt6.Size = new System.Drawing.Size(25, 20);
			this.txt6.TabIndex = 16;
			this.txt6.TabStop = false;
			this.txt6.Text = "";
			this.txt6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// txt5
			// 
			this.txt5.Location = new System.Drawing.Point(400, 224);
			this.txt5.Name = "txt5";
			this.txt5.ReadOnly = true;
			this.txt5.Size = new System.Drawing.Size(25, 20);
			this.txt5.TabIndex = 15;
			this.txt5.TabStop = false;
			this.txt5.Text = "";
			this.txt5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// hScrollBar8
			// 
			this.hScrollBar8.Enabled = false;
			this.hScrollBar8.LargeChange = 2;
			this.hScrollBar8.Location = new System.Drawing.Point(104, 320);
			this.hScrollBar8.Maximum = 9;
			this.hScrollBar8.Name = "hScrollBar8";
			this.hScrollBar8.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar8.TabIndex = 17;
			this.hScrollBar8.TabStop = true;
			this.hScrollBar8.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar8_Scroll);
			// 
			// hScrollBar7
			// 
			this.hScrollBar7.Enabled = false;
			this.hScrollBar7.LargeChange = 2;
			this.hScrollBar7.Location = new System.Drawing.Point(104, 288);
			this.hScrollBar7.Maximum = 9;
			this.hScrollBar7.Name = "hScrollBar7";
			this.hScrollBar7.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar7.TabIndex = 16;
			this.hScrollBar7.TabStop = true;
			this.hScrollBar7.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar7_Scroll);
			// 
			// hScrollBar6
			// 
			this.hScrollBar6.Enabled = false;
			this.hScrollBar6.LargeChange = 2;
			this.hScrollBar6.Location = new System.Drawing.Point(104, 256);
			this.hScrollBar6.Maximum = 9;
			this.hScrollBar6.Name = "hScrollBar6";
			this.hScrollBar6.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar6.TabIndex = 15;
			this.hScrollBar6.TabStop = true;
			this.hScrollBar6.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar6_Scroll);
			// 
			// hScrollBar5
			// 
			this.hScrollBar5.Enabled = false;
			this.hScrollBar5.LargeChange = 2;
			this.hScrollBar5.Location = new System.Drawing.Point(104, 224);
			this.hScrollBar5.Maximum = 9;
			this.hScrollBar5.Name = "hScrollBar5";
			this.hScrollBar5.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar5.TabIndex = 14;
			this.hScrollBar5.TabStop = true;
			this.hScrollBar5.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar5_Scroll);
			// 
			// txt9
			// 
			this.txt9.Location = new System.Drawing.Point(400, 352);
			this.txt9.Name = "txt9";
			this.txt9.ReadOnly = true;
			this.txt9.Size = new System.Drawing.Size(25, 20);
			this.txt9.TabIndex = 20;
			this.txt9.TabStop = false;
			this.txt9.Text = "";
			this.txt9.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// hScrollBar9
			// 
			this.hScrollBar9.Enabled = false;
			this.hScrollBar9.LargeChange = 2;
			this.hScrollBar9.Location = new System.Drawing.Point(104, 352);
			this.hScrollBar9.Maximum = 9;
			this.hScrollBar9.Name = "hScrollBar9";
			this.hScrollBar9.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar9.TabIndex = 18;
			this.hScrollBar9.TabStop = true;
			this.hScrollBar9.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar9_Scroll);
			// 
			// txt10
			// 
			this.txt10.Location = new System.Drawing.Point(400, 384);
			this.txt10.Name = "txt10";
			this.txt10.ReadOnly = true;
			this.txt10.Size = new System.Drawing.Size(25, 20);
			this.txt10.TabIndex = 22;
			this.txt10.TabStop = false;
			this.txt10.Text = "";
			this.txt10.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			// 
			// hScrollBar10
			// 
			this.hScrollBar10.Enabled = false;
			this.hScrollBar10.LargeChange = 2;
			this.hScrollBar10.Location = new System.Drawing.Point(104, 384);
			this.hScrollBar10.Maximum = 9;
			this.hScrollBar10.Name = "hScrollBar10";
			this.hScrollBar10.Size = new System.Drawing.Size(296, 20);
			this.hScrollBar10.TabIndex = 19;
			this.hScrollBar10.TabStop = true;
			this.hScrollBar10.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar10_Scroll);
			// 
			// num1
			// 
			this.num1.Location = new System.Drawing.Point(64, 96);
			this.num1.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num1.Name = "num1";
			this.num1.Size = new System.Drawing.Size(40, 20);
			this.num1.TabIndex = 23;
			this.num1.TabStop = false;
			this.num1.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num1.ValueChanged += new System.EventHandler(this.num1_ValueChanged);
			// 
			// num2
			// 
			this.num2.Location = new System.Drawing.Point(64, 128);
			this.num2.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num2.Name = "num2";
			this.num2.Size = new System.Drawing.Size(40, 20);
			this.num2.TabIndex = 24;
			this.num2.TabStop = false;
			this.num2.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num2.ValueChanged += new System.EventHandler(this.num2_ValueChanged);
			// 
			// num3
			// 
			this.num3.Location = new System.Drawing.Point(64, 160);
			this.num3.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num3.Name = "num3";
			this.num3.Size = new System.Drawing.Size(40, 20);
			this.num3.TabIndex = 25;
			this.num3.TabStop = false;
			this.num3.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num3.ValueChanged += new System.EventHandler(this.num3_ValueChanged);
			// 
			// num4
			// 
			this.num4.Location = new System.Drawing.Point(64, 192);
			this.num4.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num4.Name = "num4";
			this.num4.Size = new System.Drawing.Size(40, 20);
			this.num4.TabIndex = 26;
			this.num4.TabStop = false;
			this.num4.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num4.ValueChanged += new System.EventHandler(this.num4_ValueChanged);
			// 
			// num5
			// 
			this.num5.Location = new System.Drawing.Point(64, 224);
			this.num5.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num5.Name = "num5";
			this.num5.Size = new System.Drawing.Size(40, 20);
			this.num5.TabIndex = 27;
			this.num5.TabStop = false;
			this.num5.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num5.ValueChanged += new System.EventHandler(this.num5_ValueChanged);
			// 
			// num6
			// 
			this.num6.Location = new System.Drawing.Point(64, 256);
			this.num6.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num6.Name = "num6";
			this.num6.Size = new System.Drawing.Size(40, 20);
			this.num6.TabIndex = 28;
			this.num6.TabStop = false;
			this.num6.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num6.ValueChanged += new System.EventHandler(this.num6_ValueChanged);
			// 
			// num7
			// 
			this.num7.Location = new System.Drawing.Point(64, 288);
			this.num7.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num7.Name = "num7";
			this.num7.Size = new System.Drawing.Size(40, 20);
			this.num7.TabIndex = 29;
			this.num7.TabStop = false;
			this.num7.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num7.ValueChanged += new System.EventHandler(this.num7_ValueChanged);
			// 
			// num8
			// 
			this.num8.Location = new System.Drawing.Point(64, 320);
			this.num8.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num8.Name = "num8";
			this.num8.Size = new System.Drawing.Size(40, 20);
			this.num8.TabIndex = 30;
			this.num8.TabStop = false;
			this.num8.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num8.ValueChanged += new System.EventHandler(this.num8_ValueChanged);
			// 
			// num9
			// 
			this.num9.Location = new System.Drawing.Point(64, 352);
			this.num9.Minimum = new System.Decimal(new int[] {
																 1,
																 0,
																 0,
																 0});
			this.num9.Name = "num9";
			this.num9.Size = new System.Drawing.Size(40, 20);
			this.num9.TabIndex = 31;
			this.num9.TabStop = false;
			this.num9.Value = new System.Decimal(new int[] {
															   8,
															   0,
															   0,
															   0});
			this.num9.ValueChanged += new System.EventHandler(this.num9_ValueChanged);
			// 
			// num10
			// 
			this.num10.Location = new System.Drawing.Point(64, 384);
			this.num10.Minimum = new System.Decimal(new int[] {
																  1,
																  0,
																  0,
																  0});
			this.num10.Name = "num10";
			this.num10.Size = new System.Drawing.Size(40, 20);
			this.num10.TabIndex = 32;
			this.num10.TabStop = false;
			this.num10.Value = new System.Decimal(new int[] {
																8,
																0,
																0,
																0});
			this.num10.ValueChanged += new System.EventHandler(this.num10_ValueChanged);
			// 
			// lblTeiler
			// 
			this.lblTeiler.Location = new System.Drawing.Point(16, 96);
			this.lblTeiler.Name = "lblTeiler";
			this.lblTeiler.Size = new System.Drawing.Size(48, 20);
			this.lblTeiler.TabIndex = 33;
			this.lblTeiler.Text = "Teiler:";
			// 
			// grp1
			// 
			this.grp1.Controls.Add(this.numAnz);
			this.grp1.Controls.Add(this.lblAnz);
			this.grp1.Location = new System.Drawing.Point(8, 8);
			this.grp1.Name = "grp1";
			this.grp1.Size = new System.Drawing.Size(176, 72);
			this.grp1.TabIndex = 34;
			this.grp1.TabStop = false;
			// 
			// grp3
			// 
			this.grp3.Controls.Add(this.txtNote);
			this.grp3.Controls.Add(this.txtErg);
			this.grp3.Location = new System.Drawing.Point(456, 192);
			this.grp3.Name = "grp3";
			this.grp3.Size = new System.Drawing.Size(168, 88);
			this.grp3.TabIndex = 35;
			this.grp3.TabStop = false;
			this.grp3.Text = "Ergebnis:";
			// 
			// txtNote
			// 
			this.txtNote.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.txtNote.Location = new System.Drawing.Point(20, 56);
			this.txtNote.Name = "txtNote";
			this.txtNote.ReadOnly = true;
			this.txtNote.Size = new System.Drawing.Size(128, 22);
			this.txtNote.TabIndex = 11;
			this.txtNote.TabStop = false;
			this.txtNote.Text = "";
			this.txtNote.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			// 
			// grpSystem
			// 
			this.grpSystem.Controls.Add(this.radioTest);
			this.grpSystem.Controls.Add(this.radioBsp);
			this.grpSystem.Location = new System.Drawing.Point(456, 88);
			this.grpSystem.Name = "grpSystem";
			this.grpSystem.Size = new System.Drawing.Size(168, 96);
			this.grpSystem.TabIndex = 36;
			this.grpSystem.TabStop = false;
			this.grpSystem.Text = "System:";
			// 
			// radioTest
			// 
			this.radioTest.Location = new System.Drawing.Point(24, 56);
			this.radioTest.Name = "radioTest";
			this.radioTest.Size = new System.Drawing.Size(120, 16);
			this.radioTest.TabIndex = 9;
			this.radioTest.Text = "Punkte pro Test";
			// 
			// radioBsp
			// 
			this.radioBsp.Checked = true;
			this.radioBsp.Location = new System.Drawing.Point(24, 32);
			this.radioBsp.Name = "radioBsp";
			this.radioBsp.Size = new System.Drawing.Size(120, 16);
			this.radioBsp.TabIndex = 8;
			this.radioBsp.TabStop = true;
			this.radioBsp.Text = "Punkte pro Beispiel";
			this.radioBsp.CheckedChanged += new System.EventHandler(this.radioBsp_CheckedChanged);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.radLinea);
			this.groupBox1.Controls.Add(this.radManu);
			this.groupBox1.Location = new System.Drawing.Point(192, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(136, 72);
			this.groupBox1.TabIndex = 37;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Notenberechnung:";
			// 
			// radLinea
			// 
			this.radLinea.Location = new System.Drawing.Point(40, 48);
			this.radLinea.Name = "radLinea";
			this.radLinea.Size = new System.Drawing.Size(64, 16);
			this.radLinea.TabIndex = 2;
			this.radLinea.Text = "linear";
			// 
			// radManu
			// 
			this.radManu.Checked = true;
			this.radManu.Location = new System.Drawing.Point(40, 24);
			this.radManu.Name = "radManu";
			this.radManu.Size = new System.Drawing.Size(64, 16);
			this.radManu.TabIndex = 2;
			this.radManu.TabStop = true;
			this.radManu.Text = "manuell";
			this.radManu.CheckedChanged += new System.EventHandler(this.radManu_CheckedChanged);
			// 
			// btnReset
			// 
			this.btnReset.Location = new System.Drawing.Point(456, 304);
			this.btnReset.Name = "btnReset";
			this.btnReset.Size = new System.Drawing.Size(168, 40);
			this.btnReset.TabIndex = 20;
			this.btnReset.Text = "&Reset";
			this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.CancelButton = this.btnEnde;
			this.ClientSize = new System.Drawing.Size(630, 422);
			this.Controls.Add(this.btnReset);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.grpSystem);
			this.Controls.Add(this.grp3);
			this.Controls.Add(this.grp1);
			this.Controls.Add(this.lblTeiler);
			this.Controls.Add(this.num10);
			this.Controls.Add(this.num9);
			this.Controls.Add(this.num8);
			this.Controls.Add(this.num7);
			this.Controls.Add(this.num6);
			this.Controls.Add(this.num5);
			this.Controls.Add(this.num4);
			this.Controls.Add(this.num3);
			this.Controls.Add(this.num2);
			this.Controls.Add(this.num1);
			this.Controls.Add(this.txt10);
			this.Controls.Add(this.hScrollBar10);
			this.Controls.Add(this.txt9);
			this.Controls.Add(this.hScrollBar9);
			this.Controls.Add(this.txt8);
			this.Controls.Add(this.txt7);
			this.Controls.Add(this.txt6);
			this.Controls.Add(this.txt5);
			this.Controls.Add(this.hScrollBar8);
			this.Controls.Add(this.hScrollBar7);
			this.Controls.Add(this.hScrollBar6);
			this.Controls.Add(this.hScrollBar5);
			this.Controls.Add(this.txt4);
			this.Controls.Add(this.txt3);
			this.Controls.Add(this.txt2);
			this.Controls.Add(this.txt1);
			this.Controls.Add(this.hScrollBar4);
			this.Controls.Add(this.hScrollBar3);
			this.Controls.Add(this.hScrollBar2);
			this.Controls.Add(this.hScrollBar1);
			this.Controls.Add(this.grp2);
			this.Controls.Add(this.btnEnde);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximumSize = new System.Drawing.Size(642, 458);
			this.Name = "Form1";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "MarkGraf";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.grp2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numNote3)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numNote1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numNote2)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numNote4)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numAnz)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num2)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num3)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num4)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num5)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num6)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num7)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num8)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num9)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.num10)).EndInit();
			this.grp1.ResumeLayout(false);
			this.grp3.ResumeLayout(false);
			this.grpSystem.ResumeLayout(false);
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);
		}
		#endregion
		/// 
		/// Der Haupteinstiegspunkt für die Anwendung.
		/// 
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}
		private void btnEnde_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
		private void Form1_Load(object sender, System.EventArgs e)
		{
			//Notengrenzen setzen
			setNoten();
			//Beispielanzahl sichern
			BspAnz=Convert.ToUInt16(numAnz.Text);
			//Scrollbars mit Txts synchronisieren
			txt1.Text=Convert.ToString(hScrollBar1.Value);
			txt2.Text=Convert.ToString(hScrollBar2.Value);
			txt3.Text=Convert.ToString(hScrollBar3.Value);
			txt4.Text=Convert.ToString(hScrollBar4.Value);
			txt5.Text=Convert.ToString(hScrollBar5.Value);
			txt6.Text=Convert.ToString(hScrollBar6.Value);
			txt7.Text=Convert.ToString(hScrollBar7.Value);
			txt8.Text=Convert.ToString(hScrollBar8.Value);
			txt9.Text=Convert.ToString(hScrollBar9.Value);
			txt10.Text=Convert.ToString(hScrollBar10.Value);
			//Scrolls einstellen
			hScrollBar1.Maximum=Convert.ToUInt16(1+num1.Value);
			hScrollBar2.Maximum=Convert.ToUInt16(1+num2.Value);
			hScrollBar3.Maximum=Convert.ToUInt16(1+num3.Value);
			hScrollBar4.Maximum=Convert.ToUInt16(1+num4.Value);
			hScrollBar5.Maximum=Convert.ToUInt16(1+num5.Value);
			hScrollBar6.Maximum=Convert.ToUInt16(1+num6.Value);
			hScrollBar7.Maximum=Convert.ToUInt16(1+num7.Value);
			hScrollBar8.Maximum=Convert.ToUInt16(1+num8.Value);
			hScrollBar9.Maximum=Convert.ToUInt16(1+num9.Value);
			hScrollBar10.Maximum=Convert.ToUInt16(1+num10.Value);
			//Teilerfeld einlesen
			Teiler[0]=Convert.ToUInt16(num1.Value);
			Teiler[1]=Convert.ToUInt16(num2.Value);
			Teiler[2]=Convert.ToUInt16(num3.Value);
			Teiler[3]=Convert.ToUInt16(num4.Value);
			Teiler[4]=Convert.ToUInt16(num5.Value);
			Teiler[5]=Convert.ToUInt16(num6.Value);
			Teiler[6]=Convert.ToUInt16(num7.Value);
			Teiler[7]=Convert.ToUInt16(num8.Value);
			Teiler[8]=Convert.ToUInt16(num9.Value);
			Teiler[9]=Convert.ToUInt16(num10.Value);
			numAnz.Focus();
			//Aktive Scrolls schalten
			schaltScrolls();
			durchschnitt();
		}
		
		private void schaltScrolls()
		{
			//Scrollbars ausschalten
				hScrollBar1.Enabled=false;
				hScrollBar2.Enabled=false;
				hScrollBar3.Enabled=false;
				hScrollBar4.Enabled=false;
				hScrollBar5.Enabled=false;
				hScrollBar6.Enabled=false;
				hScrollBar7.Enabled=false;
				hScrollBar8.Enabled=false;
				hScrollBar9.Enabled=false;
				hScrollBar10.Enabled=false;
			//Scrollbars einschalten
			if (BspAnz>=1)
				hScrollBar1.Enabled=true;
			if (BspAnz>=2)
				hScrollBar2.Enabled=true;
			if (BspAnz>=3)
				hScrollBar3.Enabled=true;
			if (BspAnz>=4)
				hScrollBar4.Enabled=true;
			if (BspAnz>=5)
				hScrollBar5.Enabled=true;
			if (BspAnz>=6)
				hScrollBar6.Enabled=true;
			if (BspAnz>=7)
				hScrollBar7.Enabled=true;
			if (BspAnz>=8)
				hScrollBar8.Enabled=true;
			if (BspAnz>=9)
				hScrollBar9.Enabled=true;
			if (BspAnz>=10)
				hScrollBar10.Enabled=true;
		}
		private void hScrollBar1_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt1.Text=Convert.ToString(hScrollBar1.Value);
			BspErg[0]=hScrollBar1.Value;
			durchschnitt();
		}
		private void hScrollBar2_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt2.Text=Convert.ToString(hScrollBar2.Value);
			BspErg[1]=hScrollBar2.Value;
			durchschnitt();
		}
		private void hScrollBar3_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt3.Text=Convert.ToString(hScrollBar3.Value);
			BspErg[2]=hScrollBar3.Value;
			durchschnitt();
		}
		private void hScrollBar4_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt4.Text=Convert.ToString(hScrollBar4.Value);
			BspErg[3]=hScrollBar4.Value;
			durchschnitt();
		}
		private void hScrollBar5_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt5.Text=Convert.ToString(hScrollBar5.Value);
			BspErg[4]=hScrollBar5.Value;
			durchschnitt();
		}
		private void hScrollBar6_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt6.Text=Convert.ToString(hScrollBar6.Value);
			BspErg[5]=hScrollBar6.Value;
			durchschnitt();
		}
		private void hScrollBar7_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt7.Text=Convert.ToString(hScrollBar7.Value);
			BspErg[6]=hScrollBar7.Value;
			durchschnitt();
		}
		private void hScrollBar8_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt8.Text=Convert.ToString(hScrollBar8.Value);
			BspErg[7]=hScrollBar8.Value;
			durchschnitt();
		}
		private void hScrollBar9_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt9.Text=Convert.ToString(hScrollBar9.Value);
			BspErg[8]=hScrollBar9.Value;
			durchschnitt();
		}
		private void hScrollBar10_Scroll(object sender, System.Windows.Forms.ScrollEventArgs e)
		{
			txt10.Text=Convert.ToString(hScrollBar10.Value);
			BspErg[9]=hScrollBar10.Value;
			durchschnitt();
		}
		private void setNoten()
		{
			note1=Convert.ToDouble(numNote1.Value);
			note2=Convert.ToDouble(numNote2.Value);
			note3=Convert.ToDouble(numNote3.Value);
			note4=Convert.ToDouble(numNote4.Value);
		}
		private void durchschnitt()
		{
			int i;
			Summe=0;
			int SumTeiler=0;
			double mittel=0;
			if(radioBsp.Checked)
			{
				for(i=0;inum1.Value)
			{
				hScrollBar1.Value=Convert.ToUInt16(num1.Value);
			}
			txt1.Text=Convert.ToString(hScrollBar1.Value);
			BspErg[0]=hScrollBar1.Value;
			Teiler[0]=Convert.ToUInt16(num1.Value);
			durchschnitt();
		}
		private void num2_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar2.Maximum=Convert.ToUInt16(1+num2.Value);
			if(hScrollBar2.Value>num2.Value)
			{
				hScrollBar2.Value=Convert.ToUInt16(num2.Value);
			}
			txt2.Text=Convert.ToString(hScrollBar2.Value);
			BspErg[1]=hScrollBar2.Value;
			Teiler[1]=Convert.ToUInt16(num2.Value);
			durchschnitt();
		}
		private void num3_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar3.Maximum=Convert.ToUInt16(1+num3.Value);
			if(hScrollBar3.Value>num3.Value)
			{
				hScrollBar3.Value=Convert.ToUInt16(num3.Value);
			}
			txt3.Text=Convert.ToString(hScrollBar3.Value);
			BspErg[2]=hScrollBar3.Value;
			Teiler[2]=Convert.ToUInt16(num3.Value);
			durchschnitt();
		}
		private void num4_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar4.Maximum=Convert.ToUInt16(1+num4.Value);
			if(hScrollBar4.Value>num4.Value)
			{
				hScrollBar4.Value=Convert.ToUInt16(num4.Value);
			}
			txt4.Text=Convert.ToString(hScrollBar4.Value);
			BspErg[3]=hScrollBar4.Value;
			Teiler[3]=Convert.ToUInt16(num4.Value);
			durchschnitt();
		}
		private void num5_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar5.Maximum=Convert.ToUInt16(1+num5.Value);
			if(hScrollBar5.Value>num5.Value)
			{
				hScrollBar5.Value=Convert.ToUInt16(num5.Value);
			}
			txt5.Text=Convert.ToString(hScrollBar5.Value);
			BspErg[4]=hScrollBar5.Value;
			Teiler[4]=Convert.ToUInt16(num5.Value);
			durchschnitt();
		}
		private void num6_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar6.Maximum=Convert.ToUInt16(1+num6.Value);
			if(hScrollBar6.Value>num6.Value)
			{
				hScrollBar6.Value=Convert.ToUInt16(num6.Value);
			}
			txt6.Text=Convert.ToString(hScrollBar6.Value);
			BspErg[5]=hScrollBar6.Value;
			Teiler[5]=Convert.ToUInt16(num6.Value);
			durchschnitt();
		}
		private void num7_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar7.Maximum=Convert.ToUInt16(1+num7.Value);
			if(hScrollBar7.Value>num7.Value)
			{
				hScrollBar7.Value=Convert.ToUInt16(num7.Value);
			}
			txt7.Text=Convert.ToString(hScrollBar7.Value);
			BspErg[6]=hScrollBar7.Value;
			Teiler[6]=Convert.ToUInt16(num7.Value);
			durchschnitt();
		}
		private void num8_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar8.Maximum=Convert.ToUInt16(1+num8.Value);
			if(hScrollBar8.Value>num8.Value)
			{
				hScrollBar8.Value=Convert.ToUInt16(num8.Value);
			}
			txt8.Text=Convert.ToString(hScrollBar8.Value);
			BspErg[7]=hScrollBar8.Value;
			Teiler[7]=Convert.ToUInt16(num8.Value);
			durchschnitt();
		}
		private void num9_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar9.Maximum=Convert.ToUInt16(1+num9.Value);
			if(hScrollBar9.Value>num9.Value)
			{
				hScrollBar9.Value=Convert.ToUInt16(num9.Value);
			}
			txt9.Text=Convert.ToString(hScrollBar9.Value);
			BspErg[8]=hScrollBar9.Value;
			Teiler[8]=Convert.ToUInt16(num9.Value);
			durchschnitt();
		}
		private void num10_ValueChanged(object sender, System.EventArgs e)
		{
			hScrollBar10.Maximum=Convert.ToUInt16(1+num10.Value);
			if(hScrollBar10.Value>num10.Value)
			{
				hScrollBar10.Value=Convert.ToUInt16(num10.Value);
			}
			txt10.Text=Convert.ToString(hScrollBar10.Value);
			BspErg[9]=hScrollBar10.Value;
			Teiler[9]=Convert.ToUInt16(num10.Value);
			durchschnitt();
		}
		private void numNote1_ValueChanged(object sender, System.EventArgs e)
		{
			setNoten();
			durchschnitt();
		}
		private void numNote4_ValueChanged(object sender, System.EventArgs e)
		{
			setNoten();
			durchschnitt();
		}
		private void numNote3_ValueChanged(object sender, System.EventArgs e)
		{
			setNoten();
			durchschnitt();
		}
		private void numNote2_ValueChanged(object sender, System.EventArgs e)
		{
			setNoten();
			durchschnitt();
		}
		private void radioBsp_CheckedChanged(object sender, System.EventArgs e)
		{
			durchschnitt();
		}
		private void radManu_CheckedChanged(object sender, System.EventArgs e)
		{
			if(radManu.Checked)
			{
				numNote1.Enabled=true;
				numNote2.Enabled=true;
				numNote3.Enabled=true;
				numNote4.Enabled=true;
				numNote1.DecimalPlaces=0;
				numNote2.DecimalPlaces=0;
				numNote3.DecimalPlaces=0;
				numNote4.DecimalPlaces=0;
				numNote1.Value=90;
				numNote2.Value=80;
				numNote3.Value=60;
				numNote4.Value=50;
				setNoten();
				durchschnitt();
			}
			else
			{	numNote1.Value=Convert.ToDecimal(87.5);
				numNote2.Value=75;
				numNote3.Value=Convert.ToDecimal(62.5);
				numNote4.Value=50;
				numNote1.DecimalPlaces=1;
				numNote2.DecimalPlaces=1;
				numNote3.DecimalPlaces=1;
				numNote4.DecimalPlaces=1;
				numNote1.Enabled=false;
				numNote2.Enabled=false;
				numNote3.Enabled=false;
				numNote4.Enabled=false;
				setNoten();
				durchschnitt();
			}
		}
		private void btnReset_Click(object sender, System.EventArgs e)
		{	
			//Reset der Scrollbars
			hScrollBar1.Value=0;
			hScrollBar2.Value=0;
			hScrollBar3.Value=0;
			hScrollBar4.Value=0;
			hScrollBar5.Value=0;
			hScrollBar6.Value=0;
			hScrollBar7.Value=0;
			hScrollBar8.Value=0;
			hScrollBar9.Value=0;
			hScrollBar10.Value=0;
			for (int i=0;i<10;i++)
			{
				BspErg[i]=0;
			}
			
			//Scrollbars mit Txts synchronisieren
			txt1.Text=Convert.ToString(hScrollBar1.Value);
			txt2.Text=Convert.ToString(hScrollBar2.Value);
			txt3.Text=Convert.ToString(hScrollBar3.Value);
			txt4.Text=Convert.ToString(hScrollBar4.Value);
			txt5.Text=Convert.ToString(hScrollBar5.Value);
			txt6.Text=Convert.ToString(hScrollBar6.Value);
			txt7.Text=Convert.ToString(hScrollBar7.Value);
			txt8.Text=Convert.ToString(hScrollBar8.Value);
			txt9.Text=Convert.ToString(hScrollBar9.Value);
			txt10.Text=Convert.ToString(hScrollBar10.Value);
			//Scrolls einstellen
			hScrollBar1.Maximum=Convert.ToUInt16(1+num1.Value);
			hScrollBar2.Maximum=Convert.ToUInt16(1+num2.Value);
			hScrollBar3.Maximum=Convert.ToUInt16(1+num3.Value);
			hScrollBar4.Maximum=Convert.ToUInt16(1+num4.Value);
			hScrollBar5.Maximum=Convert.ToUInt16(1+num5.Value);
			hScrollBar6.Maximum=Convert.ToUInt16(1+num6.Value);
			hScrollBar7.Maximum=Convert.ToUInt16(1+num7.Value);
			hScrollBar8.Maximum=Convert.ToUInt16(1+num8.Value);
			hScrollBar9.Maximum=Convert.ToUInt16(1+num9.Value);
			hScrollBar10.Maximum=Convert.ToUInt16(1+num10.Value);
			//Teilerfeld einlesen
			Teiler[0]=Convert.ToUInt16(num1.Value);
			Teiler[1]=Convert.ToUInt16(num2.Value);
			Teiler[2]=Convert.ToUInt16(num3.Value);
			Teiler[3]=Convert.ToUInt16(num4.Value);
			Teiler[4]=Convert.ToUInt16(num5.Value);
			Teiler[5]=Convert.ToUInt16(num6.Value);
			Teiler[6]=Convert.ToUInt16(num7.Value);
			Teiler[7]=Convert.ToUInt16(num8.Value);
			Teiler[8]=Convert.ToUInt16(num9.Value);
			Teiler[9]=Convert.ToUInt16(num10.Value);
			//numAnz.Focus();
			//Aktive Scrolls schalten
			//schaltScrolls();
			durchschnitt();
		}
	}
}