private void ShowClassRooms()
        {
            FeedbackViewController FeedbackView = this.Storyboard.InstantiateViewController("FeedbackViewController") as FeedbackViewController;

            FeedbackView.NavigationItem.SetHidesBackButton(true, false);

            this.NavController.PushViewController(FeedbackView, false);
            var menuController = (MyMenuController)Storyboard.InstantiateViewController("MyMenuController");

            SidebarController.ChangeMenuView(menuController);
            SidebarController.MenuWidth      = 250;
            SidebarController.ReopenOnRotate = false;
        }
Exemple #2
0
 private void DashboardButton_TouchUpInside(object sender, EventArgs e)
 {
     if (PreferenceHandler.GetUserDetails().RoleId == 1)
     {
         var MapViewController = (MapViewController)Storyboard.InstantiateViewController("MapViewController");
         NavController.PushViewController(MapViewController, true);
     }
     else
     {
         FeedbackViewController FeedbackView = this.Storyboard.InstantiateViewController("FeedbackViewController") as FeedbackViewController;
         FeedbackView.NavigationItem.SetHidesBackButton(true, false);
         this.NavController.PushViewController(FeedbackView, true);
     }
     SidebarController.CloseMenu();
 }