Esempio n. 1
0
        //-------------------------------------------------
        #region Constructor's Region
        /// <summary>
        /// use this constructore for fun :|
        /// </summary>
        /// <param name="BackingForm">
        /// this parameter should be <see cref="ThereIsConstants.Forming.GameClient"/>
        /// </param>
        public HallSandBox(GameControls.PageControl BackingForm,
                           SandBoxBase myFrontSandBoxValue, HallSandBoxMode myMode,
                           bool useAnimationValue = true,
                           EventHandler eventAfterEndingTheAnimation = null) :
            base(BackingForm, new CustomDesign() {
            Dont_Set_Location = false,
            Dont_Set_Size     = false,
            SandBoxOpacity    = 0.7,
            SandBoxBackColor  = Color.DarkGray,
        })
        {
            MyFrontSandBox = myFrontSandBoxValue;
            Mode           = SandBoxMode.HallSandBoxMode;
            HallMode       = myMode;
            UseAnimation   = useAnimationValue;
            EventAfterEndingTheAnimation = eventAfterEndingTheAnimation;
            switch (HallMode)
            {
            case HallSandBoxMode.HallOfBookStoryMode:
                Initialize_HallOfStory_Component();
                break;

            case HallSandBoxMode.HallOfElementMode:
                Initialize_HallOfElements_Component();
                break;

            default:
                break;
            }

            Show();
        }
Esempio n. 2
0
        public HallSandBox(GameControls.PageControl BackingForm, SandBoxBase myFrontSandBoxValue,
                           HallSandBoxMode myMode,
                           CustomDesign myCustomDesignValue,
                           bool useAnimationValue = true, EventHandler eventAfterEndingTheAnimation = null) :
            base(BackingForm, myCustomDesignValue)
        {
            MyFrontSandBox = myFrontSandBoxValue;
            Mode           = SandBoxMode.HallSandBoxMode;
            HallMode       = myMode;
            UseAnimation   = useAnimationValue;
            CustomDesign   = myCustomDesignValue;
            EventAfterEndingTheAnimation = eventAfterEndingTheAnimation;
            switch (HallMode)
            {
            case HallSandBoxMode.HallOfBookStoryMode:
                Initialize_HallOfStory_Component();
                break;

            case HallSandBoxMode.HallOfElementMode:
                Initialize_HallOfElements_Component();
                break;

            default:
                break;
            }

            Show();
        }