public News_Card(Card_Controler controler, string userId) : base(controler) { List <Layer_Base> list = new List <Layer_Base>(); this.userId = userId; List <ZoomWheel> templist = new List <ZoomWheel>(); int index = 0; for (int i = 0; i < STATICS.USER_IDS.Length; i++) { if (!STATICS.USER_IDS[i].Equals(userId) && STATICS.USER_ACTIVE[i]) { ZoomWheel zw = new ZoomWheel(STATICS.USER_IDS[i]); zw.VerticalAlignment = VerticalAlignment.Center; zw.HorizontalAlignment = HorizontalAlignment.Center; zw.RenderTransform = new MatrixTransform(new Matrix(1, 0, 0, 1, zw.Width / 2, zw.Height / 2)); templist.Add(zw); index++; } } zoomWheels = templist.ToArray(); list.Add(new Layer_One()); list.Add(new Layer_Two()); list.Add(new Layer_Three()); list.Add(new Layer_Four()); semanticLayers = list.ToArray(); }
public News_Card(Card_Controler controler,string userId) : base(controler) { List<Layer_Base> list = new List<Layer_Base>(); this.userId = userId; List<ZoomWheel> templist = new List<ZoomWheel>(); int index = 0; for (int i = 0; i < STATICS.USER_IDS.Length; i++) { if (!STATICS.USER_IDS[i].Equals(userId) && STATICS.USER_ACTIVE[i]) { ZoomWheel zw = new ZoomWheel(STATICS.USER_IDS[i]); zw.VerticalAlignment = VerticalAlignment.Center; zw.HorizontalAlignment = HorizontalAlignment.Center; zw.RenderTransform = new MatrixTransform(new Matrix(1, 0, 0, 1, zw.Width / 2, zw.Height / 2)); templist.Add(zw); index++; } } zoomWheels = templist.ToArray(); list.Add(new Layer_One()); list.Add(new Layer_Two()); list.Add(new Layer_Three()); list.Add(new Layer_Four()); semanticLayers = list.ToArray(); }
public Card(Card_Controler cardControl) { InitializeComponent(); this.IsManipulationEnabled = true; this.cardControler = cardControl; this.Width = STATICS.DEAULT_CARD_SIZE_WITH_BORDER.Width; this.Height = STATICS.DEAULT_CARD_SIZE_WITH_BORDER.Height; }
public Card(Card_Controler cardControl) { InitializeComponent(); this.cardControler = cardControl; this.IsManipulationEnabled = true; this.Width = STATICS.DEAULT_CARD_SIZE_WITH_BORDER.Width; this.Height = STATICS.DEAULT_CARD_SIZE_WITH_BORDER.Height; }
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); }
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; }
protected override void OnTouchUp(TouchEventArgs e) { Card_Controler.UpdateZoomWheels(Owner, newsID, this.CurrentScale); base.OnTouchUp(e); }
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(); }