private void Button1_Click(object sender, EventArgs e) { if (debug == 1) { debug = 0; Launch2.Debug(1); Launch2.l2.Focus(); } else { debug = 1; Launch2.Debug(0); } }
public Launch2() { try { InitializeComponent(); label1.Text = "Build: " + System.IO.File.ReadAllText(@"version.txt") + ", Connected to " + Classes.Definitions.ServerName + " Build Server"; this.Icon = new Icon("Resources/favicon.ico"); F_Init(); l2 = this; SwitchWindows(Properties.Settings.Default.fav_men); } catch (Exception errormessage) { SphubCore.ErrorWindow ew = new SphubCore.ErrorWindow(errormessage); ew.Show(); } }