コード例 #1
0
ファイル: MouseClick.cs プロジェクト: yikliu/WiredIn
 /************************************************************************/
 /* Visitor Pattern
  * Accept Method
  */
 /************************************************************************/
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public override void Accept(Worker j)
 {
     j.CatchMouseClickActivity(this);
 }
コード例 #2
0
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public override void Accept(Worker j)
 {
     j.CatchWindowChangeActivity(this);
 }
コード例 #3
0
ファイル: Activity.cs プロジェクト: yikliu/WiredIn
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public abstract void Accept(Worker j);
コード例 #4
0
ファイル: StartUp.cs プロジェクト: yikliu/WiredIn
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public override void Accept(Worker j)
 {
     j.CatchStartUpActivity(this);
 }
コード例 #5
0
ファイル: ShowVisualizations.cs プロジェクト: yikliu/WiredIn
        /// <summary>
        /// Handles the Load event of the MainForm control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void MainForm_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.None; //this is a border-less form
              CreateVisualizer();

              worker = new Worker(visualizer); //create the worker
              worker.SetUp(); //set up worker
              this.Show();
        }
コード例 #6
0
ファイル: KeyPress.cs プロジェクト: yikliu/WiredIn
 /// <summary>
 /// Accepts the specified worker.
 /// </summary>
 /// <param name="j">The worker.</param>
 public override void Accept(Worker j)
 {
     j.CatchKeyPressActivity(this);
 }
コード例 #7
0
ファイル: ShutDown.cs プロジェクト: yikliu/WiredIn
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public override void Accept(Worker j)
 {
     j.CatchShutDownActivity(this);
 }