void DisposeBypassForm() { BypassForm f = ScenarioForm["BypassForm"] as BypassForm; if (f != null) { f.Dispose(); } }
//! region for initial parameter form before construct #region SetupForm void SetupBypassForm() { this.DisposeBypassForm(); BypassForm F = new BypassForm(parent, this); MainForm mainForm = ScenarioForm["MainForm"] as MainForm; this.museid = mainForm.MuseId; F.UserID = this.museid; ScenarioForm.Remove("BypassForm"); ScenarioForm.Add("BypassForm", F); }
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(); }