/// <summary> /// Closes the form and connects to the server /// </summary> /// <param name="server"></param> private void Connect(Server server) { ServerConnect?.Invoke(this, new ServerConnectEventArgs() { Server = server }); DialogResult = DialogResult.OK; }
private void InvokeServerConnectEvent() { ServerConnect?.Invoke(this, EventArgs.Empty); }