Beispiel #1
0
 /// <summary>
 /// Receive messages from the test rig, and append them to the message log display.
 /// </summary>
 /// <param name="sender">
 /// TestRig object
 /// </param>
 /// <param name="e">
 /// Message
 /// </param>
 private void HandleTestRigMessageEvent(object sender, TestRig.MessageEventArgs e)
 {
     delegatetypeAddLogMessage AddMessageLogPointer = this.AddLogMessage;
     this.BeginInvoke(AddMessageLogPointer, e.Message);
 }
Beispiel #2
0
 /// <summary>
 /// The main_ load.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void Main_Load(object sender, EventArgs e)
 {
     // Change ths SharpChess exe path here, if you want it to be somewhere more convenient.
     this.testRig = new TestRig(@"..\..\..\SharpChess Game\bin\Release\SharpChess2.exe");
     this.testRig.RaiseMessageEvent += this.HandleTestRigMessageEvent;
     this.testRig.ReportStartupMessages();
 }
Beispiel #3
0
        /// <summary>
        /// The main_ load.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void Main_Load(object sender, EventArgs e)
        {
            // Change ths SharpChess exe path here, if you want it to be somewhere more convenient.
//            this.testRig = new TestRig(@"..\..\..\SharpChess Game\bin\Release\SharpChess2.exe");

            this.testRig = new TestRig(@"C:\Users\zass\Documents\Visual Studio 2013\Projects\SharpChess\SharpChess Game\bin\Release\SharpChess2.exe");
            
//C:\Users\zass\Documents\Visual Studio 2013\Projects\SharpChess\SharpChess Game\bin\Release            
            this.testRig.RaiseMessageEvent += this.HandleTestRigMessageEvent;
            this.testRig.ReportStartupMessages();
        }