//! region to dispose used form #region DisposeForm void DisposeRegisterForm() { RegisterForm f = this.ScenarioForm["RegisterForm"] as RegisterForm; if (f != null) { f.Dispose(); } }
void SetupRegisterForm() { this.DisposeRegisterForm(); DashboardForm passwordFrom = parent as DashboardForm; RegisterForm RF = new RegisterForm(parent, this); RF.Password = this.password; ScenarioForm.Remove("RegisterForm"); ScenarioForm.Add("RegisterForm", RF); }
void Cleanup() { BypassForm BF = ScenarioForm["BypassForm"] as BypassForm; RegisterForm RF = ScenarioForm["RegisterForm"] as RegisterForm; if (BF != null) { BF.Dispose(); } if (RF != null) { RF.Dispose(); } ScenarioForm.Clear(); }