private void OpenMenu(SidebarController sidebarController)
 {
     if (sidebarController != null && !sidebarController.IsOpen)
     {
         sidebarController.OpenMenu();
     }
 }
Ejemplo n.º 2
0
 protected virtual void OpenMenu(SidebarController sidebarController)
 {
     if (sidebarController != null && !sidebarController.IsOpen)
     {
         sidebarController.OpenMenu();
     }
 }
Ejemplo n.º 3
0
 protected virtual void OpenMenu(SidebarController sidebarController)
 {
     if (sidebarController != null && !sidebarController.IsOpen)
     {
         var sidebarMenu = sidebarController.MenuAreaController as IMvxSidebarMenu;
         sidebarMenu?.MenuWillOpen();
         sidebarController.OpenMenu();
     }
 }
Ejemplo n.º 4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            InvokeOnMainThread(() =>
            {
                var type = StaticMethods.DeviceType();
                if (type != "ipad")
                {
                    tblStudentList.RowHeight = 94;
                }
            });
            //if(!StaticDataModel.IsFromLanguageMenu)
            NavigationController.SetNavigationBarHidden(true, true);

            //GetStudentList();

            SetData();

            imgMenu.AddGestureRecognizer(new UITapGestureRecognizer(ro =>
            {
                SidebarController.OpenMenu();
            }));
            StudentList_tableviewcell.CarClicked += (object sender, EventArgs e) =>
            {
                if (StaticDataModel.isEnableStudentTracking)
                {
                    StudentTracking home = this.Storyboard.InstantiateViewController("StudentTracking") as StudentTracking;
                    if (home != null)
                    {
                        this.PresentModalViewController(home, true);
                    }
                    else
                    {
                    }
                }
                else
                {
                    string message = string.Empty;
                    if (StaticDataModel.CurrentLanguage == "en")
                    {
                        message = "Your child is not in bus.";
                    }
                    else
                    {
                        message = ".طفلك ليس في الحافلة";
                    }

                    BTProgressHUD.ShowToast(message, false, 10500);
                }
            };
            StudentList_tableviewcell.ViewDetailsClicked += (object sender, EventArgs e) =>
            {
                StudentReport sr = this.Storyboard.InstantiateViewController("StudentReport") as StudentReport;
                if (sr != null)
                {
                    this.PresentModalViewController(sr, true);
                }
            };

            ar_StudentList_tableviewcell.CarClicked += (object sender, EventArgs e) =>
            {
                StudentTracking home = this.Storyboard.InstantiateViewController("StudentTracking") as StudentTracking;
                if (home != null)
                {
                    this.PresentModalViewController(home, true);
                }
            };
            ar_StudentList_tableviewcell.ViewDetailsClicked += (object sender, EventArgs e) =>
            {
                StudentReport sr = this.Storyboard.InstantiateViewController("StudentReport") as StudentReport;
                if (sr != null)
                {
                    this.PresentModalViewController(sr, true);
                }
            };
            ipad_StudentList_tableviewcell.CarClicked += (object sender, EventArgs e) =>
            {
                StudentTracking home = this.Storyboard.InstantiateViewController("StudentTracking") as StudentTracking;
                if (home != null)
                {
                    this.PresentModalViewController(home, true);
                }
            };
            ipad_StudentList_tableviewcell.ViewDetailsClicked += (object sender, EventArgs e) =>
            {
                StudentReport sr = this.Storyboard.InstantiateViewController("StudentReport") as StudentReport;
                if (sr != null)
                {
                    this.PresentModalViewController(sr, true);
                }
            };
            ar_ipad_StudentList_tableviewcell.CarClicked += (object sender, EventArgs e) =>
            {
                StudentTracking home = this.Storyboard.InstantiateViewController("StudentTracking") as StudentTracking;
                if (home != null)
                {
                    this.PresentModalViewController(home, true);
                }
            };
            ar_ipad_StudentList_tableviewcell.ViewDetailsClicked += (object sender, EventArgs e) =>
            {
                StudentReport sr = this.Storyboard.InstantiateViewController("StudentReport") as StudentReport;
                if (sr != null)
                {
                    this.PresentModalViewController(sr, true);
                }
            };

            AppDelegate.NotificationReceived += (object sender, EventArgs e) =>

            {
                GetStudentList();
            };

            Settings.SaveSettings += (object sender, EventArgs e) =>
            {
                ChangeLaguageProcess();
            };
        }