protected override void DestroyHandle() { Destroy(); base.DestroyHandle(); instance = null; }
private void buttonServer_Click( object sender, EventArgs e ) { if( ServerForm.instance == null ) { ServerForm form = new ServerForm(); form.Show(); } else ServerForm.instance.Activate(); }
private void buttonServer_Click(object sender, EventArgs e) { if (ServerForm.instance == null) { ServerForm form = new ServerForm(); form.Show(); } else { ServerForm.instance.Activate(); } }
// public ServerForm() { instance = this; InitializeComponent(); }