Exemplo n.º 1
0
        public void DeinitViews()
        {
            MainContainer.Children.Remove(bottomLayer);
            MainContainer.Children.Remove(linkingGestureLayer);
            MainContainer.Children.Remove(sortingGestureLayer);
            MainContainer.Children.Remove(groupingGestureLayer);
            MainContainer.Children.Remove(cardLayer);
            MainContainer.Children.Remove(gestureIndicatorLayer);
            MainContainer.Children.Remove(menuLayer);
            sortingGestureLayer   = null;
            groupingGestureLayer  = null;
            linkingGestureLayer   = null;
            bottomLayer           = null;
            gestureIndicatorLayer = null;
            menuLayer             = null;
            cardLayer             = null;
            if (STATICS.SCREEN_NUM == 2)
            {
                cloudWindow.Close();
            }

            Card_List.CardList.Clear();
            Gesture_List.GestureList.Clear();
            Group_List.CardGroups.Clear();
            Group_List.GroupBox.Clear();
            Link_List.CardLinks.Clear();
            Point_List.TouchPointList.Clear();
        }
Exemplo n.º 2
0
 public void InitializeViews()
 {
     cardLayer             = new Card_Layer(this);
     menuLayer             = new Menu_Layer(this);
     gestureIndicatorLayer = new Gesture_Indicator_Layer();
     bottomLayer           = new Bottom_Layer();
     linkingGestureLayer   = new Linking_Gesture_Layer();
     groupingGestureLayer  = new Grouping_Gesture_Layer();
     sortingGestureLayer   = new Sorting_Gesture_Layer(this);
     if (STATICS.SCREEN_NUM == 2)
     {
         InitializeCloudView();
         cloudWindow.Visibility = Visibility.Visible;
     }
     MainContainer.Children.Add(bottomLayer);
     MainContainer.Children.Add(linkingGestureLayer);
     MainContainer.Children.Add(sortingGestureLayer);
     MainContainer.Children.Add(groupingGestureLayer);
     MainContainer.Children.Add(cardLayer);
     MainContainer.Children.Add(gestureIndicatorLayer);
     MainContainer.Children.Add(menuLayer);
 }
Exemplo n.º 3
0
 public void InitializeViews()
 {
     cardLayer = new Card_Layer(this);
     menuLayer = new Menu_Layer(this);
     gestureIndicatorLayer = new Gesture_Indicator_Layer();
     bottomLayer = new Bottom_Layer();
     linkingGestureLayer = new Linking_Gesture_Layer();
     groupingGestureLayer = new Grouping_Gesture_Layer();
     sortingGestureLayer = new Sorting_Gesture_Layer(this);
     if (STATICS.SCREEN_NUM == 2) {
         InitializeCloudView();
         cloudWindow.Visibility = Visibility.Visible;
     }
     MainContainer.Children.Add(bottomLayer);
     MainContainer.Children.Add(linkingGestureLayer);
     MainContainer.Children.Add(sortingGestureLayer);
     MainContainer.Children.Add(groupingGestureLayer);
     MainContainer.Children.Add(cardLayer);
     MainContainer.Children.Add(gestureIndicatorLayer);
     MainContainer.Children.Add(menuLayer);
 }
Exemplo n.º 4
0
        public void DeinitViews()
        {
            MainContainer.Children.Remove(bottomLayer);
            MainContainer.Children.Remove(linkingGestureLayer);
            MainContainer.Children.Remove(sortingGestureLayer);
            MainContainer.Children.Remove(groupingGestureLayer);
            MainContainer.Children.Remove(cardLayer);
            MainContainer.Children.Remove(gestureIndicatorLayer);
            MainContainer.Children.Remove(menuLayer);
            sortingGestureLayer = null;
            groupingGestureLayer = null;
            linkingGestureLayer = null;
            bottomLayer = null;
            gestureIndicatorLayer = null;
            menuLayer = null;
            cardLayer = null;
            if (STATICS.SCREEN_NUM == 2)
                cloudWindow.Close();

            Card_List.CardList.Clear();
            Gesture_List.GestureList.Clear();
            Group_List.CardGroups.Clear();
            Group_List.GroupBox.Clear();
            Link_List.CardLinks.Clear();
            Point_List.TouchPointList.Clear();
        }
        public void InitializeControlers()
        {
            STATICS.USER_COLOR["Alex"] = Color.FromArgb(255, 255, 102, 0);
            STATICS.USER_COLOR["Ben"] = Color.FromArgb(255, 0, 255, 0);
            STATICS.USER_COLOR["Chris"] = Color.FromArgb(255, 255, 255, 255);
            STATICS.USER_COLOR["Danny"] = Color.FromArgb(255, 128, 0, 128);

            userControler = new User_Controler(this);
            cardLayer = new Card_Layer(this);
            cardControler = new Card_Controler(this);
            cardControler.LoadCardLayout(layoutFile);
            touchControler = new Touch_Controler(this);
            menuLayer = new Menu_Layer(this);
            iconControler = new Sorting_Icon_Controler(this);
            iconControler.InitializeSortButton();
            gestureIndicatorLayer = new Gesture_Indicator_Layer();
            bottomLayer = new Bottom_Layer();

            linkingGestureLayer = new Linking_Gesture_Layer();
            groupingGestureLayer = new Grouping_Gesture_Layer();
            gestureControler = new Gesture_Controler(this);
            gestureControler.start();
            //For Lab
            //jointInterestControler = new Joint_Interest_Controler(this);//test
            //jointInterestControler.Start();
            sortingGestureLayer = new Sorting_Gesture_Layer(this);

            MainContainer.Children.Add(bottomLayer);
            MainContainer.Children.Add(linkingGestureLayer);
            MainContainer.Children.Add(sortingGestureLayer);
            MainContainer.Children.Add(groupingGestureLayer);
            MainContainer.Children.Add(cardLayer);
            MainContainer.Children.Add(gestureIndicatorLayer);
            MainContainer.Children.Add(menuLayer);
        }
        public void DeinitControlers()
        {
            MainContainer.Children.Remove(bottomLayer);
            MainContainer.Children.Remove(linkingGestureLayer);
            MainContainer.Children.Remove(sortingGestureLayer);
            MainContainer.Children.Remove(groupingGestureLayer);
            MainContainer.Children.Remove(cardLayer);
            MainContainer.Children.Remove(gestureIndicatorLayer);
            MainContainer.Children.Remove(menuLayer);
            sortingGestureLayer = null;
            gestureControler.quit();
            gestureControler = null;
            groupingGestureLayer = null;
            linkingGestureLayer = null;
            bottomLayer = null;
            gestureIndicatorLayer = null;
            iconControler = null;
            menuLayer = null;
            touchControler = null;
            cardControler = null;
            cardLayer = null;
            userControler.UserList.Clear();
            userControler = null;

            Card_List.CardList.Clear();
            Gesture_List.GestureList.Clear();
            Group_List.CardGroups.Clear();
            Group_List.GroupButtons.Clear();
            Link_List.CardLinks.Clear();
            Point_List.TouchPointList.Clear();
        }