Ejemplo n.º 1
0
        //----------------------------------------------
        public FirstStoryLineSandBox(GameControls.PageControl CurrentForm, bool useAnimation = false,
                                     SandBoxMode myMode = SandBoxMode.FirstStoryLineMode) :
            base(CurrentForm, new CustomDesign()
        {
            SandBoxOpacity                     = 1,
            CustomControlCollection            = null,
            SandBoxBackGroundImage             = null,
            SandBoxButtons                     = null,
            Dont_Set_Location                  = true,
            Dont_Set_Size                      = true,
            ShowInTaskBar                      = false,
            SandBoxKeyPreview                  = false,
            SupportTransParentBackGroundColors = true
        })
        {
            UseAnimation = useAnimation;
            Mode         = myMode;
            switch (Mode)
            {
            case SandBoxMode.FirstStoryLineMode:
                Initialize_BookStory_Component();
                break;

            case SandBoxMode.ElementSelectionMode:
                Initialize_ElementSelection_Component();
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        public NoInternetConnectionSandBox(SandBoxMode myMode,
                                           GameControls.PageControl theUnderForm) : base(theUnderForm)
        {
            Mode           = myMode;
            ClosedForRetry = false;
            TopMost        = true;
            switch (Mode)
            {
            case SandBoxMode.NoConnectionMode:
                Initialize_NoConnection_Component();
                break;

            case SandBoxMode.UserAlreadyExistMode:
                Initialize_UserAlreadyExist_Component();
                break;

            case SandBoxMode.UserNameOrPasswordWrongMode:
                Initialize_UNOrPassWrong_Component();
                break;

            case SandBoxMode.ConnectionClosedMode:
                Initialize_ConnectionClosed_Component();
                break;

            case SandBoxMode.Cant_LoadYourProfileMode:
                Initialize_CantLoadYrProf_Component();
                break;

            case SandBoxMode.LoggedOutSuccessfullyMode:
                Initialize_LogedOutSuccessfully_Component();
                break;

            case SandBoxMode.LogoutWarningMode:
                Initialize_LogOutWarning_Component();
                break;

            case SandBoxMode.CloseWarningMode:
                Initialize_ClosingSandBox_Component();
                break;
            }
        }