private void InitializeBuzzTab () { buzzNavigationController = new MSPNavigationController (this); buzzNavigationController.TabBarItem = new UITabBarItem("buzz", Graphics.GetImgResource("buzz"), 0); startMedia = new StartMediaViewController (buzzNavigationController); buzzNavigationController.PushViewController (startMedia, false); }
private void InitializeAroundTab () { aroundNavigationController = new MSPNavigationController (this); around = new ActivityViewController (aroundNavigationController); aroundNavigationController.TabBarItem = new UITabBarItem("activity", Graphics.GetImgResource("activity"), 2); aroundNavigationController.PushViewController (around, false); }
public Settings () : base (UITableViewStyle.Grouped, null) { msp = AppDelegateIPhone.tabBarController.SelectedViewController as MSPNavigationController; msp.OnViewAppeared += HandleMspOnViewAppeared; twitterApp = new Twitter.TwitterApplication(msp); facebookApp = new FaceBook.FaceBookApplication(msp); bool twitterLoggedIn = twitterApp.LoggedIn(); bool facebookLoggedIn = facebookApp.LoggedIn(); Util.Defaults.SetInt (twitterLoggedIn ? 1 : 0, "twitterOption"); Util.Defaults.SetInt (facebookLoggedIn ? 1 : 0, "facebookOption"); Root = new RootElement (Locale.GetText ("Settings")) { new Section (Locale.GetText ("share your post on:")){ (facebook = new CustomCheckboxElement (Locale.GetText ("Facebook"), facebookLoggedIn)), (twitter = new CustomCheckboxElement(Locale.GetText ("Twitter"), twitterLoggedIn)), } }; facebook.ValueChanged += (sender, e) => { if (!facebookApp.LoggedIn()) { //facebookApp.Login(); var _MSP = AppDelegateIPhone.tabBarController.SelectedViewController as UINavigationController; var vc = new SocialNetworksParentViewController(_MSP); _MSP.PushViewController(vc, true); return; } facebook.SetValue(facebook.Value); Util.Defaults.SetInt (facebook.Value ? 1 : 2, "facebookOption"); Util.Defaults.Synchronize (); }; twitter.ValueChanged += (sender, e) => { if (!twitterApp.LoggedIn()) { //twitterApp.Login(); var _MSP = AppDelegateIPhone.tabBarController.SelectedViewController as UINavigationController; var vc = new SocialNetworksParentViewController(_MSP); _MSP.PushViewController(vc, true); return; } twitter.SetValue(twitter.Value); Util.Defaults.SetInt (twitter.Value ? 1 : 2, "twitterOption"); Util.Defaults.Synchronize (); }; }
public ActivityViewController (MSPNavigationController msp) : base("ActivityViewController", null) { MSPNavigationController = msp; }
public StartMediaViewController (MSPNavigationController msp) : this() { _MSP = msp; LocType = LocalisationType.Global; }