示例#1
0
 public TransparencyOptions(TransparencyOptions prototype)
 {
     this._enabled  = prototype._enabled;
     this._inverted = prototype._inverted;
     this._useDocumentTransparency = prototype._useDocumentTransparency;
     this._colorList = new List <TransparencyColor>();
     this._colorList.AddRange(prototype._colorList);
     this._fadeOptions = new FadeOptions(prototype._fadeOptions);
 }
示例#2
0
 public TransparencyOptions(TransparencyOptions prototype)
 {
     this._enabled = prototype._enabled;
     this._inverted = prototype._inverted;
     this._useDocumentTransparency = prototype._useDocumentTransparency;
     this._colorList = new List<TransparencyColor>();
     this._colorList.AddRange(prototype._colorList);
     this._fadeOptions = new FadeOptions(prototype._fadeOptions);
 }
示例#3
0
 private void Initialize(DirtyEvent dirty)
 {
     this.dirtyEvent = dirty;
     this._colorList = new List <TransparencyColor>();
     this._enabled   = true;
     this._inverted  = false;
     this._useDocumentTransparency = true;
     this._fadeOptions             = new FadeOptions(dirty);
 }
		private void Initialize(DirtyEvent dirty)
		{
			this.dirtyEvent = dirty;
			this._colorList = new List<TransparencyColor>();
			this._enabled = true;
			this._inverted = false;
			this._useDocumentTransparency = true;
			this._fadeOptions = new FadeOptions(dirty);
		}
示例#5
0
 public TransparencyOptions(MashupParseContext context, DirtyEvent dirty)
 {
     this.Initialize(dirty);
     XMLTagReader xMLTagReader = context.NewTagReader("TransparencyOptions");
     this._useDocumentTransparency = true;
     context.GetAttributeBoolean("UseDocumentTransparency", ref this._useDocumentTransparency);
     this._enabled = context.GetRequiredAttributeBoolean("Enabled");
     this._inverted = context.GetRequiredAttributeBoolean("Inverted");
     while (xMLTagReader.FindNextStartTag())
     {
         if (xMLTagReader.TagIs(TransparencyColor.GetXMLTag()))
         {
             this._colorList.Add(new TransparencyColor(context));
         }
         else
         {
             if (xMLTagReader.TagIs(FadeOptions.GetXMLTag()))
             {
                 this._fadeOptions = new FadeOptions(context, dirty);
             }
         }
     }
 }
示例#6
0
        public TransparencyOptions(MashupParseContext context, DirtyEvent dirty)
        {
            this.Initialize(dirty);
            XMLTagReader xMLTagReader = context.NewTagReader("TransparencyOptions");

            this._useDocumentTransparency = true;
            context.GetAttributeBoolean("UseDocumentTransparency", ref this._useDocumentTransparency);
            this._enabled  = context.GetRequiredAttributeBoolean("Enabled");
            this._inverted = context.GetRequiredAttributeBoolean("Inverted");
            while (xMLTagReader.FindNextStartTag())
            {
                if (xMLTagReader.TagIs(TransparencyColor.GetXMLTag()))
                {
                    this._colorList.Add(new TransparencyColor(context));
                }
                else
                {
                    if (xMLTagReader.TagIs(FadeOptions.GetXMLTag()))
                    {
                        this._fadeOptions = new FadeOptions(context, dirty);
                    }
                }
            }
        }
示例#7
0
		public FadeOptions(FadeOptions prototype)
		{
			this._fadeBase = prototype._fadeBase;
			this._zoomToFadeMap = new Dictionary<int, double>(prototype._zoomToFadeMap);
		}
示例#8
0
 public FadeOptions(FadeOptions prototype)
 {
     _fadeBase      = prototype._fadeBase;
     _zoomToFadeMap = new Dictionary <int, double>(prototype._zoomToFadeMap);
 }