コード例 #1
0
 /// <summary>
 /// Thread safe, sets the label showing the result
 /// </summary>
 /// <param name="result"></param>
 public void ShowResult(string result)
 {
     if (this.ResultLabel.InvokeRequired)
     {
         var d = new ShowResultCallback(ShowResult);
         this.Invoke(d, new object[] { result });
     }
     else
     {
         this.ResultLabel.Text = result;
     }
 }
コード例 #2
0
 public RoomReqListener(ShowResultCallback showResult, MoveToPlayCallback MoveToPlay)
 {
     mShowResultCallback = showResult;
     mMoveToPlay = MoveToPlay;
 }
コード例 #3
0
 public RoomReqListener(ShowResultCallback showResult, MoveToPlayCallback MoveToPlay)
 {
     mShowResultCallback = showResult;
     mMoveToPlay         = MoveToPlay;
 }
コード例 #4
0
 public ConnectionListener(ShowResultCallback showResult, ConnectionCallback onConnectDoneCallback)
 {
     mShowResultCallback = showResult;
     mOnConnectDoneCallback = onConnectDoneCallback;
 }
コード例 #5
0
 public ConnectionListener(ShowResultCallback showResult)
 {
     mShowResultCallback = showResult;
 }
コード例 #6
0
 public ConnectionListener(ShowResultCallback showResult, ConnectionCallback onConnectDoneCallback)
 {
     mShowResultCallback    = showResult;
     mOnConnectDoneCallback = onConnectDoneCallback;
 }
コード例 #7
0
 public ConnectionListener(ShowResultCallback showResult)
 {
     mShowResultCallback = showResult;
 }
コード例 #8
0
ファイル: MainForm.cs プロジェクト: jemygraw/qbatchetag
 private void showResult()
 {
     if (this.InvokeRequired)
      {
          ShowResultCallback callback = new ShowResultCallback(showResult);
          this.Invoke(callback);
      }
      else
      {
          try
          {
              this.StopButton.Enabled = false;
              this.CalcButton.Enabled = true;
              this.ExportResultButton.Enabled = true;
              MessageBox.Show(this, string.Format("计算完成,共{0}个文件", this.totalDone),
                  "结果", MessageBoxButtons.OK, MessageBoxIcon.Information);
          }
          catch (Exception) { }
      }
 }