Exemple #1
0
 //draw shapes
 public void HandleCanvasPaint(object sender, System.Windows.Forms.PaintEventArgs e)
 {
     _presentationModel.Draw(e.Graphics);
 }
        /// <summary>   Handles the canvas paint. </summary>
        ///
        /// <param name="sender">   Source of the event. </param>
        /// <param name="e">        Paint event information. </param>

        private void HandleCanvasPaint(object sender, PaintEventArgs e)
        {
            _presentationModel.Draw(e.Graphics);
        }
Exemple #3
0
 // 畫圖
 public void HandleCanvasPaint(object sender, PaintEventArgs e)
 {
     _presentationModel.Draw(new WindowsFormsGraphicsAdaptor(e.Graphics));
 }