コード例 #1
0
 private void process_Exited(object sender, EventArgs e)
 {
     if (ProcessingEvent != null)
     {
         ProcessingEvent.Invoke(ProcessEvent.ProcessExit);
     }
 }
コード例 #2
0
 private void ProcessFail(Exception e)
 {
     _LastException = e;
     if (ProcessingEvent != null)
     {
         ProcessingEvent.Invoke(ProcessEvent.PrcossExitWithFail);
     }
 }
コード例 #3
0
 private void OutputHandler(object sendingProcess, DataReceivedEventArgs outLine)
 {
     _logging.Add(outLine.Data);
     if (ProcessingEvent != null)
     {
         ProcessingEvent.Invoke(ProcessEvent.MessageRecieved);
     }
 }
コード例 #4
0
 /// <summary> Update UI </summary>
 /// <param name="text">Step name</param>
 private void LaunchProcessingEvent(string text) => ProcessingEvent?.Invoke(text);
コード例 #5
0
 /// <summary>
 /// Update UI
 /// </summary>
 /// <param name="text">Message text</param>
 /// <param name="progressAmount">Progress amount</param>
 private void LaunchProcessingEvent(string text, int progressAmount)
 {
     ProcessingEvent?.Invoke(text, progressAmount);
 }
コード例 #6
0
ファイル: Utilities.cs プロジェクト: tvbkhanh/Sage300-SDK
 /// <summary> Update UI </summary>
 /// <param name="text">Step name</param>
 public static void LaunchProcessingEvent(string text) => ProcessingEvent?.Invoke(text);