void DisposeBypassForm() { BypassForm f = ScenarioForm["BypassForm"] as BypassForm; if (f != null) { f.Dispose(); } }
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(); }