public void Initialize() { userControler = new User_Controler(this); cardControler = new Card_Controler(this); touchControler = new Touch_Controler(this); gestureControler = new Gesture_Controler(this); gestureControler.Start(); sortingBoxControler = new Sorting_Group_Controler(this); cloudControler = new Cloud_Controler(this); }
private void processGesture() { while (isRunning) { if (Touch_Controler.isTouched()) { Thread.Sleep(STATICS.GESTURE_REFRESH_RATE); updateGesture(); terminateGesture(); detectGesture(); } } }
public void Deinitialize() { Point_List.Clear(); Link_List.CardLinks.Clear(); Group_List.CardGroups.Clear(); Card_List.CardList.Clear(); Shared_Card_List.ShardCards.Clear(); cardControler = null; gestureControler.quit(); gestureControler = null; userControler.UserList.Clear(); userControler = null; touchControler = null; }
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(); }