public void Show() { if (_ui == null) { _ui = new AssemblageBotsUi(this); _ui.Closed += _ui_Closed; _ui.Show(); } else { _ui.Activate(); } }
private void _ui_Closed(object sender, EventArgs e) { _ui = null; }