internal ProgressEventArgs(string origin, int offset, int extent)
 {
     Origin   = origin;
     Progress = new Percentage(((offset + 1) / (double)extent) * 100);
 }
Exemple #2
0
 /// <summary>
 /// Adds a new instance of the <see cref="DrawableFillOpacity" /> class to the <see cref="Drawables" />.
 /// </summary>
 /// <param name="opacity">The opacity.</param>
 /// <returns>The <see cref="Drawables" /> instance.</returns>
 public Drawables FillOpacity(Percentage opacity)
 {
     _drawables.Add(new DrawableFillOpacity(opacity));
     return(this);
 }
 ///<summary>
 /// Creates a new DrawableStrokeOpacity instance.
 ///</summary>
 ///<param name="opacity">The opacity.</param>
 public DrawableStrokeOpacity(Percentage opacity)
 {
     Opacity = opacity;
 }