예제 #1
0
 /// <summary>
 /// Draws the content of the view.
 /// </summary>
 /// <param name="rect">The rectangle to draw.</param>
 public override void Draw(System.Drawing.RectangleF rect)
 {
     if (this.model != null)
     {
         var renderer = new MonoTouchRenderContext(UIGraphics.GetCurrentContext());
         ((IPlotModel)this.model).Render(renderer, rect.Width, rect.Height);
     }
 }
예제 #2
0
 /// <summary>
 /// Draws the content of the view.
 /// </summary>
 /// <param name="rect">The rectangle to draw.</param>
 public override void Draw(System.Drawing.RectangleF rect)
 {
     if (this.model != null)
     {
         var renderer = new MonoTouchRenderContext(UIGraphics.GetCurrentContext());
         ((IPlotModel)this.model).Render(renderer, rect.Width, rect.Height);
     }
 }