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