C# Class SketchViewer.Form1

Inheritance: System.Windows.Forms.Form
ファイルを表示 Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
Form1 ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
DataChanged ( ) : void

This method is called through an Event dispatch. It is registered with the DataChangedEvent of the viewer class. It should be raised whenever a new set of drawing commands hits to viewer from the network. It is a bit inefficient as it does not distinguish drawing commands from state setting commands, so it could be doing a bit more work than necessary. Also, it does not observe the updated region, and just invalidates the entire form. This will result in a lot of flashing in a highly collaborative environment.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Form1() public method

public Form1 ( ) : System
return System

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e System.Windows.Forms.PaintEventArgs
return void