示例#1
0
        //! region to dispose used form
        #region DisposeForm

        void DisposeRegisterForm()
        {
            RegisterForm f = this.ScenarioForm["RegisterForm"] as RegisterForm;

            if (f != null)
            {
                f.Dispose();
            }
        }
示例#2
0
        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);
        }
示例#3
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();
        }