Initial commit SchulÜbungen

main
Alex 2 years ago
parent f74dfaf6ca
commit b0afa74bd8

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Klassenarbeit_LF6_AlexanderDegen_BSIT16_01-03-2017", "Klassenarbeit_LF6_AlexanderDegen_BSIT16_01-03-2017\Klassenarbeit_LF6_AlexanderDegen_BSIT16_01-03-2017.csproj", "{D1A598C5-91E3-4818-9A46-3D35E883A25C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D1A598C5-91E3-4818-9A46-3D35E883A25C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1A598C5-91E3-4818-9A46-3D35E883A25C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1A598C5-91E3-4818-9A46-3D35E883A25C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1A598C5-91E3-4818-9A46-3D35E883A25C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klassenarbeit_LF6_AlexanderDegen_BSIT16_01_03_2017
{
class ArrayKlasse
{
private const int laenge = 100; //Anzahl der Plätze für das Array
private int[] feld;
//Konstruktor
public ArrayKlasse()
{
feld = new int[laenge];
Random zufall = new Random();
//feld mit Zufallszahlen im Wertebereich -999 ... 999 füllen
for(int i = 0; i < laenge; i++)
{
feld[i] = zufall.Next(-1000, 1000);
}
}
//Parameterloser Aufruf
public void initZufall()
{
Random zufall = new Random();
for (int i = 0; i < laenge; i++)
{
feld[i] = zufall.Next(-1000, 1000);
}
}
//Aufruf mit Obergrenze
public void initZufall(int oberGrenze)
{
Random zufall = new Random();
for (int i = 0; i < laenge; i++)
{
feld[i] = zufall.Next(-1000, oberGrenze);
}
}
//Aufruf mit Ober - und Untergrenze
public void initZufall(int oberGrenze, int unterGrenze)
{
Random zufall = new Random();
for (int i = 0; i < laenge; i++)
{
feld[i] = zufall.Next(unterGrenze, oberGrenze);
}
}
}
}

@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klassenarbeit_LF6_AlexanderDegen_BSIT16_01_03_2017
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("<<Reisekosten Berechner>>");
Console.WriteLine("Geben Sie Ihre gefahrenen Km und ihre Parkgebühren(falls vorhanden an)");
int gefahreneKm = 0;
//Einlesen der Km
Console.Write("Km: ");
gefahreneKm = Convert.ToInt32(Console.ReadLine());
//Einlesen der Parkgebüren
Console.Write("Parkgebüren (0 falls nicht vorhanden): ");
double parkGebühren = Convert.ToDouble(Console.ReadLine());
//Initialisierung der Variablen
double kostenBrutto = 0.0;
double kostenNetto = 0.0;
//Aufruf der Reisekostenfunktion
reiseKosten(gefahreneKm,out kostenBrutto,out kostenNetto,parkGebühren);
//Konvertierung der Nettoreisekosten in ein Lesbares format
int nettoKostenVorKomma = Convert.ToInt32(kostenNetto);
int nettoKostenNachKomma = Convert.ToInt32(kostenNetto*100);
nettoKostenNachKomma = nettoKostenNachKomma % 100;
string stringKostenNetto = nettoKostenVorKomma.ToString() +","+ nettoKostenNachKomma.ToString();
//Ausgabe der Endwerte
Console.WriteLine("Nettokosten: " + stringKostenNetto + " Euro, BruttoKosten: " + kostenBrutto+" Euro");
Console.ReadLine();
}
// ReisekostenBerechnung
public static void reiseKosten(int gefahreneKm, out double kostenBrutto, out double kostenNetto, double parkGebühr = 0.0)
{
kostenBrutto = gefahreneKm * 0.3 + parkGebühr;
if (parkGebühr != 0.0)
{
double umsatzSt = parkGebühr * 0.19;
kostenBrutto += umsatzSt;
}
kostenNetto = kostenBrutto / 1.19;
}
}
}

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("Klassenarbeit_LF6_AlexanderDegen_BSIT16_01-03-2017")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("EUP")]
[assembly: AssemblyProduct("Klassenarbeit_LF6_AlexanderDegen_BSIT16_01-03-2017")]
[assembly: AssemblyCopyright("Copyright © EUP 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("d1a598c5-91e3-4818-9a46-3d35e883a25c")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,371 @@
namespace Übungen_LF6_WinFormanwendung
{
partial class Klassenarbeit_030517_AlexanderDegen
{
/// <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.button_ende = new System.Windows.Forms.Button();
this.CSVLesen = new System.Windows.Forms.Button();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.textBox_Header_OrderID = new System.Windows.Forms.TextBox();
this.buttonAnzeige = new System.Windows.Forms.Button();
this.button_GesUmsatz = new System.Windows.Forms.Button();
this.textBox_GesUmsatz = new System.Windows.Forms.TextBox();
this.button_UmsatzNetto = new System.Windows.Forms.Button();
this.textBox_UmsatzNetto = new System.Windows.Forms.TextBox();
this.textBoxFileName = new System.Windows.Forms.TextBox();
this.listBoxOrderID = new System.Windows.Forms.ListBox();
this.button_SummeSales = new System.Windows.Forms.Button();
this.button_Summe_Bestellung = new System.Windows.Forms.Button();
this.textBox_SummeSales = new System.Windows.Forms.TextBox();
this.textBox_Summe_Bestellung = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.listBox_Discount = new System.Windows.Forms.ListBox();
this.listBox_Quantity = new System.Windows.Forms.ListBox();
this.listBox_UnitPrize = new System.Windows.Forms.ListBox();
this.listBoxProductID = new System.Windows.Forms.ListBox();
this.textBox_Header_ProductID = new System.Windows.Forms.TextBox();
this.textBox_Header_UnitPrize = new System.Windows.Forms.TextBox();
this.textBox_Header_Quantity = new System.Windows.Forms.TextBox();
this.textBox_Header_Discount = new System.Windows.Forms.TextBox();
this.button_SalePerProduct = new System.Windows.Forms.Button();
this.button_RechnungProOrder = new System.Windows.Forms.Button();
this.listBox_VerkaufProProdukt = new System.Windows.Forms.ListBox();
this.listBox_RechnungProOrder = new System.Windows.Forms.ListBox();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// button_ende
//
this.button_ende.Location = new System.Drawing.Point(995, 497);
this.button_ende.Margin = new System.Windows.Forms.Padding(2);
this.button_ende.Name = "button_ende";
this.button_ende.Size = new System.Drawing.Size(122, 37);
this.button_ende.TabIndex = 12;
this.button_ende.Text = "Beenden";
this.button_ende.UseVisualStyleBackColor = true;
this.button_ende.Click += new System.EventHandler(this.button_ende_Click);
//
// CSVLesen
//
this.CSVLesen.Location = new System.Drawing.Point(708, 18);
this.CSVLesen.Name = "CSVLesen";
this.CSVLesen.Size = new System.Drawing.Size(133, 36);
this.CSVLesen.TabIndex = 13;
this.CSVLesen.Text = "CSV-Lesen";
this.CSVLesen.UseVisualStyleBackColor = true;
this.CSVLesen.Click += new System.EventHandler(this.CSVLesen_Click);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// textBox_Header_OrderID
//
this.textBox_Header_OrderID.Location = new System.Drawing.Point(21, 35);
this.textBox_Header_OrderID.Name = "textBox_Header_OrderID";
this.textBox_Header_OrderID.Size = new System.Drawing.Size(121, 20);
this.textBox_Header_OrderID.TabIndex = 20;
//
// buttonAnzeige
//
this.buttonAnzeige.Location = new System.Drawing.Point(708, 77);
this.buttonAnzeige.Margin = new System.Windows.Forms.Padding(2);
this.buttonAnzeige.Name = "buttonAnzeige";
this.buttonAnzeige.Size = new System.Drawing.Size(133, 36);
this.buttonAnzeige.TabIndex = 21;
this.buttonAnzeige.Text = "Zeige Daten";
this.buttonAnzeige.UseVisualStyleBackColor = true;
this.buttonAnzeige.Click += new System.EventHandler(this.buttonAnzeige_Click);
//
// button_GesUmsatz
//
this.button_GesUmsatz.Location = new System.Drawing.Point(847, 17);
this.button_GesUmsatz.Name = "button_GesUmsatz";
this.button_GesUmsatz.Size = new System.Drawing.Size(133, 38);
this.button_GesUmsatz.TabIndex = 22;
this.button_GesUmsatz.Text = "Umsatz Gesamt";
this.button_GesUmsatz.UseVisualStyleBackColor = true;
this.button_GesUmsatz.Click += new System.EventHandler(this.button_GesUmsatz_Click);
//
// textBox_GesUmsatz
//
this.textBox_GesUmsatz.Location = new System.Drawing.Point(995, 27);
this.textBox_GesUmsatz.Name = "textBox_GesUmsatz";
this.textBox_GesUmsatz.Size = new System.Drawing.Size(122, 20);
this.textBox_GesUmsatz.TabIndex = 23;
//
// button_UmsatzNetto
//
this.button_UmsatzNetto.Location = new System.Drawing.Point(847, 77);
this.button_UmsatzNetto.Name = "button_UmsatzNetto";
this.button_UmsatzNetto.Size = new System.Drawing.Size(133, 35);
this.button_UmsatzNetto.TabIndex = 24;
this.button_UmsatzNetto.Text = "Umsatz Netto";
this.button_UmsatzNetto.UseVisualStyleBackColor = true;
this.button_UmsatzNetto.Click += new System.EventHandler(this.button_UmsatzNetto_Click);
//
// textBox_UmsatzNetto
//
this.textBox_UmsatzNetto.Location = new System.Drawing.Point(997, 85);
this.textBox_UmsatzNetto.Name = "textBox_UmsatzNetto";
this.textBox_UmsatzNetto.Size = new System.Drawing.Size(122, 20);
this.textBox_UmsatzNetto.TabIndex = 25;
//
// textBoxFileName
//
this.textBoxFileName.Location = new System.Drawing.Point(23, 27);
this.textBoxFileName.Margin = new System.Windows.Forms.Padding(2);
this.textBoxFileName.Name = "textBoxFileName";
this.textBoxFileName.Size = new System.Drawing.Size(660, 20);
this.textBoxFileName.TabIndex = 26;
//
// listBoxOrderID
//
this.listBoxOrderID.FormattingEnabled = true;
this.listBoxOrderID.Location = new System.Drawing.Point(23, 69);
this.listBoxOrderID.Margin = new System.Windows.Forms.Padding(2);
this.listBoxOrderID.Name = "listBoxOrderID";
this.listBoxOrderID.Size = new System.Drawing.Size(121, 381);
this.listBoxOrderID.TabIndex = 27;
//
// button_SummeSales
//
this.button_SummeSales.Location = new System.Drawing.Point(847, 136);
this.button_SummeSales.Name = "button_SummeSales";
this.button_SummeSales.Size = new System.Drawing.Size(133, 35);
this.button_SummeSales.TabIndex = 36;
this.button_SummeSales.Text = "Summe Verkäufe";
this.button_SummeSales.UseVisualStyleBackColor = true;
this.button_SummeSales.Click += new System.EventHandler(this.button_SummeSales_Click);
//
// button_Summe_Bestellung
//
this.button_Summe_Bestellung.Location = new System.Drawing.Point(847, 186);
this.button_Summe_Bestellung.Name = "button_Summe_Bestellung";
this.button_Summe_Bestellung.Size = new System.Drawing.Size(133, 35);
this.button_Summe_Bestellung.TabIndex = 37;
this.button_Summe_Bestellung.Text = "Summe Bestellungen";
this.button_Summe_Bestellung.UseVisualStyleBackColor = true;
this.button_Summe_Bestellung.Click += new System.EventHandler(this.button_Summe_Bestellung_Click);
//
// textBox_SummeSales
//
this.textBox_SummeSales.Location = new System.Drawing.Point(997, 144);
this.textBox_SummeSales.Name = "textBox_SummeSales";
this.textBox_SummeSales.Size = new System.Drawing.Size(122, 20);
this.textBox_SummeSales.TabIndex = 38;
//
// textBox_Summe_Bestellung
//
this.textBox_Summe_Bestellung.Location = new System.Drawing.Point(995, 194);
this.textBox_Summe_Bestellung.Name = "textBox_Summe_Bestellung";
this.textBox_Summe_Bestellung.Size = new System.Drawing.Size(122, 20);
this.textBox_Summe_Bestellung.TabIndex = 39;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.listBox_Discount);
this.groupBox1.Controls.Add(this.listBox_Quantity);
this.groupBox1.Controls.Add(this.listBox_UnitPrize);
this.groupBox1.Controls.Add(this.listBoxProductID);
this.groupBox1.Controls.Add(this.listBoxOrderID);
this.groupBox1.Controls.Add(this.textBox_Header_ProductID);
this.groupBox1.Controls.Add(this.textBox_Header_UnitPrize);
this.groupBox1.Controls.Add(this.textBox_Header_Quantity);
this.groupBox1.Controls.Add(this.textBox_Header_Discount);
this.groupBox1.Controls.Add(this.textBox_Header_OrderID);
this.groupBox1.Location = new System.Drawing.Point(23, 67);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(660, 467);
this.groupBox1.TabIndex = 40;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Daten";
//
// listBox_Discount
//
this.listBox_Discount.FormattingEnabled = true;
this.listBox_Discount.Location = new System.Drawing.Point(523, 69);
this.listBox_Discount.Margin = new System.Windows.Forms.Padding(2);
this.listBox_Discount.Name = "listBox_Discount";
this.listBox_Discount.Size = new System.Drawing.Size(121, 381);
this.listBox_Discount.TabIndex = 31;
//
// listBox_Quantity
//
this.listBox_Quantity.FormattingEnabled = true;
this.listBox_Quantity.Location = new System.Drawing.Point(398, 69);
this.listBox_Quantity.Margin = new System.Windows.Forms.Padding(2);
this.listBox_Quantity.Name = "listBox_Quantity";
this.listBox_Quantity.Size = new System.Drawing.Size(121, 381);
this.listBox_Quantity.TabIndex = 30;
//
// listBox_UnitPrize
//
this.listBox_UnitPrize.FormattingEnabled = true;
this.listBox_UnitPrize.Location = new System.Drawing.Point(273, 69);
this.listBox_UnitPrize.Margin = new System.Windows.Forms.Padding(2);
this.listBox_UnitPrize.Name = "listBox_UnitPrize";
this.listBox_UnitPrize.Size = new System.Drawing.Size(121, 381);
this.listBox_UnitPrize.TabIndex = 29;
//
// listBoxProductID
//
this.listBoxProductID.FormattingEnabled = true;
this.listBoxProductID.Location = new System.Drawing.Point(148, 69);
this.listBoxProductID.Margin = new System.Windows.Forms.Padding(2);
this.listBoxProductID.Name = "listBoxProductID";
this.listBoxProductID.Size = new System.Drawing.Size(121, 381);
this.listBoxProductID.TabIndex = 28;
//
// textBox_Header_ProductID
//
this.textBox_Header_ProductID.Location = new System.Drawing.Point(148, 35);
this.textBox_Header_ProductID.Name = "textBox_Header_ProductID";
this.textBox_Header_ProductID.Size = new System.Drawing.Size(119, 20);
this.textBox_Header_ProductID.TabIndex = 32;
//
// textBox_Header_UnitPrize
//
this.textBox_Header_UnitPrize.Location = new System.Drawing.Point(273, 35);
this.textBox_Header_UnitPrize.Name = "textBox_Header_UnitPrize";
this.textBox_Header_UnitPrize.Size = new System.Drawing.Size(119, 20);
this.textBox_Header_UnitPrize.TabIndex = 33;
//
// textBox_Header_Quantity
//
this.textBox_Header_Quantity.Location = new System.Drawing.Point(398, 35);
this.textBox_Header_Quantity.Name = "textBox_Header_Quantity";
this.textBox_Header_Quantity.Size = new System.Drawing.Size(119, 20);
this.textBox_Header_Quantity.TabIndex = 34;
//
// textBox_Header_Discount
//
this.textBox_Header_Discount.Location = new System.Drawing.Point(523, 35);
this.textBox_Header_Discount.Name = "textBox_Header_Discount";
this.textBox_Header_Discount.Size = new System.Drawing.Size(119, 20);
this.textBox_Header_Discount.TabIndex = 35;
//
// button_SalePerProduct
//
this.button_SalePerProduct.Location = new System.Drawing.Point(708, 232);
this.button_SalePerProduct.Name = "button_SalePerProduct";
this.button_SalePerProduct.Size = new System.Drawing.Size(133, 35);
this.button_SalePerProduct.TabIndex = 41;
this.button_SalePerProduct.Text = "Anzahl Verkauf/Produkt";
this.button_SalePerProduct.UseVisualStyleBackColor = true;
this.button_SalePerProduct.Click += new System.EventHandler(this.button_SalePerProduct_Click);
//
// button_RechnungProOrder
//
this.button_RechnungProOrder.Location = new System.Drawing.Point(708, 359);
this.button_RechnungProOrder.Name = "button_RechnungProOrder";
this.button_RechnungProOrder.Size = new System.Drawing.Size(133, 35);
this.button_RechnungProOrder.TabIndex = 42;
this.button_RechnungProOrder.Text = "Rechnung Pro Order";
this.button_RechnungProOrder.UseVisualStyleBackColor = true;
this.button_RechnungProOrder.Click += new System.EventHandler(this.button_RechnungProOrder_Click);
//
// listBox_VerkaufProProdukt
//
this.listBox_VerkaufProProdukt.FormattingEnabled = true;
this.listBox_VerkaufProProdukt.Location = new System.Drawing.Point(858, 232);
this.listBox_VerkaufProProdukt.Name = "listBox_VerkaufProProdukt";
this.listBox_VerkaufProProdukt.Size = new System.Drawing.Size(259, 121);
this.listBox_VerkaufProProdukt.TabIndex = 43;
//
// listBox_RechnungProOrder
//
this.listBox_RechnungProOrder.FormattingEnabled = true;
this.listBox_RechnungProOrder.Location = new System.Drawing.Point(858, 359);
this.listBox_RechnungProOrder.Name = "listBox_RechnungProOrder";
this.listBox_RechnungProOrder.Size = new System.Drawing.Size(259, 121);
this.listBox_RechnungProOrder.TabIndex = 44;
//
// Klassenarbeit_030517_AlexanderDegen
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1131, 566);
this.Controls.Add(this.listBox_RechnungProOrder);
this.Controls.Add(this.listBox_VerkaufProProdukt);
this.Controls.Add(this.button_RechnungProOrder);
this.Controls.Add(this.button_SalePerProduct);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.textBox_Summe_Bestellung);
this.Controls.Add(this.textBox_SummeSales);
this.Controls.Add(this.button_Summe_Bestellung);
this.Controls.Add(this.button_SummeSales);
this.Controls.Add(this.textBoxFileName);
this.Controls.Add(this.textBox_UmsatzNetto);
this.Controls.Add(this.button_UmsatzNetto);
this.Controls.Add(this.textBox_GesUmsatz);
this.Controls.Add(this.button_GesUmsatz);
this.Controls.Add(this.buttonAnzeige);
this.Controls.Add(this.CSVLesen);
this.Controls.Add(this.button_ende);
this.Name = "Klassenarbeit_030517_AlexanderDegen";
this.Text = "Klassenarbeit_030517_AlexanderDegen";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button_ende;
private System.Windows.Forms.Button CSVLesen;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.TextBox textBox_Header_OrderID;
private System.Windows.Forms.Button buttonAnzeige;
private System.Windows.Forms.Button button_GesUmsatz;
private System.Windows.Forms.TextBox textBox_GesUmsatz;
private System.Windows.Forms.Button button_UmsatzNetto;
private System.Windows.Forms.TextBox textBox_UmsatzNetto;
private System.Windows.Forms.TextBox textBoxFileName;
private System.Windows.Forms.ListBox listBoxOrderID;
private System.Windows.Forms.Button button_SummeSales;
private System.Windows.Forms.Button button_Summe_Bestellung;
private System.Windows.Forms.TextBox textBox_SummeSales;
private System.Windows.Forms.TextBox textBox_Summe_Bestellung;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button button_SalePerProduct;
private System.Windows.Forms.Button button_RechnungProOrder;
private System.Windows.Forms.ListBox listBox_VerkaufProProdukt;
private System.Windows.Forms.ListBox listBox_RechnungProOrder;
private System.Windows.Forms.ListBox listBox_Discount;
private System.Windows.Forms.ListBox listBox_Quantity;
private System.Windows.Forms.ListBox listBox_UnitPrize;
private System.Windows.Forms.ListBox listBoxProductID;
private System.Windows.Forms.TextBox textBox_Header_ProductID;
private System.Windows.Forms.TextBox textBox_Header_UnitPrize;
private System.Windows.Forms.TextBox textBox_Header_Quantity;
private System.Windows.Forms.TextBox textBox_Header_Discount;
}
}

@ -0,0 +1,163 @@
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;
using System.IO;
namespace Übungen_LF6_WinFormanwendung
{
public partial class Klassenarbeit_030517_AlexanderDegen : Form
{
int anzahlDatensätze = 0;
string fileName;
//Datenspeicher
List<OrderDetails> Bestellungen = new List<OrderDetails>();
List<string> VorhandeneOrderIDs = new List<string>();
public Klassenarbeit_030517_AlexanderDegen()
{
InitializeComponent();
}
private void button_ende_Click(object sender, EventArgs e)
{
this.Close();
}
private void CSVLesen_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "CSV-Datei (*.csv)|*.csv|Textdatei (*.txt)|*.txt|Alle Dateien(*.*)|*.*";
if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
fileName = openFileDialog1.FileName;
textBoxFileName.Text = openFileDialog1.FileName;
}
}
private void buttonAnzeige_Click(object sender, EventArgs e)
{
try
{
//Dateileseroutine
StreamReader tr = new StreamReader(fileName);
// Header überlesen
string zeile = tr.ReadLine();
String[] CSVHeader = zeile.Split(';');
//Header Füllen
textBox_Header_OrderID.Text = CSVHeader[0];
textBox_Header_ProductID.Text = CSVHeader[1];
textBox_Header_UnitPrize.Text = CSVHeader[2];
textBox_Header_Quantity.Text = CSVHeader[3];
textBox_Header_Discount.Text = CSVHeader[4];
while (!tr.EndOfStream)
{
zeile = "";
zeile = tr.ReadLine();
string[] CSVREADLINE = zeile.Split(';');
OrderDetails obj = new OrderDetails(CSVREADLINE);
if(!VorhandeneOrderIDs.Contains(obj.ORDERID))
{
VorhandeneOrderIDs.Add(obj.ORDERID);
}
anzahlDatensätze += 1;
Bestellungen.Add(obj);
//Listboxen füllen
listBoxOrderID.Items.Add(CSVREADLINE[0]);
listBoxProductID.Items.Add(CSVREADLINE[1]);
listBox_UnitPrize.Items.Add(CSVREADLINE[2]);
listBox_Quantity.Items.Add(CSVREADLINE[3]);
listBox_Discount.Items.Add(CSVREADLINE[4]);
}
// close the stream
tr.Close();
}
catch (Exception ex)
{
Console.WriteLine("Fehler: {0}", ex.ToString());
}
}
private void button_GesUmsatz_Click(object sender, EventArgs e)
{
double gesUmsatz = 0f;
foreach(OrderDetails obj in Bestellungen)
{
gesUmsatz += Convert.ToDouble(obj.UNITPRIZE) * Convert.ToDouble(obj.QUANTITY);
}
textBox_GesUmsatz.Text = gesUmsatz.ToString();
}
private void button_SalePerProduct_Click(object sender, EventArgs e)
{
}
private void button_RechnungProOrder_Click(object sender, EventArgs e)
{
}
private void button_UmsatzNetto_Click(object sender, EventArgs e)
{
double nettoUmsatz = 0f;
double bruttoUmsatz = 0f;
foreach (OrderDetails obj in Bestellungen)
{
bruttoUmsatz = Convert.ToDouble(obj.UNITPRIZE) * Convert.ToDouble(obj.QUANTITY);
nettoUmsatz += bruttoUmsatz - bruttoUmsatz * Convert.ToDouble(obj.DISCOUNT);
}
nettoUmsatz = Math.Round(nettoUmsatz, 2);
textBox_UmsatzNetto.Text = nettoUmsatz.ToString();
}
private void button_SummeSales_Click(object sender, EventArgs e)
{
int summeSales = 0;
foreach (OrderDetails obj in Bestellungen)
{
summeSales += Convert.ToInt32(obj.QUANTITY);
}
textBox_SummeSales.Text = summeSales.ToString();
}
private void button_Summe_Bestellung_Click(object sender, EventArgs e)
{
int anzahlBestellungen = 0;
foreach (OrderDetails obj in Bestellungen)
{
if(VorhandeneOrderIDs.Contains(obj.ORDERID))
anzahlBestellungen += Convert.ToInt32(obj.QUANTITY);
}
textBox_Summe_Bestellung.Text = anzahlBestellungen.ToString();
}
}
}

@ -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="openFileDialog1.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>48</value>
</metadata>
</root>

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Übungen_LF6_WinFormanwendung
{
class OrderDetails
{
//Objektproperties
public string ORDERID { get; set; }
public string PRODUCTID{ get; set; }
public string UNITPRIZE { get; set; }
public string QUANTITY { get; set; }
public string DISCOUNT { get; set; }
//Standartkonstruktor
public OrderDetails()
{
}
public OrderDetails(string[] CSVDATA)
{
// Einlesen und Erstellen eines Objektes mit CSVDaten
ORDERID = CSVDATA[0];
PRODUCTID = CSVDATA[1];
UNITPRIZE = CSVDATA[2];
QUANTITY = CSVDATA[3];
DISCOUNT = CSVDATA[4];
}
}
}

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Klausur07122016_2", "Klausur07122016_2\Klausur07122016_2.csproj", "{0C70B272-2A60-4EEB-8F18-7AB3C689FC1C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0C70B272-2A60-4EEB-8F18-7AB3C689FC1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0C70B272-2A60-4EEB-8F18-7AB3C689FC1C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0C70B272-2A60-4EEB-8F18-7AB3C689FC1C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0C70B272-2A60-4EEB-8F18-7AB3C689FC1C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,75 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klausur07122016_2
{
class Program
{
static void Main(string[] args)
{
//Aufgabe 2) Messwerte auswerten
//erstellt von Alexander Degen BS IT16
//Deklaration der Variablen
Random zufall = new Random(20161207);
int[] messwerte = new int[1000];
int anz1er = 0;
int anz0er = 0;
int start0erSequenz = 0;
int länge0erSequenz = 0;
int start0erSequenzMax = 0;
int max0erSequenz = 0;
//Header
Console.WriteLine("---Binärmesswertermittler--- \n\n");
//Array-Handling
for (int i = 0; i < messwerte.GetLength(0); i++)
{
//Füllen des Arrays
messwerte[i] = zufall.Next(0, 2);
//Zählen der 1er und 0er
if (messwerte[i] == 1)
anz1er++;
else
anz0er++;
//Sequenz ermitteln
if (messwerte[i] == 0)
{
if (länge0erSequenz == 0)
start0erSequenz = i;
länge0erSequenz++;
if (länge0erSequenz > max0erSequenz)
{
max0erSequenz = länge0erSequenz;
start0erSequenzMax = start0erSequenz;
}
}
else
länge0erSequenz = 0;
}
//Ausgabe
Console.WriteLine("\n Anzahl 0er : " + anz0er);
Console.WriteLine("\n Anzahl 1er : " + anz1er);
Console.WriteLine("\n Beginn der größten 0er Sequenz: " + start0erSequenzMax);
Console.WriteLine("\n Länge der größten 0er Sequenz: " + max0erSequenz);
Console.ReadLine();
}
}
}

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0C70B272-2A60-4EEB-8F18-7AB3C689FC1C}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Klausur07122016_2</RootNamespace>
<AssemblyName>Klausur07122016_2</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

@ -0,0 +1,75 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klausur07122016_2
{
class Program
{
static void Main(string[] args)
{
//Aufgabe 2) Messwerte auswerten
//erstellt von Alexander Degen BS IT16
//Deklaration der Variablen
Random zufall = new Random(20161207);
int[] messwerte = new int[1000];
int anz1er = 0;
int anz0er = 0;
int start0erSequenz = 0;
int länge0erSequenz = 0;
int start0erSequenzMax = 0;
int max0erSequenz = 0;
//Header
Console.WriteLine("---Binärmesswertermittler--- \n\n");
//Array-Handling
for (int i = 0; i < messwerte.GetLength(0); i++)
{
//Füllen des Arrays
messwerte[i] = zufall.Next(0, 2);
//Zählen der 1er und 0er
if (messwerte[i] == 1)
anz1er++;
else
anz0er++;
//Sequenz ermitteln
if (messwerte[i] == 0)
{
if (länge0erSequenz == 0)
start0erSequenz = i;
länge0erSequenz++;
if (länge0erSequenz > max0erSequenz)
{
max0erSequenz = länge0erSequenz;
start0erSequenzMax = start0erSequenz;
}
}
else
länge0erSequenz = 0;
}
//Ausgabe
Console.WriteLine("\n Anzahl 0er : " + anz0er);
Console.WriteLine("\n Anzahl 1er : " + anz1er);
Console.WriteLine("\n Beginn der größten 0er Sequenz: " + start0erSequenzMax);
Console.WriteLine("\n Länge der größten 0er Sequenz: " + max0erSequenz);
Console.ReadLine();
}
}
}

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("Klausur07122016_2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("EUP")]
[assembly: AssemblyProduct("Klausur07122016_2")]
[assembly: AssemblyCopyright("Copyright © EUP 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("0c70b272-2a60-4eeb-8f18-7ab3c689fc1c")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

@ -0,0 +1,6 @@
D:\Visual Studio\Projekte\Klausur07122016_2\Klausur07122016_2\bin\Debug\Klausur07122016_2.exe.config
D:\Visual Studio\Projekte\Klausur07122016_2\Klausur07122016_2\bin\Debug\Klausur07122016_2.exe
D:\Visual Studio\Projekte\Klausur07122016_2\Klausur07122016_2\bin\Debug\Klausur07122016_2.pdb
D:\Visual Studio\Projekte\Klausur07122016_2\Klausur07122016_2\obj\Debug\Klausur07122016_2.csprojResolveAssemblyReference.cache
D:\Visual Studio\Projekte\Klausur07122016_2\Klausur07122016_2\obj\Debug\Klausur07122016_2.exe
D:\Visual Studio\Projekte\Klausur07122016_2\Klausur07122016_2\obj\Debug\Klausur07122016_2.pdb

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Klausur07122016_3", "Klausur07122016_3\Klausur07122016_3.csproj", "{BF19EC06-E8EE-4123-8A63-C4150A7B3293}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BF19EC06-E8EE-4123-8A63-C4150A7B3293}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF19EC06-E8EE-4123-8A63-C4150A7B3293}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF19EC06-E8EE-4123-8A63-C4150A7B3293}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF19EC06-E8EE-4123-8A63-C4150A7B3293}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klausur07122016_3
{
class Program
{
static void Main(string[] args)
{
//Aufgabe 3) Array mit Prüfzigger25
//erstellt von Alexander Degen BS IT16
//Deklaration der Variablen
int[] feld2D = { 37, 3, 68, 25, 10, 49, 55, 22, 9, 27, 27, 69, 34, 85, 13, 73, 0 };
int summefeld2D = 0;
int prüfziffer = 0;
//Header
Console.WriteLine("---Array mit Prüfziffer25(feld2D)--- \n\n");
//Array-Handling
for (int i = 0; i < feld2D.GetLength(0); i++)
{
summefeld2D += feld2D[i];
}
prüfziffer = 100 - (summefeld2D % 100);
feld2D[feld2D.GetLength(0) -1 ] = prüfziffer;
//Ausgabe
Console.Write("\n feld2D : ");
for (int i = 0; i < feld2D.GetLength(0); i++)
Console.Write(feld2D[i]+ " ");
Console.WriteLine("\n Summer der Feldinhalte von feld2D : " +summefeld2D);
Console.WriteLine("\n Prüfziffer: " + prüfziffer);
Console.ReadLine();
}
}
}

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{BF19EC06-E8EE-4123-8A63-C4150A7B3293}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Klausur07122016_3</RootNamespace>
<AssemblyName>Klausur07122016_3</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klausur07122016_3
{
class Program
{
static void Main(string[] args)
{
//Aufgabe 3) Array mit Prüfzigger25
//erstellt von Alexander Degen BS IT16
//Deklaration der Variablen
int[] feld2D = { 37, 3, 68, 25, 10, 49, 55, 22, 9, 27, 27, 69, 34, 85, 13, 73, 0 };
int summefeld2D = 0;
int prüfziffer = 0;
//Header
Console.WriteLine("---Array mit Prüfziffer25(feld2D)--- \n\n");
//Array-Handling
for (int i = 0; i < feld2D.GetLength(0); i++)
{
summefeld2D += feld2D[i];
}
prüfziffer = 100 - (summefeld2D % 100);
feld2D[feld2D.GetLength(0) -1 ] = prüfziffer;
//Ausgabe
Console.Write("\n feld2D : ");
for (int i = 0; i < feld2D.GetLength(0); i++)
Console.Write(feld2D[i]+ " ");
Console.WriteLine("\n Summer der Feldinhalte von feld2D : " +summefeld2D);
Console.WriteLine("\n Prüfziffer: " + prüfziffer);
Console.ReadLine();
}
}
}

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("Klausur07122016_3")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("EUP")]
[assembly: AssemblyProduct("Klausur07122016_3")]
[assembly: AssemblyCopyright("Copyright © EUP 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("bf19ec06-e8ee-4123-8a63-c4150a7b3293")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

@ -0,0 +1,6 @@
D:\Visual Studio\Projekte\Klausur07122016_3\Klausur07122016_3\bin\Debug\Klausur07122016_3.exe.config
D:\Visual Studio\Projekte\Klausur07122016_3\Klausur07122016_3\bin\Debug\Klausur07122016_3.exe
D:\Visual Studio\Projekte\Klausur07122016_3\Klausur07122016_3\bin\Debug\Klausur07122016_3.pdb
D:\Visual Studio\Projekte\Klausur07122016_3\Klausur07122016_3\obj\Debug\Klausur07122016_3.csprojResolveAssemblyReference.cache
D:\Visual Studio\Projekte\Klausur07122016_3\Klausur07122016_3\obj\Debug\Klausur07122016_3.exe
D:\Visual Studio\Projekte\Klausur07122016_3\Klausur07122016_3\obj\Debug\Klausur07122016_3.pdb

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Klausur07122016_AlexDegen", "Klausur07122016_AlexDegen\Klausur07122016_AlexDegen.csproj", "{5E53CE1B-ED1D-450F-8EE3-084E50EBFA8F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5E53CE1B-ED1D-450F-8EE3-084E50EBFA8F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E53CE1B-ED1D-450F-8EE3-084E50EBFA8F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E53CE1B-ED1D-450F-8EE3-084E50EBFA8F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E53CE1B-ED1D-450F-8EE3-084E50EBFA8F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klausur07122016_AlexDegen
{
class Program
{
static void Main(string[] args)
{
//Aufgabe 1) Schuhgröße ermitteln
//erstellt von Alexander Degen BS IT16
//Deklaration der Variablen
double fuslänge = 0.0;
int schuhgrößeUS = 0;
int nichtPassend = 0;
//Eingabe
Console.WriteLine("---Schuhgrößenberechner---");
Console.Write("Geben Sie die Länge Ihres Fußes ein (in cm mit Komma getrennt): ");
fuslänge = Convert.ToDouble(Console.ReadLine());
//Berechnung der Schuhgröße
if (fuslänge > 30.7)
nichtPassend = 2;
else if (fuslänge > 30.0)
schuhgrößeUS = 13;
else if (fuslänge > 29)
schuhgrößeUS = 12;
else if (fuslänge > 28.4)
schuhgrößeUS = 11;
else if (fuslänge > 27.4)
schuhgrößeUS = 10;
else if (fuslänge > 26.7)
schuhgrößeUS = 9;
else if (fuslänge > 25.7)
schuhgrößeUS = 8;
else if (fuslänge > 25)
schuhgrößeUS = 7;
else if (fuslänge > 24)
schuhgrößeUS = 6;
else
nichtPassend = 1;
//Ausgabe
switch (nichtPassend)
{
case 0: Console.WriteLine("\n Ihre Schuhgröße ist(in US Größen): " + schuhgrößeUS); break;
case 1: Console.WriteLine("\n Ihre Füße sind kleiner als die US Größe 6. \n Bitte Konsultieren unsere Spezialanfertigungsabteilung! "); break;
case 2: Console.WriteLine("\n Ihre Füße sind größer als die US Größe 13. \n Bitte Konsultieren unsere Spezialanfertigungsabteilung! "); break;
}
Console.ReadLine();
}
}
}

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5E53CE1B-ED1D-450F-8EE3-084E50EBFA8F}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Klausur07122016_AlexDegen</RootNamespace>
<AssemblyName>Klausur07122016_AlexDegen</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Klausur07122016_AlexDegen
{
class Program
{
static void Main(string[] args)
{
//Aufgabe 1) Schuhgröße ermitteln
//erstellt von Alexander Degen BS IT16
//Deklaration der Variablen
double fuslänge = 0.0;
int schuhgrößeUS = 0;
int nichtPassend = 0;
//Eingabe
Console.WriteLine("---Schuhgrößenberechner---");
Console.Write("Geben Sie die Länge Ihres Fußes ein (in cm mit Komma getrennt): ");
fuslänge = Convert.ToDouble(Console.ReadLine());
//Berechnung der Schuhgröße
if (fuslänge > 30.7)
nichtPassend = 2;
else if (fuslänge > 30.0)
schuhgrößeUS = 13;
else if (fuslänge > 29)
schuhgrößeUS = 12;
else if (fuslänge > 28.4)
schuhgrößeUS = 11;
else if (fuslänge > 27.4)
schuhgrößeUS = 10;
else if (fuslänge > 26.7)
schuhgrößeUS = 9;
else if (fuslänge > 25.7)
schuhgrößeUS = 8;
else if (fuslänge > 25)
schuhgrößeUS = 7;
else if (fuslänge > 24)
schuhgrößeUS = 6;
else
nichtPassend = 1;
//Ausgabe
switch (nichtPassend)
{
case 0: Console.WriteLine("\n Ihre Schuhgröße ist(in US Größen): " + schuhgrößeUS); break;
case 1: Console.WriteLine("\n Ihre Füße sind kleiner als die US Größe 6. \n Bitte Konsultieren unsere Spezialanfertigungsabteilung! "); break;
case 2: Console.WriteLine("\n Ihre Füße sind größer als die US Größe 13. \n Bitte Konsultieren unsere Spezialanfertigungsabteilung! "); break;
}
Console.ReadLine();
}
}
}

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("Klausur07122016_AlexDegen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("EUP")]
[assembly: AssemblyProduct("Klausur07122016_AlexDegen")]
[assembly: AssemblyCopyright("Copyright © EUP 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("5e53ce1b-ed1d-450f-8ee3-084e50ebfa8f")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

@ -0,0 +1,6 @@
D:\Visual Studio\Projekte\Klausur07122016_AlexDegen\Klausur07122016_AlexDegen\bin\Debug\Klausur07122016_AlexDegen.exe.config
D:\Visual Studio\Projekte\Klausur07122016_AlexDegen\Klausur07122016_AlexDegen\bin\Debug\Klausur07122016_AlexDegen.exe
D:\Visual Studio\Projekte\Klausur07122016_AlexDegen\Klausur07122016_AlexDegen\bin\Debug\Klausur07122016_AlexDegen.pdb
D:\Visual Studio\Projekte\Klausur07122016_AlexDegen\Klausur07122016_AlexDegen\obj\Debug\Klausur07122016_AlexDegen.csprojResolveAssemblyReference.cache
D:\Visual Studio\Projekte\Klausur07122016_AlexDegen\Klausur07122016_AlexDegen\obj\Debug\Klausur07122016_AlexDegen.exe
D:\Visual Studio\Projekte\Klausur07122016_AlexDegen\Klausur07122016_AlexDegen\obj\Debug\Klausur07122016_AlexDegen.pdb

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Übungen_LF6_WinFormanwendung", "Übungen_LF6_WinFormanwendung\Übungen_LF6_WinFormanwendung.csproj", "{4CB2049C-D9B2-4636-8780-E5E819E62085}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4CB2049C-D9B2-4636-8780-E5E819E62085}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4CB2049C-D9B2-4636-8780-E5E819E62085}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4CB2049C-D9B2-4636-8780-E5E819E62085}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4CB2049C-D9B2-4636-8780-E5E819E62085}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>

@ -0,0 +1,167 @@
namespace Übungen_LF6_WinFormanwendung
{
partial class ArrayÜbung
{
/// <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.button_ende = new System.Windows.Forms.Button();
this.button_startZufall = new System.Windows.Forms.Button();
this.listBox_Zeile1 = new System.Windows.Forms.ListBox();
this.listBox_Zeile2 = new System.Windows.Forms.ListBox();
this.listBox_Zeile3 = new System.Windows.Forms.ListBox();
this.listBox_Zeile4 = new System.Windows.Forms.ListBox();
this.listBox_Zeile5 = new System.Windows.Forms.ListBox();
this.button_horiPari = new System.Windows.Forms.Button();
this.button_vertiPari = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button_ende
//
this.button_ende.Location = new System.Drawing.Point(610, 461);
this.button_ende.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button_ende.Name = "button_ende";
this.button_ende.Size = new System.Drawing.Size(97, 25);
this.button_ende.TabIndex = 9;
this.button_ende.Text = "Beenden";
this.button_ende.UseVisualStyleBackColor = true;
this.button_ende.Click += new System.EventHandler(this.button_ende_Click);
//
// button_startZufall
//
this.button_startZufall.Location = new System.Drawing.Point(25, 74);
this.button_startZufall.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button_startZufall.Name = "button_startZufall";
this.button_startZufall.Size = new System.Drawing.Size(141, 33);
this.button_startZufall.TabIndex = 11;
this.button_startZufall.Text = "Start Zufall";
this.button_startZufall.UseVisualStyleBackColor = true;
this.button_startZufall.Click += new System.EventHandler(this.button_startZufall_Click);
//
// listBox_Zeile1
//
this.listBox_Zeile1.FormattingEnabled = true;
this.listBox_Zeile1.ItemHeight = 16;
this.listBox_Zeile1.Location = new System.Drawing.Point(272, 74);
this.listBox_Zeile1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.listBox_Zeile1.Name = "listBox_Zeile1";
this.listBox_Zeile1.Size = new System.Drawing.Size(75, 260);
this.listBox_Zeile1.TabIndex = 12;
this.listBox_Zeile1.SelectedIndexChanged += new System.EventHandler(this.listBox_Zeile1_SelectedIndexChanged);
//
// listBox_Zeile2
//
this.listBox_Zeile2.FormattingEnabled = true;
this.listBox_Zeile2.ItemHeight = 16;
this.listBox_Zeile2.Location = new System.Drawing.Point(353, 74);
this.listBox_Zeile2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.listBox_Zeile2.Name = "listBox_Zeile2";
this.listBox_Zeile2.Size = new System.Drawing.Size(75, 260);
this.listBox_Zeile2.TabIndex = 13;
//
// listBox_Zeile3
//
this.listBox_Zeile3.FormattingEnabled = true;
this.listBox_Zeile3.ItemHeight = 16;
this.listBox_Zeile3.Location = new System.Drawing.Point(434, 74);
this.listBox_Zeile3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.listBox_Zeile3.Name = "listBox_Zeile3";
this.listBox_Zeile3.Size = new System.Drawing.Size(75, 260);
this.listBox_Zeile3.TabIndex = 14;
//
// listBox_Zeile4
//
this.listBox_Zeile4.FormattingEnabled = true;
this.listBox_Zeile4.ItemHeight = 16;
this.listBox_Zeile4.Location = new System.Drawing.Point(515, 74);
this.listBox_Zeile4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.listBox_Zeile4.Name = "listBox_Zeile4";
this.listBox_Zeile4.Size = new System.Drawing.Size(75, 260);
this.listBox_Zeile4.TabIndex = 15;
//
// listBox_Zeile5
//
this.listBox_Zeile5.FormattingEnabled = true;
this.listBox_Zeile5.ItemHeight = 16;
this.listBox_Zeile5.Location = new System.Drawing.Point(596, 74);
this.listBox_Zeile5.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.listBox_Zeile5.Name = "listBox_Zeile5";
this.listBox_Zeile5.Size = new System.Drawing.Size(75, 260);
this.listBox_Zeile5.TabIndex = 16;
//
// button_horiPari
//
this.button_horiPari.Location = new System.Drawing.Point(25, 128);
this.button_horiPari.Name = "button_horiPari";
this.button_horiPari.Size = new System.Drawing.Size(202, 45);
this.button_horiPari.TabIndex = 17;
this.button_horiPari.Text = "Paritätscheck(Horizontal)";
this.button_horiPari.UseVisualStyleBackColor = true;
this.button_horiPari.Click += new System.EventHandler(this.button_horiPari_Click);
//
// button_vertiPari
//
this.button_vertiPari.Location = new System.Drawing.Point(25, 196);
this.button_vertiPari.Name = "button_vertiPari";
this.button_vertiPari.Size = new System.Drawing.Size(202, 45);
this.button_vertiPari.TabIndex = 18;
this.button_vertiPari.Text = "Paritätscheck(Vertikal)";
this.button_vertiPari.UseVisualStyleBackColor = true;
this.button_vertiPari.Click += new System.EventHandler(this.button_vertiPari_Click);
//
// ArrayÜbung
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(747, 518);
this.Controls.Add(this.button_vertiPari);
this.Controls.Add(this.button_horiPari);
this.Controls.Add(this.listBox_Zeile5);
this.Controls.Add(this.listBox_Zeile4);
this.Controls.Add(this.listBox_Zeile3);
this.Controls.Add(this.listBox_Zeile2);
this.Controls.Add(this.listBox_Zeile1);
this.Controls.Add(this.button_startZufall);
this.Controls.Add(this.button_ende);
this.Name = "ArrayÜbung";
this.Text = "ArrayÜbung";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button_ende;
private System.Windows.Forms.Button button_startZufall;
private System.Windows.Forms.ListBox listBox_Zeile1;
private System.Windows.Forms.ListBox listBox_Zeile2;
private System.Windows.Forms.ListBox listBox_Zeile3;
private System.Windows.Forms.ListBox listBox_Zeile4;
private System.Windows.Forms.ListBox listBox_Zeile5;
private System.Windows.Forms.Button button_horiPari;
private System.Windows.Forms.Button button_vertiPari;
}
}

@ -0,0 +1,169 @@
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 Übungen_LF6_WinFormanwendung
{
public partial class ArrayÜbung : Form
{
Random zufall = new Random();
bool[,] parität = new bool[5, 5];
int countTrue = 0;
public ArrayÜbung()
{
InitializeComponent();
}
private void button_ende_Click(object sender, EventArgs e)
{
this.Close();
}
private void listBox_RandomArray_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void button_startZufall_Click(object sender, EventArgs e)
{
listBox_Zeile1.Items.Clear();
listBox_Zeile2.Items.Clear();
listBox_Zeile3.Items.Clear();
listBox_Zeile4.Items.Clear();
listBox_Zeile5.Items.Clear();
for (int ersteDim = 0; ersteDim < parität.GetLength(1)-1; ersteDim++)
{
for (int zweiteDim = 0; zweiteDim < parität.GetLength(0)-1; zweiteDim++)
{
if(zweiteDim != 5 && ersteDim != 5 )
parität[ersteDim,zweiteDim] = Convert.ToBoolean(zufall.Next(0,2));
switch (ersteDim)
{
case 0: listBox_Zeile1.Items.Add(parität[ersteDim,zweiteDim]);break;
case 1: listBox_Zeile2.Items.Add(parität[ersteDim, zweiteDim]); break;
case 2: listBox_Zeile3.Items.Add(parität[ersteDim, zweiteDim]); break;
case 3: listBox_Zeile4.Items.Add(parität[ersteDim, zweiteDim]); break;
case 4: listBox_Zeile5.Items.Add(parität[ersteDim, zweiteDim]); break;
}
}
}
}
private void listBox_Zeile1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void button_horiPari_Click(object sender, EventArgs e)
{
for (int zweiteDim = 0; zweiteDim < parität.GetLength(1) - 1; zweiteDim++)
{
countTrue = 0;
for (int ersteDim = 0; ersteDim < parität.GetLength(0) - 1; ersteDim++)
{
if (parität[ersteDim, zweiteDim] == true)
countTrue++;
}
switch (zweiteDim)
{
case 0:
if (countTrue % 2 > 0)
listBox_Zeile1.Items.Add(false);
else
listBox_Zeile1.Items.Add(true);
break;
case 1:
if (countTrue % 2 > 0)
listBox_Zeile2.Items.Add(false);
else
listBox_Zeile2.Items.Add(true);
break;
case 2:
if (countTrue % 2 > 0)
listBox_Zeile3.Items.Add(false);
else
listBox_Zeile3.Items.Add(true);
break;
case 3:
if (countTrue % 2 > 0)
listBox_Zeile4.Items.Add(false);
else
listBox_Zeile4.Items.Add(true);
break;
case 4:
if (countTrue % 2 > 0)
listBox_Zeile5.Items.Add(false);
else
listBox_Zeile5.Items.Add(true);
break;
}
}
}
private void button_vertiPari_Click(object sender, EventArgs e)
{
for (int ersteDim = 0; ersteDim < parität.GetLength(1) - 1; ersteDim++)
{
countTrue = 0;
for (int zweiteDim = 0; zweiteDim < parität.GetLength(0) - 1; zweiteDim++)
{
if (parität[ersteDim, zweiteDim] == true)
countTrue++;
}
switch (ersteDim)
{
case 0:
if (countTrue % 2 > 0)
listBox_Zeile1.Items.Add(false);
else
listBox_Zeile1.Items.Add(true);
break;
case 1:
if (countTrue % 2 > 0)
listBox_Zeile2.Items.Add(false);
else
listBox_Zeile2.Items.Add(true);
break;
case 2:
if (countTrue % 2 > 0)
listBox_Zeile3.Items.Add(false);
else
listBox_Zeile3.Items.Add(true);
break;
case 3:
if (countTrue % 2 > 0)
listBox_Zeile4.Items.Add(false);
else
listBox_Zeile4.Items.Add(true);
break;
case 4:
if (countTrue % 2 > 0)
listBox_Zeile5.Items.Add(false);
else
listBox_Zeile5.Items.Add(true);
break;
}
}
}
}
}

@ -0,0 +1,120 @@
<?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>
</root>

@ -0,0 +1,223 @@
namespace Übungen_LF6_WinFormanwendung
{
partial class BLZChecker
{
/// <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.button_ende = new System.Windows.Forms.Button();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button_suchen_einlesen = new System.Windows.Forms.Button();
this.groupBox_lesen = new System.Windows.Forms.GroupBox();
this.textBox_processed = new System.Windows.Forms.TextBox();
this.textBox_einlesen = new System.Windows.Forms.TextBox();
this.groupBox_blz = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.textBox_blz = new System.Windows.Forms.TextBox();
this.textBox_confirm = new System.Windows.Forms.TextBox();
this.button_prüfen = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.textBox_NameBank = new System.Windows.Forms.TextBox();
this.textBox_Ort = new System.Windows.Forms.TextBox();
this.groupBox_lesen.SuspendLayout();
this.groupBox_blz.SuspendLayout();
this.SuspendLayout();
//
// button_ende
//
this.button_ende.Location = new System.Drawing.Point(325, 387);
this.button_ende.Margin = new System.Windows.Forms.Padding(2);
this.button_ende.Name = "button_ende";
this.button_ende.Size = new System.Drawing.Size(122, 37);
this.button_ende.TabIndex = 12;
this.button_ende.Text = "Beenden";
this.button_ende.UseVisualStyleBackColor = true;
this.button_ende.Click += new System.EventHandler(this.button_ende_Click);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// button_suchen_einlesen
//
this.button_suchen_einlesen.Location = new System.Drawing.Point(302, 94);
this.button_suchen_einlesen.Name = "button_suchen_einlesen";
this.button_suchen_einlesen.Size = new System.Drawing.Size(121, 35);
this.button_suchen_einlesen.TabIndex = 13;
this.button_suchen_einlesen.Text = "Suchen und Einlesen";
this.button_suchen_einlesen.UseVisualStyleBackColor = true;
this.button_suchen_einlesen.Click += new System.EventHandler(this.button_suchen_einlesen_Click);
//
// groupBox_lesen
//
this.groupBox_lesen.Controls.Add(this.textBox_processed);
this.groupBox_lesen.Controls.Add(this.textBox_einlesen);
this.groupBox_lesen.Controls.Add(this.button_suchen_einlesen);
this.groupBox_lesen.Location = new System.Drawing.Point(23, 24);
this.groupBox_lesen.Name = "groupBox_lesen";
this.groupBox_lesen.Size = new System.Drawing.Size(439, 147);
this.groupBox_lesen.TabIndex = 14;
this.groupBox_lesen.TabStop = false;
this.groupBox_lesen.Text = "Daten lesen";
//
// textBox_processed
//
this.textBox_processed.Location = new System.Drawing.Point(7, 57);
this.textBox_processed.Name = "textBox_processed";
this.textBox_processed.ReadOnly = true;
this.textBox_processed.Size = new System.Drawing.Size(416, 20);
this.textBox_processed.TabIndex = 15;
//
// textBox_einlesen
//
this.textBox_einlesen.Location = new System.Drawing.Point(7, 20);
this.textBox_einlesen.Name = "textBox_einlesen";
this.textBox_einlesen.Size = new System.Drawing.Size(416, 20);
this.textBox_einlesen.TabIndex = 14;
//
// groupBox_blz
//
this.groupBox_blz.Controls.Add(this.textBox_Ort);
this.groupBox_blz.Controls.Add(this.textBox_NameBank);
this.groupBox_blz.Controls.Add(this.label3);
this.groupBox_blz.Controls.Add(this.label2);
this.groupBox_blz.Controls.Add(this.button_prüfen);
this.groupBox_blz.Controls.Add(this.textBox_confirm);
this.groupBox_blz.Controls.Add(this.textBox_blz);
this.groupBox_blz.Controls.Add(this.label1);
this.groupBox_blz.Location = new System.Drawing.Point(30, 197);
this.groupBox_blz.Name = "groupBox_blz";
this.groupBox_blz.Size = new System.Drawing.Size(432, 172);
this.groupBox_blz.TabIndex = 15;
this.groupBox_blz.TabStop = false;
this.groupBox_blz.Text = "BLZ Prüfen";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 20);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(86, 13);
this.label1.TabIndex = 0;
this.label1.Text = "zu prüfende BLZ";
//
// textBox_blz
//
this.textBox_blz.Location = new System.Drawing.Point(109, 20);
this.textBox_blz.Name = "textBox_blz";
this.textBox_blz.Size = new System.Drawing.Size(160, 20);
this.textBox_blz.TabIndex = 1;
//
// textBox_confirm
//
this.textBox_confirm.Location = new System.Drawing.Point(295, 19);
this.textBox_confirm.Name = "textBox_confirm";
this.textBox_confirm.ReadOnly = true;
this.textBox_confirm.Size = new System.Drawing.Size(100, 20);
this.textBox_confirm.TabIndex = 2;
//
// button_prüfen
//
this.button_prüfen.Location = new System.Drawing.Point(109, 47);
this.button_prüfen.Name = "button_prüfen";
this.button_prüfen.Size = new System.Drawing.Size(160, 36);
this.button_prüfen.TabIndex = 3;
this.button_prüfen.Text = "prüfen";
this.button_prüfen.UseVisualStyleBackColor = true;
this.button_prüfen.Click += new System.EventHandler(this.button_prüfen_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(10, 93);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(81, 13);
this.label2.TabIndex = 4;
this.label2.Text = "Name der Bank";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(10, 136);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(21, 13);
this.label3.TabIndex = 5;
this.label3.Text = "Ort";
//
// textBox_NameBank
//
this.textBox_NameBank.Location = new System.Drawing.Point(109, 93);
this.textBox_NameBank.Name = "textBox_NameBank";
this.textBox_NameBank.ReadOnly = true;
this.textBox_NameBank.Size = new System.Drawing.Size(286, 20);
this.textBox_NameBank.TabIndex = 6;
//
// textBox_Ort
//
this.textBox_Ort.Location = new System.Drawing.Point(109, 128);
this.textBox_Ort.Name = "textBox_Ort";
this.textBox_Ort.ReadOnly = true;
this.textBox_Ort.Size = new System.Drawing.Size(286, 20);
this.textBox_Ort.TabIndex = 7;
//
// BLZChecker
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(486, 454);
this.Controls.Add(this.groupBox_blz);
this.Controls.Add(this.groupBox_lesen);
this.Controls.Add(this.button_ende);
this.Name = "BLZChecker";
this.Text = "BLZChecker";
this.groupBox_lesen.ResumeLayout(false);
this.groupBox_lesen.PerformLayout();
this.groupBox_blz.ResumeLayout(false);
this.groupBox_blz.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button_ende;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Button button_suchen_einlesen;
private System.Windows.Forms.GroupBox groupBox_lesen;
private System.Windows.Forms.TextBox textBox_processed;
private System.Windows.Forms.TextBox textBox_einlesen;
private System.Windows.Forms.GroupBox groupBox_blz;
private System.Windows.Forms.TextBox textBox_Ort;
private System.Windows.Forms.TextBox textBox_NameBank;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button_prüfen;
private System.Windows.Forms.TextBox textBox_confirm;
private System.Windows.Forms.TextBox textBox_blz;
private System.Windows.Forms.Label label1;
}
}

@ -0,0 +1,109 @@
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;
using System.IO;
using System.Collections;
namespace Übungen_LF6_WinFormanwendung
{
public partial class BLZChecker : Form
{
//Datenspeicher
Dictionary<string, Bank> BANKDATEN= new Dictionary<string,Bank>();
public BLZChecker()
{
InitializeComponent();
}
private void button_ende_Click(object sender, EventArgs e)
{
this.Close();
}
private void button_prüfen_Click(object sender, EventArgs e)
{
//Initialisieren
textBox_confirm.Text = "";
textBox_NameBank.Text = "";
textBox_Ort.Text = "";
Bank tmpBank = new Bank();
if (BANKDATEN.ContainsKey(textBox_blz.Text))
{
BANKDATEN.TryGetValue(textBox_blz.Text, out tmpBank);
textBox_confirm.Text = "OK";
textBox_NameBank.Text = tmpBank.BANKNAME;
textBox_Ort.Text = tmpBank.SITZ;
}
else
{
textBox_confirm.Text = "Nicht enthalten";
}
}
private void button_suchen_einlesen_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "CSV-Datei (*.csv)|*.csv|Textdatei (*.txt)|*.txt|Alle Dateien(*.*)|*.*";
if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
textBox_einlesen.Text = openFileDialog1.FileName;
textBox_processed.Text = einlesen(openFileDialog1.FileName).ToString();
}
}
public int einlesen(string filePath)
{
int anzahlDatensätze = 0;
try
{
//Dateileseroutine
StreamReader tr = new StreamReader(filePath);
// Header überlesen
tr.ReadLine();
while (!tr.EndOfStream)
{
string zeile = tr.ReadLine();
string[] CSVREADLINE = zeile.Split(';');
Bank obj = new Bank(CSVREADLINE);
//Wenn Key bereits vorhanden dann wird übersprungen ansonsten neuer eintrag in der Datenbank
if (!BANKDATEN.ContainsKey(obj.BLZ))
{
anzahlDatensätze += 1;
//Console.WriteLine(obj.BLZ);
BANKDATEN.Add(obj.BLZ, obj);
}
}
// close the stream
tr.Close();
}
catch (Exception e)
{
Console.WriteLine("Fehler: {0}", e.ToString());
}
return anzahlDatensätze;
}
}
}

@ -0,0 +1,123 @@
<?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="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Übungen_LF6_WinFormanwendung
{
class Bank
{
//Objektproperties
public string BLZ { get; set; }
public string BANKNAME { get; set; }
public string SITZ { get; set; }
private string PLZ { get; set; }
private string MERKMAL { get; set; }
private string KURZNAME { get; set; }
private string PAN { get; set; }
private string BIC { get; set; }
private string PRUEFZIFFER { get; set; }
private string DATENSATZNR { get; set; }
private string KENNZEICHENAENDERUNG { get; set; }
private string BLZLOESCHUNG { get; set; }
private string NACHFOLGEBLZ { get; set; }
//Standartkonstruktor
public Bank()
{
}
public Bank(string[] CSVDATA)
{
// Einlesen und Erstellen eines Objektes mit CSVDaten
BLZ = CSVDATA[0];
MERKMAL = CSVDATA[1];
BANKNAME = CSVDATA[2];
PLZ = CSVDATA[3];
SITZ = CSVDATA[4];
KURZNAME = CSVDATA[5];
PAN = CSVDATA[6];
BIC = CSVDATA[7];
PRUEFZIFFER = CSVDATA[8];
DATENSATZNR = CSVDATA[9];
KENNZEICHENAENDERUNG = CSVDATA[10];
BLZLOESCHUNG = CSVDATA[11];
NACHFOLGEBLZ = CSVDATA[12];
}
}
}

@ -0,0 +1,174 @@
namespace Übungen_LF6_WinFormanwendung
{
partial class BinarySlicer
{
/// <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.button_ende = new System.Windows.Forms.Button();
this.listBox_OutputArray = new System.Windows.Forms.ListBox();
this.button_Slice = new System.Windows.Forms.Button();
this.button_Prev = new System.Windows.Forms.Button();
this.button_Next = new System.Windows.Forms.Button();
this.textBox_currSlice = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.textBox_gesSlice = new System.Windows.Forms.TextBox();
this.textBox_InputArray = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// button_ende
//
this.button_ende.Location = new System.Drawing.Point(674, 201);
this.button_ende.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button_ende.Name = "button_ende";
this.button_ende.Size = new System.Drawing.Size(97, 25);
this.button_ende.TabIndex = 9;
this.button_ende.Text = "Beenden";
this.button_ende.UseVisualStyleBackColor = true;
this.button_ende.Click += new System.EventHandler(this.button_ende_Click);
//
// listBox_OutputArray
//
this.listBox_OutputArray.Font = new System.Drawing.Font("Microsoft Sans Serif", 64F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.listBox_OutputArray.FormattingEnabled = true;
this.listBox_OutputArray.ItemHeight = 120;
this.listBox_OutputArray.Location = new System.Drawing.Point(12, 238);
this.listBox_OutputArray.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.listBox_OutputArray.Name = "listBox_OutputArray";
this.listBox_OutputArray.Size = new System.Drawing.Size(759, 124);
this.listBox_OutputArray.TabIndex = 11;
//
// button_Slice
//
this.button_Slice.Location = new System.Drawing.Point(12, 203);
this.button_Slice.Name = "button_Slice";
this.button_Slice.Size = new System.Drawing.Size(105, 23);
this.button_Slice.TabIndex = 12;
this.button_Slice.Text = "Slice";
this.button_Slice.UseVisualStyleBackColor = true;
this.button_Slice.Click += new System.EventHandler(this.button_Slice_Click);
//
// button_Prev
//
this.button_Prev.Location = new System.Drawing.Point(138, 203);
this.button_Prev.Name = "button_Prev";
this.button_Prev.Size = new System.Drawing.Size(105, 23);
this.button_Prev.TabIndex = 13;
this.button_Prev.Text = "Prev Piece";
this.button_Prev.UseVisualStyleBackColor = true;
this.button_Prev.Click += new System.EventHandler(this.button_Prev_Click);
//
// button_Next
//
this.button_Next.Location = new System.Drawing.Point(249, 203);
this.button_Next.Name = "button_Next";
this.button_Next.Size = new System.Drawing.Size(105, 23);
this.button_Next.TabIndex = 14;
this.button_Next.Text = "Next Piece";
this.button_Next.UseVisualStyleBackColor = true;
this.button_Next.Click += new System.EventHandler(this.button_Next_Click);
//
// textBox_currSlice
//
this.textBox_currSlice.Location = new System.Drawing.Point(469, 202);
this.textBox_currSlice.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox_currSlice.Name = "textBox_currSlice";
this.textBox_currSlice.ReadOnly = true;
this.textBox_currSlice.Size = new System.Drawing.Size(93, 22);
this.textBox_currSlice.TabIndex = 15;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(369, 203);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(98, 17);
this.label1.TabIndex = 16;
this.label1.Text = "Num of Slices:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(568, 204);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(12, 17);
this.label2.TabIndex = 17;
this.label2.Text = "/";
//
// textBox_gesSlice
//
this.textBox_gesSlice.Location = new System.Drawing.Point(583, 203);
this.textBox_gesSlice.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBox_gesSlice.Name = "textBox_gesSlice";
this.textBox_gesSlice.ReadOnly = true;
this.textBox_gesSlice.Size = new System.Drawing.Size(85, 22);
this.textBox_gesSlice.TabIndex = 18;
//
// textBox_InputArray
//
this.textBox_InputArray.Location = new System.Drawing.Point(12, 12);
this.textBox_InputArray.Multiline = true;
this.textBox_InputArray.Name = "textBox_InputArray";
this.textBox_InputArray.Size = new System.Drawing.Size(758, 184);
this.textBox_InputArray.TabIndex = 19;
//
// BinarySlicer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(783, 456);
this.Controls.Add(this.textBox_InputArray);
this.Controls.Add(this.textBox_gesSlice);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox_currSlice);
this.Controls.Add(this.button_Next);
this.Controls.Add(this.button_Prev);
this.Controls.Add(this.button_Slice);
this.Controls.Add(this.listBox_OutputArray);
this.Controls.Add(this.button_ende);
this.Name = "BinarySlicer";
this.Text = "BinarySlicer";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button_ende;
private System.Windows.Forms.ListBox listBox_OutputArray;
private System.Windows.Forms.Button button_Slice;
private System.Windows.Forms.Button button_Prev;
private System.Windows.Forms.Button button_Next;
private System.Windows.Forms.TextBox textBox_currSlice;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox_gesSlice;
private System.Windows.Forms.TextBox textBox_InputArray;
}
}

@ -0,0 +1,78 @@
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 Übungen_LF6_WinFormanwendung
{
public partial class BinarySlicer : Form
{
string[] binaryInput = new string[1000];
int checkAscii = -1;
int curSlices = 1;
int gesSlices = 0;
public BinarySlicer()
{
InitializeComponent();
}
private void button_ende_Click(object sender, EventArgs e)
{
this.Close();
}
private void button_Slice_Click(object sender, EventArgs e)
{
//listBox_InputArray.Items.Clear();
for (int nums = 1; nums <= textBox_InputArray.Text.Length; nums++)
{
checkAscii = nums % 8;
if (checkAscii == 0)
{
gesSlices++;
textBox_InputArray.Select(nums - 8, 8);
binaryInput[gesSlices] = textBox_InputArray.SelectedText;
}
}
textBox_currSlice.Text = Convert.ToString(curSlices);
textBox_gesSlice.Text = Convert.ToString(gesSlices);
listBox_OutputArray.Items.Clear();
listBox_OutputArray.Items.Add(binaryInput[curSlices]);
}
private void button_Prev_Click(object sender, EventArgs e)
{
if (curSlices > 1)
{
curSlices--;
textBox_currSlice.Text = Convert.ToString(curSlices);
listBox_OutputArray.Items.Clear();
listBox_OutputArray.Items.Add(binaryInput[curSlices]);
}
}
private void button_Next_Click(object sender, EventArgs e)
{
if (curSlices < gesSlices)
{
curSlices++;
textBox_currSlice.Text = Convert.ToString(curSlices);
listBox_OutputArray.Items.Clear();
listBox_OutputArray.Items.Add(binaryInput[curSlices]);
}
}
}
}

@ -0,0 +1,120 @@
<?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>
</root>

@ -0,0 +1,61 @@
namespace Übungen_LF6_WinFormanwendung
{
partial class BruchZahlBerechner
{
/// <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.button_ende = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button_ende
//
this.button_ende.Location = new System.Drawing.Point(500, 312);
this.button_ende.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button_ende.Name = "button_ende";
this.button_ende.Size = new System.Drawing.Size(97, 25);
this.button_ende.TabIndex = 11;
this.button_ende.Text = "Beenden";
this.button_ende.UseVisualStyleBackColor = true;
this.button_ende.Click += new System.EventHandler(this.button_ende_Click);
//
// BruchZahlBerechner
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(609, 348);
this.Controls.Add(this.button_ende);
this.Name = "BruchZahlBerechner";
this.Text = "BruchZahlBerechner";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button_ende;
}
}

@ -0,0 +1,25 @@
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 Übungen_LF6_WinFormanwendung
{
public partial class BruchZahlBerechner : Form
{
public BruchZahlBerechner()
{
InitializeComponent();
}
private void button_ende_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

@ -0,0 +1,120 @@
<?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>
</root>

@ -0,0 +1,134 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Übungen_LF6_WinFormanwendung
{
class Bruchzahl : IComparable
{
public int nenner {
get
{
return this.nenner;
}
set
{
if (value == 0)
throw new DivideByZeroException();
else
this.nenner = value;
}
}
public int zaehler { get; set; }
public Bruchzahl()
{
nenner = 1;
zaehler = 1;
}
public Bruchzahl(int z, int n)
{
nenner = n;
zaehler = z;
}
public double dezWert()
{
double z = zaehler;
double n = nenner;
return z / n;
}
/*
public void add(Bruchzahl b)
{
}
*/
public void gibZaehlerNenner(out int z, out int n)
{
z = zaehler;
n = nenner;
}
public override string ToString()
{
return zaehler +" / " + nenner;
}
public Bruchzahl kuerzen()
{
int ggtNenner = ggT(zaehler, nenner);
Bruchzahl ergebnis = new Bruchzahl();
ergebnis.zaehler /= ggtNenner;
ergebnis.nenner /= ggtNenner;
return ergebnis;
}
public int ggT(int z, int n)
{
if (z == 0 || n == 0)
throw new DivideByZeroException();
int rest = 0;
while (n > 0)
{
rest = z % n;
z = n;
n = rest;
}
return z;
}
public int CompareTo(object obj)
{
Bruchzahl objBruch = (Bruchzahl)obj;
if (objBruch == null)
return 1;
double objDouble = objBruch.dezWert();
double thisDouble = this.dezWert();
return thisDouble.CompareTo(objDouble);
}
public static Bruchzahl operator +(Bruchzahl bruch1, Bruchzahl bruch2)
{
Bruchzahl ergebnis = new Bruchzahl();
ergebnis.zaehler = bruch1.zaehler * bruch2.zaehler + bruch2.zaehler * bruch1.nenner;
ergebnis.nenner = bruch1.nenner * bruch2.nenner;
return ergebnis;
}
public static Bruchzahl operator -(Bruchzahl bruch1, Bruchzahl bruch2)
{
Bruchzahl ergebnis = new Bruchzahl();
ergebnis.zaehler = bruch1.zaehler * bruch2.zaehler - bruch2.zaehler * bruch1.nenner;
ergebnis.nenner = bruch1.nenner * bruch2.nenner;
return ergebnis;
}
public static Bruchzahl operator *(Bruchzahl bruch1, Bruchzahl bruch2)
{
Bruchzahl ergebnis = new Bruchzahl();
ergebnis.zaehler = bruch1.zaehler * bruch2.zaehler ;
ergebnis.nenner = bruch1.nenner * bruch2.nenner;
return ergebnis;
}
public static Bruchzahl operator /(Bruchzahl bruch1, Bruchzahl bruch2)
{
if (bruch2.zaehler == 0)
throw new DivideByZeroException();
Bruchzahl ergebnis = new Bruchzahl();
ergebnis.zaehler = bruch1.zaehler * bruch2.nenner ;
ergebnis.nenner = bruch1.nenner * bruch2.zaehler;
return ergebnis;
}
}
}

@ -0,0 +1,116 @@
namespace Übungen_LF6_WinFormanwendung
{
partial class DatenHandlingÜbung
{
/// <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.button_ende = new System.Windows.Forms.Button();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button_dateiÖffnen = new System.Windows.Forms.Button();
this.textBoxFileName = new System.Windows.Forms.TextBox();
this.buttonAnzeige = new System.Windows.Forms.Button();
this.listBoxDaten = new System.Windows.Forms.ListBox();
this.SuspendLayout();
//
// button_ende
//
this.button_ende.Location = new System.Drawing.Point(524, 265);
this.button_ende.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.button_ende.Name = "button_ende";
this.button_ende.Size = new System.Drawing.Size(97, 25);
this.button_ende.TabIndex = 10;
this.button_ende.Text = "Beenden";
this.button_ende.UseVisualStyleBackColor = true;
this.button_ende.Click += new System.EventHandler(this.button_ende_Click);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// button_dateiÖffnen
//
this.button_dateiÖffnen.Location = new System.Drawing.Point(55, 31);
this.button_dateiÖffnen.Name = "button_dateiÖffnen";
this.button_dateiÖffnen.Size = new System.Drawing.Size(163, 35);
this.button_dateiÖffnen.TabIndex = 11;
this.button_dateiÖffnen.Text = "Browse";
this.button_dateiÖffnen.UseVisualStyleBackColor = true;
this.button_dateiÖffnen.Click += new System.EventHandler(this.button_dateiÖffnen_Click);
//
// textBoxFileName
//
this.textBoxFileName.Location = new System.Drawing.Point(261, 37);
this.textBoxFileName.Name = "textBoxFileName";
this.textBoxFileName.Size = new System.Drawing.Size(360, 22);
this.textBoxFileName.TabIndex = 12;
//
// buttonAnzeige
//
this.buttonAnzeige.Location = new System.Drawing.Point(55, 83);
this.buttonAnzeige.Name = "buttonAnzeige";
this.buttonAnzeige.Size = new System.Drawing.Size(163, 32);
this.buttonAnzeige.TabIndex = 13;
this.buttonAnzeige.Text = "Zeige Daten";
this.buttonAnzeige.UseVisualStyleBackColor = true;
this.buttonAnzeige.Click += new System.EventHandler(this.buttonAnzeige_Click);
//
// listBoxDaten
//
this.listBoxDaten.FormattingEnabled = true;
this.listBoxDaten.ItemHeight = 16;
this.listBoxDaten.Location = new System.Drawing.Point(261, 83);
this.listBoxDaten.Name = "listBoxDaten";
this.listBoxDaten.Size = new System.Drawing.Size(360, 164);
this.listBoxDaten.TabIndex = 14;
//
// DatenHandlingÜbung
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(653, 313);
this.Controls.Add(this.listBoxDaten);
this.Controls.Add(this.buttonAnzeige);
this.Controls.Add(this.textBoxFileName);
this.Controls.Add(this.button_dateiÖffnen);
this.Controls.Add(this.button_ende);
this.Name = "DatenHandlingÜbung";
this.Text = "DatenHandlingÜbung";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button_ende;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Button button_dateiÖffnen;
private System.Windows.Forms.TextBox textBoxFileName;
private System.Windows.Forms.Button buttonAnzeige;
private System.Windows.Forms.ListBox listBoxDaten;
}
}

@ -0,0 +1,51 @@
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;
using System.IO;
namespace Übungen_LF6_WinFormanwendung
{
public partial class DatenHandlingÜbung : Form
{
private String[] strWerte;
private int[] intWerte;
public DatenHandlingÜbung()
{
InitializeComponent();
}
private void button_ende_Click(object sender, EventArgs e)
{
this.Close();
}
private void button_dateiÖffnen_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "CSV-Datei (*.csv)|*.csv|Textdatei (*.txt)|*.txt|Alle Dateien(*.*)|*.*";
if(openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
textBoxFileName.Text = openFileDialog1.FileName;
strWerte = File.ReadAllLines(openFileDialog1.FileName);
}
}
private void buttonAnzeige_Click(object sender, EventArgs e)
{
foreach (string zeile in strWerte)
{
listBoxDaten.Items.Add(zeile);
}
}
}
}

@ -0,0 +1,123 @@
<?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="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

@ -0,0 +1,227 @@
namespace Übungen_LF6_WinFormanwendung
{
partial class HauptMenu
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <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
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
this.button_Start1 = new System.Windows.Forms.Button();
this.buttonArrayDim = new System.Windows.Forms.Button();
this.button_recht = new System.Windows.Forms.Button();
this.button_binarySlicer = new System.Windows.Forms.Button();
this.button_PrePaid = new System.Windows.Forms.Button();
this.button_IBANRechner = new System.Windows.Forms.Button();
this.SaalBuchen = new System.Windows.Forms.Button();
this.button_BruchZahl = new System.Windows.Forms.Button();
this.button_datenHandling = new System.Windows.Forms.Button();
this.button_csv = new System.Windows.Forms.Button();
this.button_waehrungsumrechnung = new System.Windows.Forms.Button();
this.button_queue = new System.Windows.Forms.Button();
this.button_hash = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button_Start1
//
this.button_Start1.Location = new System.Drawing.Point(9, 8);
this.button_Start1.Margin = new System.Windows.Forms.Padding(2);
this.button_Start1.Name = "button_Start1";
this.button_Start1.Size = new System.Drawing.Size(114, 22);
this.button_Start1.TabIndex = 0;
this.button_Start1.Text = "TestProgramm";
this.button_Start1.UseVisualStyleBackColor = true;
this.button_Start1.Click += new System.EventHandler(this.button_TestProgramm_Click);
//
// buttonArrayDim
//
this.buttonArrayDim.Location = new System.Drawing.Point(9, 46);
this.buttonArrayDim.Margin = new System.Windows.Forms.Padding(2);
this.buttonArrayDim.Name = "buttonArrayDim";
this.buttonArrayDim.Size = new System.Drawing.Size(113, 24);
this.buttonArrayDim.TabIndex = 1;
this.buttonArrayDim.Text = "Arrayübungen";
this.buttonArrayDim.UseVisualStyleBackColor = true;
this.buttonArrayDim.Click += new System.EventHandler(this.buttonArrayDim_Click);
//
// button_recht
//
this.button_recht.Location = new System.Drawing.Point(9, 84);
this.button_recht.Margin = new System.Windows.Forms.Padding(2);
this.button_recht.Name = "button_recht";
this.button_recht.Size = new System.Drawing.Size(112, 27);
this.button_recht.TabIndex = 2;
this.button_recht.Text = "Rechteck-Übung";
this.button_recht.UseVisualStyleBackColor = true;
this.button_recht.Click += new System.EventHandler(this.button_recht_Click);
//
// button_binarySlicer
//
this.button_binarySlicer.Location = new System.Drawing.Point(9, 124);
this.button_binarySlicer.Margin = new System.Windows.Forms.Padding(2);
this.button_binarySlicer.Name = "button_binarySlicer";
this.button_binarySlicer.Size = new System.Drawing.Size(114, 32);
this.button_binarySlicer.TabIndex = 3;
this.button_binarySlicer.Text = "BinarySlicer";
this.button_binarySlicer.UseVisualStyleBackColor = true;
this.button_binarySlicer.Click += new System.EventHandler(this.button_binarySlicer_Click);
//
// button_PrePaid
//
this.button_PrePaid.Location = new System.Drawing.Point(9, 161);
this.button_PrePaid.Margin = new System.Windows.Forms.Padding(2);
this.button_PrePaid.Name = "button_PrePaid";
this.button_PrePaid.Size = new System.Drawing.Size(114, 32);
this.button_PrePaid.TabIndex = 4;
this.button_PrePaid.Text = "PrePaid";
this.button_PrePaid.UseVisualStyleBackColor = true;
//
// button_IBANRechner
//
this.button_IBANRechner.Location = new System.Drawing.Point(9, 197);
this.button_IBANRechner.Margin = new System.Windows.Forms.Padding(2);
this.button_IBANRechner.Name = "button_IBANRechner";
this.button_IBANRechner.Size = new System.Drawing.Size(114, 32);
this.button_IBANRechner.TabIndex = 5;
this.button_IBANRechner.Text = "IBANBerechner";
this.button_IBANRechner.UseVisualStyleBackColor = true;
this.button_IBANRechner.Click += new System.EventHandler(this.button_IBANRechner_Click);
//
// SaalBuchen
//
this.SaalBuchen.Location = new System.Drawing.Point(362, 8);
this.SaalBuchen.Margin = new System.Windows.Forms.Padding(2);
this.SaalBuchen.Name = "SaalBuchen";
this.SaalBuchen.Size = new System.Drawing.Size(140, 22);
this.SaalBuchen.TabIndex = 6;
this.SaalBuchen.Text = "SaalBuchungstool";
this.SaalBuchen.UseVisualStyleBackColor = true;
this.SaalBuchen.Click += new System.EventHandler(this.SaalBuchen_Click);
//
// button_BruchZahl
//
this.button_BruchZahl.Location = new System.Drawing.Point(362, 46);
this.button_BruchZahl.Margin = new System.Windows.Forms.Padding(2);
this.button_BruchZahl.Name = "button_BruchZahl";
this.button_BruchZahl.Size = new System.Drawing.Size(140, 24);
this.button_BruchZahl.TabIndex = 7;
this.button_BruchZahl.Text = "BruchzahlBerechner";
this.button_BruchZahl.UseVisualStyleBackColor = true;
this.button_BruchZahl.Click += new System.EventHandler(this.button_BruchZahl_Click);
//
// button_datenHandling
//
this.button_datenHandling.Location = new System.Drawing.Point(362, 84);
this.button_datenHandling.Margin = new System.Windows.Forms.Padding(2);
this.button_datenHandling.Name = "button_datenHandling";
this.button_datenHandling.Size = new System.Drawing.Size(140, 27);
this.button_datenHandling.TabIndex = 8;
this.button_datenHandling.Text = "Datenhandling Übung";
this.button_datenHandling.UseVisualStyleBackColor = true;
this.button_datenHandling.Click += new System.EventHandler(this.button_datenHandling_Click);
//
// button_csv
//
this.button_csv.Location = new System.Drawing.Point(362, 124);
this.button_csv.Name = "button_csv";
this.button_csv.Size = new System.Drawing.Size(137, 32);
this.button_csv.TabIndex = 9;
this.button_csv.Text = "CSV-Übung";
this.button_csv.UseVisualStyleBackColor = true;
this.button_csv.Click += new System.EventHandler(this.button_csv_Click);
//
// button_waehrungsumrechnung
//
this.button_waehrungsumrechnung.Location = new System.Drawing.Point(362, 163);
this.button_waehrungsumrechnung.Name = "button_waehrungsumrechnung";
this.button_waehrungsumrechnung.Size = new System.Drawing.Size(137, 30);
this.button_waehrungsumrechnung.TabIndex = 10;
this.button_waehrungsumrechnung.Text = "Waehrungsumrechnung";
this.button_waehrungsumrechnung.UseVisualStyleBackColor = true;
this.button_waehrungsumrechnung.Click += new System.EventHandler(this.button_waehrungsumrechnung_Click);
//
// button_queue
//
this.button_queue.Location = new System.Drawing.Point(362, 200);
this.button_queue.Name = "button_queue";
this.button_queue.Size = new System.Drawing.Size(137, 29);
this.button_queue.TabIndex = 11;
this.button_queue.Text = "Queue Übung";
this.button_queue.UseVisualStyleBackColor = true;
this.button_queue.Click += new System.EventHandler(this.button_queue_Click);
//
// button_hash
//
this.button_hash.Location = new System.Drawing.Point(362, 236);
this.button_hash.Name = "button_hash";
this.button_hash.Size = new System.Drawing.Size(137, 33);
this.button_hash.TabIndex = 12;
this.button_hash.Text = "Hashtable Übung";
this.button_hash.UseVisualStyleBackColor = true;
this.button_hash.Click += new System.EventHandler(this.button_hash_Click);
//
// HauptMenu
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(511, 346);
this.Controls.Add(this.button_hash);
this.Controls.Add(this.button_queue);
this.Controls.Add(this.button_waehrungsumrechnung);
this.Controls.Add(this.button_csv);
this.Controls.Add(this.button_datenHandling);
this.Controls.Add(this.button_BruchZahl);
this.Controls.Add(this.SaalBuchen);
this.Controls.Add(this.button_IBANRechner);
this.Controls.Add(this.button_PrePaid);
this.Controls.Add(this.button_binarySlicer);
this.Controls.Add(this.button_recht);
this.Controls.Add(this.buttonArrayDim);
this.Controls.Add(this.button_Start1);
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "HauptMenu";
this.Text = "Hauptmenü";
this.Load += new System.EventHandler(this.HauptMenu_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button button_Start1;
private System.Windows.Forms.Button buttonArrayDim;
private System.Windows.Forms.Button button_recht;
private System.Windows.Forms.Button button_binarySlicer;
private System.Windows.Forms.Button button_PrePaid;
private System.Windows.Forms.Button button_IBANRechner;
private System.Windows.Forms.Button SaalBuchen;
private System.Windows.Forms.Button button_BruchZahl;
private System.Windows.Forms.Button button_datenHandling;
private System.Windows.Forms.Button button_csv;
private System.Windows.Forms.Button button_waehrungsumrechnung;
private System.Windows.Forms.Button button_queue;
private System.Windows.Forms.Button button_hash;
}
}

@ -0,0 +1,102 @@
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 Übungen_LF6_WinFormanwendung
{
public partial class HauptMenu : Form
{
public HauptMenu()
{
InitializeComponent();
}
private void HauptMenu_Load(object sender, EventArgs e)
{
}
private void button_TestProgramm_Click(object sender, EventArgs e)
{
TestProgramm testForm = new TestProgramm();
testForm.Show();
}
private void buttonArrayDim_Click(object sender, EventArgs e)
{
ArrayÜbung testForm = new ArrayÜbung();
testForm.Show();
}
private void button_recht_Click(object sender, EventArgs e)
{
}
private void button_binarySlicer_Click(object sender, EventArgs e)
{
BinarySlicer binarySlicer = new BinarySlicer();
binarySlicer.Show();
}
private void button_PrePaid_Click(object sender, EventArgs e)
{
PrePaid_Übung prepaid = new PrePaid_Übung();
prepaid.Show();
}
private void button_IBANRechner_Click(object sender, EventArgs e)
{
IBANBerechner iban = new IBANBerechner();
iban.Show();
}
private void SaalBuchen_Click(object sender, EventArgs e)
{
SaalBuchen saal = new SaalBuchen();
saal.Show();
}
private void button_BruchZahl_Click(object sender, EventArgs e)
{
BruchZahlBerechner bzb = new BruchZahlBerechner();
bzb.Show();
}
private void button_datenHandling_Click(object sender, EventArgs e)
{
DatenHandlingÜbung dh = new DatenHandlingÜbung();
dh.Show();
}
private void button_csv_Click(object sender, EventArgs e)
{
csv_Übung csv = new csv_Übung();
csv.Show();
}
private void button_waehrungsumrechnung_Click(object sender, EventArgs e)
{
Waehrungsumrechnung wae = new Waehrungsumrechnung();
wae.Show();
}
private void button_queue_Click(object sender, EventArgs e)
{
QueueÜbung qu = new QueueÜbung();
qu.Show();
}
private void button_hash_Click(object sender, EventArgs e)
{
BLZChecker blzchk = new BLZChecker();
blzchk.Show();
}
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save