AddPage() public method

public AddPage ( IPage page ) : void
page IPage
return void
示例#1
0
        void AccountManager_Initialize()
        {
            if (accountManager == null)
            {
                accountpage = new Pages.Account.Page();
                accountpage.LoadUserConfiguration(CurrentUser);
                accountpage.UserChanged += accountpage_UserChanged;

                accountManager = new PageManager();
                accountManager.TabTitle = "Account Management";
                accountManager.TabImage = new Uri("pack://application:,,,/TrakHound-Dashboard;component/Resources/blank_profile_01_sm.png");
                accountManager.AddPage(accountpage);
            }
        }
示例#2
0
 void Options_Initialize()
 {
     if (optionsManager == null)
     {
         optionsManager = new PageManager();
         optionsManager.TabTitle = "Options";
         optionsManager.TabImage = new Uri("pack://application:,,,/TrakHound-Dashboard;component/Resources/Options_01.png");
         optionsManager.AddPage(new Pages.Options.General.Page());
         optionsManager.AddPage(new Pages.Options.API.Page());
         optionsManager.AddPage(new Pages.Options.Logger.Page());
     }
 }
示例#3
0
 void About_Initialize()
 {
     if (aboutManager == null)
     {
         aboutManager = new PageManager();
         aboutManager.TabTitle = "About";
         aboutManager.TabImage = new Uri("pack://application:,,,/TrakHound-Dashboard;component/Resources/About_01.png");
         aboutManager.AddPage(new Pages.About.Information.Page());
         aboutManager.AddPage(new Pages.About.License.Page());
     }
 }