OnInit() 공개 메소드

public OnInit ( ) : void
리턴 void
예제 #1
0
 public void UpdatePages()
 {
     foreach (PageProp pageProp in pages.Values)
     {
         PropertyPage page = pageProp.Page;
         page.OnInit();
     }
 }
예제 #2
0
        private bool ActivatePage(Pabo.MozBar.MozItem item)
        {
            if (!this.pages.ContainsKey(item.Name))
            {
                return(false);
            }

            PageProp pageProp = this.pages[item.Name];

            PropertyPage page = pageProp.Page;

            if (activePage != null)
            {
                activePage.Visible = false;
            }

            activePage = page;

            if (activePage != null)
            {
                this.mozPane1.SelectByName(item.Name);

                activePage.Visible = true;

                if (!page.IsInit)
                {
                    page.OnInit();

                    page.IsInit = true;
                }

                activePage.OnSetActive();
            }

            return(true);
        }