private void openSelector(string type) { if (Application.OpenForms["PathSelect"] is PathSelect) { return; } PathSelect pathSelect = new PathSelect(type); pathSelect.Owner = this.Owner; pathSelect.FormClosed += new FormClosedEventHandler(this.pathSelect_FormClosed); ((Control)pathSelect).Show(); }
private void openSelector(string type) { if (Application.OpenForms["PathSelect"] is PathSelect) return; PathSelect pathSelect = new PathSelect(type); pathSelect.Owner = this.Owner; pathSelect.FormClosed += new FormClosedEventHandler(this.pathSelect_FormClosed); ((Control) pathSelect).Show(); }