Ejemplo n.º 1
0
 public WeatherLineStyle(LineStyle lineStyle, GeoImage GeoImage, int imageSpacing, ImageDirection imageDirection)
 {
     this.lineStyle      = lineStyle;
     this.geoImage       = GeoImage;
     this.imageSpacing   = imageSpacing;
     this.imageDirection = imageDirection;
 }
Ejemplo n.º 2
0
 public CustomGeoImageLineStyle(LineStyle lineStyle, IEnumerable <GeoImage> geoImages, int imageSpacing, ImageDirection imageDirection)
 {
     this.imageDirection = imageDirection;
     this.imageSpacing   = imageSpacing;
     this.lineStyle      = lineStyle;
     this.images         = new Collection <GeoImage>();
     foreach (var geoImage in geoImages)
     {
         this.images.Add(geoImage);
     }
 }
Ejemplo n.º 3
0
 public void SetIsCalling(bool isCalling, int state)
 {
     Dispatcher.Invoke(new Action(() =>
     {
         IsCalling = isCalling;
         if (state == 1)
         {
             ImageDirection.SetResourceReference(StyleProperty, "SeatViewerImageCallin");
         }
         if (state == 2)
         {
             ImageDirection.SetResourceReference(StyleProperty, "SeatViewerImageCallout");
         }
     }));
 }
 private void setDirection()
 {
     if (this.Height == this.Width)
     {
         this.Direction = ImageDirection.Square;
     }
     else
     {
         if (this.Height < this.Width)
         {
             this.Direction = ImageDirection.Landscape;
         }
         else
         {
             this.Direction = ImageDirection.Portrait;
         }
     }
 }
Ejemplo n.º 5
0
 public ImageCode(TextCovertedData data)
 {
     if (data._data == "reset")
     {
         reset     = true;
         _imagePos = GetImagePos(data._text.Trim());
     }
     else
     {
         var d = data._data.Split(',');
         setName = d[0];
         number  = int.Parse(d[1]);
         var text = data._text.Split(' ');
         _imagePos = GetImagePos(text[0].Trim());
         if (text.Length >= 2)
         {
             _imageDirection = GetImageDir(text[1].Trim());
         }
     }
 }
Ejemplo n.º 6
0
 public CustomGeoImageLineStyle(LineStyle lineStyle, GeoImage geoImage, int imageSpacing, ImageDirection imageDirection)
     : this(lineStyle, new Collection <GeoImage> {
     geoImage
 }, imageSpacing, imageDirection)
 {
 }