コード例 #1
0
 private void ReturnToMenuButton_Click(object sender, EventArgs e)
 {
     //Returns to the menu
     formclosing = true;
     this.Close();
     ClosedPage?.Invoke(this, EventArgs.Empty);
 }
コード例 #2
0
 private void ReturnButton_Click(object sender, EventArgs e)
 {
     //Closes the form by clicking return button
     formclosing = true;
     this.Close();
     ClosedPage?.Invoke(this, EventArgs.Empty);
 }
コード例 #3
0
 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
 }
コード例 #4
0
 public void Close()
 {
     ClosedPage?.Invoke(this, null);
 }