C# 클래스 SIL.Utils.ScriptMaker

ScriptMaker creates scripts reflecting what the user does. They are designed for replay using Michael Lastufka's script engine. A ScriptMaker
상속: IFWDisposable, IMessageFilter
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

Cleanup ( ) : void

Cleanup and stop logging.

Dispose ( ) : void

Must not be virtual.

GoTo ( string url ) : void

Insert a command to switch to the given URL (typically a FieldWorks one).

PreFilterMessage ( Message &m ) : bool

Every message in the system comes through here while we're logging!! We want to catch window creation and attach our event handlers.

ScriptMaker ( Control root ) : System

Create one that writes on the default 'Generated Script' file.

ScriptMaker ( Control root, StreamWriter destination ) : System

Create a ScriptMaker for the specified control (typically some type of main window) and all its children.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.

If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.

비공개 메소드들

메소드 설명
AccessPath ( Control cLeaf ) : string
AttachTo ( Control root ) : void
AttachTo ( MenuItem menu ) : void
Init ( Control root, StreamWriter destination ) : void
InterpretRole ( object role ) : string
ScriptMaker_Closed ( object sender, EventArgs e ) : void
c_ControlAdded ( object sender, System.Windows.Forms.ControlEventArgs e ) : void
menu_Click ( object sender, EventArgs e ) : void
root_KeyPress ( object sender, KeyPressEventArgs e ) : void
root_MouseDown ( object sender, MouseEventArgs e ) : void

메소드 상세

CheckDisposed() 공개 메소드

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
리턴 void

Cleanup() 공개 메소드

Cleanup and stop logging.
public Cleanup ( ) : void
리턴 void

Dispose() 공개 메소드

Must not be virtual.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.
If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GoTo() 공개 메소드

Insert a command to switch to the given URL (typically a FieldWorks one).
public GoTo ( string url ) : void
url string
리턴 void

PreFilterMessage() 공개 메소드

Every message in the system comes through here while we're logging!! We want to catch window creation and attach our event handlers.
public PreFilterMessage ( Message &m ) : bool
m System.Windows.Forms.Message
리턴 bool

ScriptMaker() 공개 메소드

Create one that writes on the default 'Generated Script' file.
public ScriptMaker ( Control root ) : System
root System.Windows.Forms.Control
리턴 System

ScriptMaker() 공개 메소드

Create a ScriptMaker for the specified control (typically some type of main window) and all its children.
public ScriptMaker ( Control root, StreamWriter destination ) : System
root System.Windows.Forms.Control
destination System.IO.StreamWriter
리턴 System