예제 #1
0
 /************************************************************************/
 /* 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
        /// <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);
 }