private void TimeOut_CatchedSignal(object sender, TimeOut.TimeOut.EndJudgedEventArgs arg) { if (arg.msg != null && arg.msg.Count() == 1 && typeof(string) == arg.msg[0].GetType() && !string.IsNullOrEmpty(((string)arg.msg[0]))) { this.Invoke(new Action(() => { this.Result_lb.Text = "Not timed out :" + ((string)arg.msg[0]); })); } else { this.Invoke(new Action(() => { this.Result_lb.Text = "Not timed out"; })); } }
private void TimeOut_EndJudged(object sender, TimeOut.TimeOut.EndJudgedEventArgs arg) { this.Invoke(new Action(() => { this.Result_lb.Text = "Out of Time"; })); }