Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public override void Accept(Worker j)
 {
     j.CatchWindowChangeActivity(this);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public abstract void Accept(Worker j);
Ejemplo n.º 4
0
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public override void Accept(Worker j)
 {
     j.CatchStartUpActivity(this);
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Accepts the specified worker.
 /// </summary>
 /// <param name="j">The worker.</param>
 public override void Accept(Worker j)
 {
     j.CatchKeyPressActivity(this);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Accepts the specified j.
 /// </summary>
 /// <param name="j">The j.</param>
 public override void Accept(Worker j)
 {
     j.CatchShutDownActivity(this);
 }