示例#1
0
            public LabelControl(IRes myRes, LabelControlSpecies myDesignMode,
                                SandBoxBase myFather = null, bool useAnimation = true)
            {
                MyRes         = myRes.MyRes;
                CurrentStatus = 1;
                DesigningMode = myDesignMode;
                UseAnimation  = useAnimation;
                if (myFather != null)
                {
                    Father = myFather;
                }
                switch (DesigningMode)
                {
                case LabelControlSpecies.CharacterNameInDialog:
                    DesigningForCharacterNameInDialog();
                    break;

                case LabelControlSpecies.LinkStart:
                    DesigningForLinkStart();
                    break;

                case LabelControlSpecies.ElementBackGround:
                    DesigningForElementBackGround();
                    break;

                default:     //None

                    break;
                }
            }
示例#2
0
            //-------------------------------------
            //-------------------------------------
            //-------------------------------------
            public ItemBarLabelControl(IRes myRes, LabelControlSpecies myMode,
                                       SandBoxBase myFather = null) : base(myRes,
                                                                           myMode, myFather, false)
            {
                switch (DesigningMode)
                {
                case LabelControlSpecies.ItemBarLabel:
                    InitializeComponent();
                    break;

                default:
                    break;
                }
            }
示例#3
0
            //------------------------------------------
            //------------------------------------------
            //------------------------------------------
            //------------------------------------------
            public MapSigner(IRes myRes,
                             LabelControlSpecies myDesigningMode = LabelControlSpecies.MapSigner) :
                base(myRes, myDesigningMode)
            {
                switch (DesigningMode)
                {
                case LabelControlSpecies.MapSigner:
                    Initialize_ForMapSigner_Component();
                    break;

                case LabelControlSpecies.MapDisplayer:
                    Initialize_ForMapDisplayer_Component();
                    break;
                }
            }