private void button5_Click(object sender, EventArgs e) { this.Hide(); var pathForm = new OpenRW.Path(10, this.StartPosition); pathForm.Closed += (s, args) => Application.Exit(); }
private void button3_Click(object sender, EventArgs e) { this.Hide(); var pathForm = new OpenRW.Path(2, this.StartPosition); pathForm.Closed += (s, args) => Application.Exit(); }
//Some buttons private void button1_Click(object sender, EventArgs e) { //Hides the current form, DOES NOT close it. this.Hide(); //Opens the Path form with an argument var pathForm = new OpenRW.Path(0, this.StartPosition); //When the new form closes, it quits the app pathForm.Closed += (s, args) => Application.Exit(); }