private void Awake()
 {
     AllPanels.instance = this;
     if (AssetBundleManager.instance.IsInitialized())
     {
         this.OnAssetBundleManagerInitialized();
     }
     else
     {
         AssetBundleManager expr_25 = AssetBundleManager.instance;
         expr_25.InitializedAction = (Action)Delegate.Combine(expr_25.InitializedAction, new Action(this.OnAssetBundleManagerInitialized));
     }
 }
Example #2
0
        private void popOutTab()
        {
            if (mTabLock)
            {
                return;
            }
            int     index       = mTabs.SelectedIndex;
            TabPage selectedTab = mTabs.TabPages[index];
            Panel   newPanel    = convertTabToPanel(selectedTab);

            DTALib.DraggableForm df = DTALib.DraggableForm.ShowForm(newPanel);
            df.Text         = mTabs.TabPages[mTabs.SelectedIndex].Text;
            df.FormClosing += new FormClosingEventHandler(df_FormClosing);
            mTabs.TabPages.Remove(selectedTab);
            AllPanels.Insert(index, newPanel);
            df.Focus();
        }
Example #3
0
        private void mergeDraggableForm(DTALib.DraggableForm df)
        {
            if (mTabLock)
            {
                return;
            }
            Panel   panel  = df.Control as Panel;
            TabPage newTab = new TabPage();

            newTab.Name = panel.Name;
            int tabIndex = FindIndexOfNamedTab(newTab.Name);

            if (tabIndex >= 0)
            {
                AllPanels.RemoveAt(tabIndex);
                mTabs.TabPages.Insert(tabIndex, newTab);
            }
            else
            {
                mTabs.TabPages.Add(newTab);
            }
            newTab.Controls.Add(panel);
            newTab.Text = df.Text;
        }