package WindowsApplication1; import System.Collections.Generic.*; import System.Data.*; import System.Drawing.*; import System.ComponentModel.*; import System.Windows.Forms.*; import java.io.*; import java.net.*; /** * Zusammenfassungsbeschreibung für Form1. */ public class Form1 extends System.Windows.Forms.Form { public static void oneSec() { try { Thread.currentThread().sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } public static void manySec(long s) { try { Thread.currentThread().sleep(s * 1000); } catch (InterruptedException e) { e.printStackTrace(); } } private Button button1; private TextBox user; private TextBox pass; private TextBox chan; private TextBox textBox1; /** * Erforderliche Designervariable */ private System.ComponentModel.IContainer components; public Form1() { // // Erforderlich für die Windows Form-Designerunterstützung // InitializeComponent(); // // TODO: Konstruktorcode hinter dem InitializeComponent-Aufruf hinzufügen // } #region Vom Windows Form-Designer generierter Code /** * Verwendete Ressourcen bereinigen */ protected void Dispose(boolean disposing) { if (disposing) { if (components != null) { components.Dispose(); } } super.Dispose(disposing); } /** * Erforderliche Methode für die Designerunterstützung. * Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. */ private void InitializeComponent() { this.button1 = new System.Windows.Forms.Button(); this.user = new System.Windows.Forms.TextBox(); this.pass = new System.Windows.Forms.TextBox(); this.chan = new System.Windows.Forms.TextBox(); this.textBox1 = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // // button1 // this.button1.set_Location(new System.Drawing.Point(23, 176)); this.button1.set_Name("button1"); this.button1.set_Size(new System.Drawing.Size(75, 23)); this.button1.set_TabIndex(0); this.button1.set_Text("einloggen"); this.button1.set_UseVisualStyleBackColor(true); this.button1.add_Click(new System.EventHandler(this.button1_Click)); // // user // this.user.set_Location(new System.Drawing.Point(12, 12)); this.user.set_Name("user"); this.user.set_Size(new System.Drawing.Size(100, 20)); this.user.set_TabIndex(1); this.user.set_Text("USER"); // // pass // this.pass.set_Location(new System.Drawing.Point(12, 38)); this.pass.set_Name("pass"); this.pass.set_Size(new System.Drawing.Size(100, 20)); this.pass.set_TabIndex(2); this.pass.set_Text("PASS"); // // chan // this.chan.set_Location(new System.Drawing.Point(12, 64)); this.chan.set_Name("chan"); this.chan.set_Size(new System.Drawing.Size(100, 20)); this.chan.set_TabIndex(3); this.chan.set_Text("CHANNEL"); // // textBox1 // this.textBox1.set_Location(new System.Drawing.Point(160, 32)); this.textBox1.set_Multiline(true); this.textBox1.set_Name("textBox1"); this.textBox1.set_ReadOnly(true); this.textBox1.set_Size(new System.Drawing.Size(382, 315)); this.textBox1.set_TabIndex(4); // // Form1 // this.set_AutoScaleDimensions(new System.Drawing.SizeF(6F, 13F)); this.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode.Font); this.set_ClientSize(new System.Drawing.Size(665, 412)); this.get_Controls().Add(this.chan); this.get_Controls().Add(this.textBox1); this.get_Controls().Add(this.pass); this.get_Controls().Add(this.user); this.get_Controls().Add(this.button1); this.set_Name("Form1"); this.set_Text("Form1"); this.add_Load(new System.EventHandler(this.Form1_Load)); this.ResumeLayout(false); this.PerformLayout(); } #endregion public void Saignsbot(Object sender, System.EventArgs e) throws IOException { **blub** } private void button1_Click(Object sender, System.EventArgs e) { //hier soll Saignsbot starten } }