I have an application that uses a message box like this:
MessageBox.Show("The session has been closed :\r\n - By " + body + "\r\n - At " + DateTime.Now + "\r\n\r\n Click OK to continue", "Session remotely closed",
MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
If the name of my replacement Form is SessionClosed.cs, how should this be called as a *modal* dialog to replace the current method:
private void CloseSession(string body, bool sql)
MessageBox.Show ( ..) // old method
SessionClosed // method here
I need to be sure how to create the object instance and make it modal.