Пример #1
0
        void DisposeBypassForm()
        {
            BypassForm f = ScenarioForm["BypassForm"] as BypassForm;

            if (f != null)
            {
                f.Dispose();
            }
        }
Пример #2
0
        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();
        }