public override void PerformAction(string command, string[] arguments) { base.PerformAction(command, arguments); switch (command) { case PrivateGeneralConfig.App_URL_Commands_Execute: { // is this for us? if (arguments[0] == Command_Keyword( )) { // whether we're changing campuses or explicitely reloading news, // reload the news. if (arguments[1] == PrivateGeneralConfig.App_URL_Execute_CampusChanged || arguments[1] == PrivateGeneralConfig.App_URL_Execute_ReloadNews) { ReloadNews( ); MainPageVC.UpdateNews(News); MainPageVC.LoadAndDownloadImages( ); MainPageVC.LayoutChanged( ); } } break; } } }
public override void MakeActive(TaskUINavigationController parentViewController, NavToolbar navToolbar, CGRect containerBounds) { base.MakeActive(parentViewController, navToolbar, containerBounds); MainPageVC.View.Bounds = containerBounds; // refresh our news from GeneralData ReloadNews( ); // and provide it to the main page MainPageVC.UpdateNews(News); // set our current page as root parentViewController.PushViewController(MainPageVC, false); }