Наследование: BaseUniqueObject
Пример #1
0
 public CardShopItem(BasePanel prt, int x, int y, int width, int height)
 {
     parent = prt;
     this.x = x;
     this.y = y;
     this.width = width;
     this.height = height;
 }
Пример #2
0
    public static void Close(string name)
    {
        if (!panels.ContainsKey(name))
        {
            return;
        }

        BasePanel panel = panels[name];

        panel.OnClose();
        panels.Remove(name);
        GameObject.Destroy(panel.skin);
        Component.Destroy(panel);
    }
Пример #3
0
    // ================================================================
    //  Doers
    // ================================================================
    public void ShowPanel(BasePanel _panel)
    {
        panel_appSettings.SetVisibility(false);
        panel_editSet.SetVisibility(false);
        panel_searchTerms.SetVisibility(false);
        panel_chooseSet.SetVisibility(false);
        panel_studyFlashcards.SetVisibility(false);

        _panel.SetVisibility(true);
        bottomTabBar.UpdateTabHighlighted(_panel.MyPanelType);

        // Save this was the last panel opened!
        SaveStorage.SetInt(SaveKeys.LastPanelOpen, _panel.MyPanelType.GetHashCode());
    }
Пример #4
0
    public BasePanel PushPanel(UIPanelType panelType)
    {
        if (panelStack.Count > 0)
        {
            BasePanel topPanel = panelStack.Peek();
            topPanel.OnPause();
        }
        BasePanel panel = GetPanel(panelType);

        panel.OnResume();
        panelStack.Push(panel);
        currentPanelType = panelType;
        return(panel);
    }
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            #region Controls
            var anchorForBtn = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
            var defVisStlye        = true;
            var defButtonPadding   = new Padding(3, 10, 0, 0);
            var defButtonSize      = new Size(120, 30);
            var defTextBoxSize     = new Size(194, 20);
            var defCheckBoxPadding = new Padding(5, 25, 0, 0);

            passwordTxtBox     = new BaseTextBox(_res, "passwordTxtBox", 7, new Point(3, 111), defTextBoxSize);
            usernameTxtBox     = new BaseTextBox(_res, "usernameTxtBox", 5, new Point(3, 90), defTextBoxSize);
            emailAddConfTxtBox = new BaseTextBox(_res, "emailAddConfTxtBox", 12, new Point(3, 113), defTextBoxSize);
            emailAddTxtBox     = new BaseTextBox(_res, "emailAddTxtBox", 10, new Point(6, 33), defTextBoxSize);
            gpgTxtBox          = new BaseTextBox(_res, "gpgTxtBox", 9, new Point(3, 191), new Size(194, 20));
            usernameLbl        = new BaseLabel(_res, "usernameLbl", 4, new Point(3, 10), new Size(81, 18), "Username", autoSize: true);
            gpgLbl             = new BaseLabel(_res, "gpgLbl", 8, new Point(5, 170), new Size(73, 18), "PGP Key:", autoSize: true);
            passwordLbl        = new BaseLabel(_res, "passwordLbl", 6, new Point(3, 90), new Size(79, 18), "Password:"******"emailAddConfLbl", 11, new Point(2, 92), new Size(65, 18), "Confirm:", autoSize: true);
            emailAddLbl        = new BaseLabel(_res, "emailAddLbl", 10, new Point(3, 12), new Size(147, 18), "Your E-Mail Address:", autoSize: true);
            helpBtn            = new BaseButton(_res, "helpBtn", 15, visStyleBackColor: defVisStlye, point: new Point(494, 113), margin: defButtonPadding, size: new Size(70, 30), text: "Help!");
            setEmailBtn        = new BaseButton(_res, "setEmailBtn", 14, visStyleBackColor: defVisStlye, point: new Point(494, 24), margin: defButtonPadding, size: new Size(70, 29), text: "Set Email");
            reloadStngsBtn     = new BaseButton(_res, "reloadStngsBtn", 5, visStyleBackColor: defVisStlye, point: new Point(3, 90), margin: defButtonPadding, size: defButtonSize, text: "Reload Settings");
            saveStngsBtn       = new BaseButton(_res, "saveStngsBtn", 6, visStyleBackColor: defVisStlye, point: new Point(3, 50), margin: defButtonPadding, size: defButtonSize, text: "Save Settings");
            loadStngsBtn       = new BaseButton(_res, "loadStngsBtn", 7, visStyleBackColor: defVisStlye, point: new Point(3, 10), margin: defButtonPadding, size: defButtonSize, text: "Load Settings", anchor: anchorForBtn);
            setUserinfoBtn     = new BaseButton(_res, "setUserinfoBtn", 15, visStyleBackColor: defVisStlye, point: new Point(114, 251), margin: defButtonPadding, size: new Size(83, 29), text: "Set User Info");
            useRecommBtn       = new BaseButton(_res, "useRecommBtn", 8, visStyleBackColor: defVisStlye, point: new Point(3, 130), margin: defButtonPadding, size: defButtonSize, text: "Use Recommended");
            addUserBtn         = new BaseButton(_res, "addUserBtn", 9, visStyleBackColor: defVisStlye, point: new Point(3, 170), margin: defButtonPadding, size: defButtonSize, text: "Add User");
            removeUserBtn      = new BaseButton(_res, "removeUserBtn", 10, visStyleBackColor: defVisStlye, point: new Point(3, 210), margin: defButtonPadding, size: defButtonSize, text: "Remove User");
            wipeAllnRemoveBtn  = new BaseButton(_res, "wipeAllnRemoveBtn", 11, visStyleBackColor: defVisStlye, point: new Point(3, 250), margin: defButtonPadding, size: defButtonSize, text: "Wipe Everything");
            autoLoginCheck     = new BaseCheckBox(_res, "autoLoginCheck", 1, defVisStlye, "Log In Automatically", new Point(5, 25), new Size(135, 19), margin: defCheckBoxPadding);
            doNotSaveCheck     = new BaseCheckBox(_res, "doNotSaveCheck", 2, defVisStlye, "Do Not Save Data", new Point(5, 69), new Size(123, 19), margin: defCheckBoxPadding);
            wipeDataQuitCheck  = new BaseCheckBox(_res, "wipeDataQuitCheck", visStyleBackColor: defVisStlye, text: "Wipe Data on Quit", point: new Point(5, 113), size: new Size(125, 19), margin: defCheckBoxPadding);
            resetSysDefsCheck  = new BaseCheckBox(_res, "resetSysDefsCheck", 3, defVisStlye, "Reset To Sys Defaults on Quit", new Point(5, 157), new Size(187, 19), margin: defCheckBoxPadding);
            alwaysPGPCheck     = new BaseCheckBox(_res, "alwaysPGPCheck", 4, defVisStlye, "Always Use PGP", new Point(5, 201), new Size(116, 19), margin: defCheckBoxPadding);
            sendRepEmailCheck  = new BaseCheckBox(_res, "sendRepEmailCheck", 5, defVisStlye, "Send Reports to Email", new Point(5, 245), new Size(149, 19), margin: defCheckBoxPadding);
            forcePGPEmailCheck = new BaseCheckBox(_res, "forcePGPEmailCheck", 13, defVisStlye, "Force PGP in Email", new Point(277, 72), new Size(133, 19), margin: defCheckBoxPadding);
            #endregion

            #region Panels
            emailPnl          = new BasePanel(_res, "emailPnl", 13, new Control[] { helpBtn, setEmailBtn, forcePGPEmailCheck, emailAddConfTxtBox, emailAddConfLbl, emailAddTxtBox, emailAddLbl }, new Point(12, 342), new Size(573, 168));
            userinfoPnl       = new BasePanel(_res, "userinfoPnl", 1, new Control[] { setUserinfoBtn, gpgTxtBox, gpgLbl, passwordTxtBox, passwordLbl, usernameTxtBox, usernameLbl }, new Point(255, 12), new Size(207, 300));
            settingsBtnsPnl   = new BaseFlowPanel(_res, "settingsBtnsPnl", 6, new Control[] { loadStngsBtn, saveStngsBtn, reloadStngsBtn, useRecommBtn, addUserBtn, removeUserBtn, wipeAllnRemoveBtn }, new Point(453, 12), new Size(132, 300), BorderStyle.Fixed3D, anchor: AnchorStyles.Top);
            checkBoxLayoutPnl = new BaseFlowPanel(_res, "checkBoxLayoutPnl", 12, new Control[] { autoLoginCheck, doNotSaveCheck, wipeDataQuitCheck, resetSysDefsCheck, alwaysPGPCheck, sendRepEmailCheck }, new Point(12, 12), new Size(192, 300), BorderStyle.Fixed3D, anchor: AnchorStyles.Top);
            #endregion

            SuspendLayout();
            InitSettings();
        }
Пример #6
0
    /// <summary>
    /// 将指定界面入栈
    /// </summary>
    public void PushPanel(UIPanelType type)
    {
        //若栈内有其他界面,把栈顶的界面暂停
        if (panelStack.Count > 0)
        {
            BasePanel topPanel = panelStack.Peek();
            topPanel.OnPause();
        }
        //将界面入栈
        BasePanel panel = GetPanel(type);

        panelStack.Push(panel);
        panel.OnEnter();
    }
        private void PrevStep(int skip)
        {
            int index = Panels.IndexOf(CurrentPanel);

            if (index >= skip)
            {
                CurrentPanel.Visible = false;
                CurrentPanel         = Panels[index - skip];
            }

            RemoveTemporaryPanels();
            CurrentPanel.Visible = true;
            UpdateButtonState();
        }
Пример #8
0
        BasePanel GetPanelFromManager(UIComponentManager manager)
        {
            BasePanel panel = manager.GetComponent <BasePanel>();

            if (panel == null)
            {
                PopUpWindow popup = manager.GetComponent <PopUpWindow>();
                if (popup != null)
                {
                    return(popup.GetParentPanel());
                }
            }
            return(panel);
        }
Пример #9
0
    public BasePanel PushPanel(UIPanelType panelType)
    {
        if (panelStack.Count > 0)
        {
            BasePanel topPanel = panelStack.Peek();
            topPanel.OnPause();
        }
        BasePanel panel = GetPanel(panelType);

        panel.gameObject.SetActive(true);
        panelStack.Push(panel);
        currentPanelType = panelType;
        return(panel);
    }
Пример #10
0
    /// <summary>
    /// 发送消息
    /// </summary>
    /// <param name="type"> 消息类型</param>
    /// <param name="par1"> 第一个参数</param>
    /// <param name="par2"> 第二个参数</param>
    public void SendMessage(UIPanelType type, object par1 = null, object par2 = null)
    {
        BasePanel panel = UIManager.Instance.GetPanel(type);

        Debug.Log("message panel=" + panel);
        if (panel != null)
        {
            panel.ReceiveMessage(type, par1, par2);
        }
        else
        {
            throw new System.Exception("Not found Current Pannel");
        }
    }
Пример #11
0
    /// <summary>
    /// 关闭所有面板
    /// </summary>
    public void CloseAllPanel()
    {
        if (panelStack == null)
        {
            return;
        }

        do
        {
            //从栈中取出并移除
            BasePanel topPanel = panelStack.Pop();
            topPanel.OnExit();
        } while (panelStack.Count > 0);
    }
Пример #12
0
    public static void UnHide(string name)
    {
        if (!panels.ContainsKey(name))
        {
            return;
        }
        BasePanel panel = panels[name];

        if (panel.skin.activeSelf)
        {
            return;
        }
        panel.skin.SetActive(true);
    }
Пример #13
0
 override protected void OnButtonPressed()
 {
     if (m_Manager)
     {
         BasePanel panel = m_Manager.GetPanelForPopUps();
         // If we haven't requested visuals, show the popup.
         if (!App.Instance.RequestingAudioReactiveMode)
         {
             panel.CreatePopUp(m_Command, m_CommandParam, -1, m_PopupText);
             ResetState();
         }
         App.Instance.ToggleAudioReactiveBrushesRequest();
     }
 }
 private bool SelectCompnentMouseUpTC(WFNew.TabButtonContainerItem ribbonTabButtonContainerItem, Point point)
 {
     if (ribbonTabButtonContainerItem == null || !ribbonTabButtonContainerItem.Visible)
     {
         return(false);
     }
     //
     foreach (WFNew.BaseItem one in ribbonTabButtonContainerItem.BaseItems)
     {
         WFNew.TabButtonItem tabButtonItem = one as WFNew.TabButtonItem;
         if (tabButtonItem == null)
         {
             continue;
         }
         if (tabButtonItem.DesignMouseClickRectangleContainsEx(point))
         {
             ISelectionService pSelectionService = GetService(typeof(ISelectionService)) as ISelectionService;
             if (pSelectionService != null)
             {
                 this.m_Item2 = tabButtonItem;
                 if (ribbonTabButtonContainerItem.BaseItems.ExchangeItem(this.m_Item1, this.m_Item2))
                 {
                     WFNew.TabButtonItem tabButton = this.m_Item1 as WFNew.TabButtonItem;
                     if (tabButton != null)
                     {
                         BasePanel basePanel = tabButton.pTabPageItem as BasePanel;
                         if (basePanel != null)
                         {
                             pSelectionService.SetSelectedComponents(new Component[] { basePanel as Component }, SelectionTypes.Primary);
                             this.m_DockPanel.Refresh();
                         }
                     }
                     return(true);
                 }
                 else
                 {
                     BasePanel basePanel = tabButtonItem.pTabPageItem as BasePanel;
                     if (basePanel != null)
                     {
                         pSelectionService.SetSelectedComponents(new Component[] { basePanel as Component }, SelectionTypes.Primary);
                         this.m_DockPanel.Refresh();
                     }
                     return(true);
                 }
             }
         }
     }
     //
     return(false);
 }
Пример #15
0
    public static bool IsHide(string name)
    {
        if (!panels.ContainsKey(name))
        {
            return(false);
        }
        BasePanel panel = panels[name];

        if (!panel.skin.activeSelf)
        {
            return(false);
        }
        return(true);
    }
Пример #16
0
    //패널을 등록하는 메소드
    public static bool RegistPanel(Type PanelClassType, BasePanel basePanel)
    {
        if (Panels.ContainsKey(PanelClassType))
        {
            Debug.LogError("RegistPanel error, Already exist Type! PanelClassType = " + PanelClassType.ToString());
            return(false);
        }

        Debug.Log("RegistPanel Called! Type = " + PanelClassType.ToString() + ", basePanel = " + basePanel.name);

        //각각의 Panel 창은 유일해야한다.
        Panels.Add(PanelClassType, basePanel);
        return(true);
    }
Пример #17
0
 // Public
 public void SetParam(ItemCell itemCell, BasePanel rootPanel)
 {
     base.SetParam(itemCell, rootPanel);
     imageInnerIcon.sprite = Resources.Load <Sprite>("Icons/" + itemCell.item.iconName);
     if (itemCell.count > 1)
     {
         imageCount.gameObject.SetActive(true);
         textCount.text = itemCell.count.ToString();
     }
     else
     {
         imageCount.gameObject.SetActive(false);
     }
 }
Пример #18
0
 private void Update()
 {
     if (udList != null)
     {
         LoadRoomItem(udList);
         udList = null;
     }
     if (ud1 != null && ud2 != null)
     {
         BasePanel panel = uiMng.PushPanel(UIPanelType.Room);
         (panel as RoomPanel).SetAllPlayerResSync(ud1, ud2);
         ud1 = null; ud2 = null;
     }
 }
Пример #19
0
    //向特定面板发送广播
    public bool SendBroadInfoForOne <T>(UIPanelType uIPanelType, ENUM_MSG_TYPE mSG_TYPE, T info)
    {
        BasePanel panel = panelDict.TryGet(uIPanelType);

        if (panel != null)
        {
            panel.GetBroadInfo(mSG_TYPE, info);
            return(true);
        }
        else
        {
            return(false);
        }
    }
Пример #20
0
        public void SendMessageToComponents(UIComponent.ComponentMessage type, int param)
        {
            // TODO : Remove the direct calls to popups and panels.  They shouldn't
            // be required to store page state information.
            PopUpWindow parentPopUp = GetComponent <PopUpWindow>();

            if (parentPopUp)
            {
                switch (type)
                {
                case UIComponent.ComponentMessage.NextPage: parentPopUp.AdvancePage(1); break;

                case UIComponent.ComponentMessage.PrevPage: parentPopUp.AdvancePage(-1); break;

                case UIComponent.ComponentMessage.GotoPage: parentPopUp.GotoPage(param); break;

                case UIComponent.ComponentMessage.ClosePopup:
                    parentPopUp.RequestClose(bForceClose: true); break;
                }
            }
            else
            {
                BasePanel parentPanel = GetComponent <BasePanel>();
                if (parentPanel)
                {
                    switch (type)
                    {
                    case UIComponent.ComponentMessage.NextPage: parentPanel.AdvancePage(1); break;

                    case UIComponent.ComponentMessage.PrevPage: parentPanel.AdvancePage(-1); break;

                    case UIComponent.ComponentMessage.GotoPage: parentPanel.GotoPage(param); break;
                    }
                }
                else
                {
                    UIComponent uiComponent = GetComponent <UIComponent>();
                    if (uiComponent)
                    {
                        uiComponent.ReceiveMessage(type, param);
                    }
                }
            }

            for (int i = 0; i < m_UIComponents.Count; ++i)
            {
                m_UIComponents[i].ReceiveMessage(type, param);
            }
        }
Пример #21
0
    private void SwitchFullSubPanel(string name, object tagetSubPanelName)
    {
        string subPanelName = (string)tagetSubPanelName;

        if (CurPanel != null)
        {
            string curPanelName = CurPanel.PanelName;

            if (curPanelName.Equals(subPanelName))
            {
                Debug.Log("FullPanel.SwitchFullSubPanel 新切换panel与当前panel相同,不切换");
                return;
            }
            else
            {
                Debug.Log("ullPanel.SwitchFullSubPanel 新切换panel与当前panel不同");
                CurPanel.gameObject.SetActive(false);
            }
        }


        switch (subPanelName)
        {
        case Default.FULL_SUB_PANEL_KB:
            CurPanel = _FullSubKBPanel;
            break;

        case Default.FULL_SUB_PANEL_NUM:
            CurPanel = _FullSubNumPanel;
            break;

        case Default.FULL_SUB_PANEL_CODE:
            CurPanel = _FullSubCodePanel;
            break;

        case Default.FULL_SUB_PANEL_UNITY:
            CurPanel = _FullSubUnityPanel;
            break;

        case Default.FULL_SUB_PANEL_VS:
            CurPanel = _FullSubVSPanel;
            break;
        }

        if (null != CurPanel)
        {
            CurPanel.gameObject.SetActive(true);
        }
    }
Пример #22
0
        override public void CalculateReticleCollision(Ray castRay, ref Vector3 pos, ref Vector3 forward)
        {
            RaycastHit rHitInfo;

            for (int i = 0; i < m_Icons.Length; ++i)
            {
                if (BasePanel.DoesRayHitCollider(castRay, m_Icons[i].m_IconScript.GetCollider(), out rHitInfo))
                {
                    pos = rHitInfo.point;
                    return;
                }
            }

            base.CalculateReticleCollision(castRay, ref pos, ref forward);
        }
Пример #23
0
    public void PushPanel(UIPanelType panelType)
    {
        if (PanelStack.Count != 0)
        {
            PanelStack.Peek().OnPause();
        }
        BasePanel panel = GetPanel(panelType);

        if (panel != null)
        {
            panel.Panel = panel.gameObject;
            PanelStack.Push(panel);
            panel.OnEnter();
        }
    }
Пример #24
0
    /// <summary>
    /// UI入栈操作,显示第一个面板
    /// </summary>
    /// <param name="nextPanel">要显示的面板</param>
    public void Push(BasePanel nextPanel)
    {
        if (stackPanel.Count > 0)
        {
            panel = stackPanel.Peek();
            panel.OnPause();
        }
        stackPanel.Push(nextPanel);
        GameObject panelGo = uiManager.GetSingleUI(nextPanel.UIType);

        nextPanel.Initalize(new UITool(panelGo));
        nextPanel.Initalize(this);
        nextPanel.Initalize(uiManager);
        nextPanel.OnEnter();
    }
Пример #25
0
 /// <summary>
 /// 记录关闭的界面
 /// </summary>
 /// <param name="panel"></param>
 public static void RecordClosePanel(BasePanel panel)
 {
     if (dictOpenedPanel.Contains(panel))
     {
         dictOpenedPanel.Remove(panel);
     }
     dictOpenedPanel.Sort((a, b) =>
     {
         return(a.transform.GetSiblingIndex() - b.transform.GetSiblingIndex());
     });
     //for (int i = 0; i < dictOpenedPanel.Count; i++)
     //{
     //    dictOpenedPanel[i].transform.localPosition = Vector3.back * (i * 2000);
     //}
 }
Пример #26
0
    public BasePanel GetPanel(UIPanelType panelType)
    {
        BasePanel panel = PanelDict.TryGet(panelType);

        if (panel == null)
        {
            string    path        = uiPathDict.TryGet(panelType);
            BasePanel panelPrefab = Resources.Load <BasePanel>(path);
            panel            = GameObject.Instantiate(panelPrefab, canvas, false); //To do
            panel.mUIManager = this;
            PanelDict.Add(panelType, panel);
        }

        return(panel);
    }
Пример #27
0
    /// <summary>
    /// 隐藏当前面板
    /// </summary>
    private void PopCurrentPanel()
    {
        if (mPanelStack == null)
        {
            mPanelStack = new Stack <BasePanel>();
        }
        if (mPanelStack.Count <= 0)
        {
            return;
        }
        //关闭栈顶页面的显示
        BasePanel topPanel = mPanelStack.Pop();

        topPanel.OnExit();
    }
Пример #28
0
    public void PushPanel(UIPanelType panelType)
    {
        //如果栈里已经有界面
        if (panelStack.Count > 0)
        {
            BasePanel topPanel = panelStack.Peek();
            //则暂停
            topPanel.OnPause();
        }

        BasePanel panel = GetPanel(panelType);

        panel.OnEnter();
        panelStack.Push(panel);
    }
Пример #29
0
 private static void AddPanel(BasePanel panel)
 {
     if (panel.NeedBlackForm)
     {
         BlackWallForm.Instance.Init(formWidth, formHeight);
         MainForm.Instance.AddPanelAct(BlackWallForm.Instance);
     }
     else
     {
         panelList.Add(panel);
     }
     panel.Init(formWidth, formHeight);
     MainForm.Instance.AddPanelAct(panel);
     PanelCount++;
 }
Пример #30
0
    /// <summary>
    /// 回到上次UI
    /// </summary>
    static public void LastUIToUI(BasePanel _fromPanel)
    {
        if (currentUIPanel == null || (currentUIPanel != _fromPanel && _fromPanel != null))
        {
            currentUIPanel = _fromPanel;
        }

        if (oldUIPanel == null || currentUIPanel == null)
        {
            return;
        }

        oldUIPanel.BackShowUI();
        currentUIPanel.BackHideUI();
    }
Пример #31
0
    public void PopPanel()
    {
        if (PanelStack.Count == 0)
        {
            return;
        }
        BasePanel panel = PanelStack.Pop();

        panel.OnExit();

        if (PanelStack.Count != 0)
        {
            PanelStack.Peek().OnResume();
        }
    }
Пример #32
0
 public PieceItem(BasePanel prt, int x, int y, int width, int height)
 {
     parent = prt;
     this.x = x;
     this.y = y;
     this.width = width;
     this.height = height;
     this.bitmapButtonBuy = new BitmapButton();
     bitmapButtonBuy.Location = new Point(x + 152, y + 30);
     bitmapButtonBuy.Size = new Size(35, 20);
     this.bitmapButtonBuy.Click += new System.EventHandler(this.pictureBoxBuy_Click);
     this.bitmapButtonBuy.ImageNormal = PicLoader.Read("ButtonBitmap", "ButtonBack2.PNG");
     bitmapButtonBuy.Font = new Font("宋体", 8 * 1.33f, FontStyle.Regular, GraphicsUnit.Pixel);
     bitmapButtonBuy.ForeColor = Color.White;
     bitmapButtonBuy.IconImage = TaleofMonsters.Core.HSIcons.GetIconsByEName("oth9");
     bitmapButtonBuy.IconSize = new Size(16, 16);
     bitmapButtonBuy.IconXY = new Point(10, 4);
     parent.Controls.Add(bitmapButtonBuy);
 }
Пример #33
0
 private void AddPanel(BasePanel panel, TabPage page)
 {
     panel.Dock = DockStyle.Fill;
     page.Controls.Add(panel.MainPanel);
     page.Tag = panel;
 }
Пример #34
0
 private void tabControl_Selected(object sender, TabControlEventArgs e)
 {
     SelectedPanel.DisposeControls();
     SelectedPanel = e.TabPage.Tag as BasePanel;
 }
Пример #35
0
 public void SetParent( BasePanel parent )
 {
     m_parentPanel = parent;
 }
Пример #36
0
 //***************************************************************************************************
 //添加子面板
 public void AddChildPanel( BasePanel child )
 {
     if( !m_listChildPanel.Contains( child ) )
     {
         m_listChildPanel.Add( child );
     }
 }