示例#1
0
 private void InitViews()
 {
     _initViews = true;
     ProfileView.Initialize();
     ProfileView.InitRooms();
     GradesView.Initialize();
 }
示例#2
0
        public void RenderView(AppState astate)
        {
            if (!_initViews)
            {
                InitViews();
            }

            //background
            ShowBackground();

            //header
            ShowHeader();

            //add things based on appstate
            if (astate == AppState.ANNOUNCEMENTS)
            {
                AnnouncementsView.AddToView();

                //render sidebar thingy
                if (ButtonHandler.BARS_OPEN)
                {
                    //sidebar background fill rect, XBARINSET = space to main background
                    render(Access.newRect(0, 0, C.X_BAR_INSET, vc.ViewHeight, UIColor.White));

                    //add sidebar buttons for things, options mby

                    //little seperator for constant button and groups
                    render(Access.newRect(0, 96, C.X_BAR_INSET, 3, UIColor.Gray));
                }
            }
            else if (astate == AppState.TUTOR)
            {
            }
            else if (astate == AppState.PROFILE)
            {
                ProfileView.AddToView();
            }
            else if (astate == AppState.ROOM)
            {
                new RoomView(Room);
            }
            else if (astate == AppState.GRADES)
            {
                GradesView.AddToView();
            }

            ShowTaskbar();
        }