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 override void AddZoomWheel(ZoomWheel[] zm) { this.zoomWheels = zm; for (int i = 0; i < zoomWheels.Length; i++) { this.Children.Add(zoomWheels[i]); Grid.SetRow(zoomWheels[i], 1); Grid.SetColumn(zoomWheels[i], i); } }
public virtual void AddZoomWheel(ZoomWheel[] zm) { }