public void RegisterForm(string name, HlyssForm form) { if (!_forms.ContainsKey(name)) { form.Application = this; _forms.Add(name, form); } }
public void RegisterAndShow(HlyssForm form) { string id = Guid.NewGuid().ToString(); form.Application = this; _forms.Add(id, form); form.Closed += (_) => { _forms.Remove(id); }; GetForm(id).Show(); }