Beispiel #1
0
 protected RouteLineSettings(SerializationInfo info, StreamingContext context)
 {
     colorRange      = (ColorRange)(info.GetValue("colorRange", typeof(ColorRange)));
     width           = info.GetDouble("width");
     maskColor       = Color.FromArgb(info.GetInt32("maskColor"));
     maskWidth       = info.GetDouble("maskWidth");
     maskVisible     = info.GetBoolean("maskVisible");
     alphaAdjustment = info.GetDouble("alphaAdjustment");
     if (info.MemberCount > 6)
     {
         monochromeColor = Color.FromArgb(info.GetInt32("monochromeColor"));
         monochromeWidth = info.GetDouble("monochromeWidth");
     }
     else
     {
         monochromeColor = Color.FromArgb(160, Color.Red);
         monochromeWidth = 3;
     }
 }