예제 #1
0
 internal ProgressEventArgs(string origin, int offset, int extent)
 {
     Origin   = origin;
     Progress = new Percentage(((offset + 1) / (double)extent) * 100);
 }
예제 #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);
 }
예제 #3
0
 ///<summary>
 /// Creates a new DrawableStrokeOpacity instance.
 ///</summary>
 ///<param name="opacity">The opacity.</param>
 public DrawableStrokeOpacity(Percentage opacity)
 {
     Opacity = opacity;
 }