private void ReturnToMenuButton_Click(object sender, EventArgs e) { //Returns to the menu formclosing = true; this.Close(); ClosedPage?.Invoke(this, EventArgs.Empty); }
private void ReturnButton_Click(object sender, EventArgs e) { //Closes the form by clicking return button formclosing = true; this.Close(); ClosedPage?.Invoke(this, EventArgs.Empty); }
private void ReturnButton_Click(object sender, EventArgs e) { formclosing = true; //When the return button is pressed the form closing is set to true and the code is triggered in order to close this form and open the previous form this.Close(); ClosedPage?.Invoke(this, EventArgs.Empty); //Shows the previous form }
public void Close() { ClosedPage?.Invoke(this, null); }