private void process_Exited(object sender, EventArgs e) { if (ProcessingEvent != null) { ProcessingEvent.Invoke(ProcessEvent.ProcessExit); } }
private void ProcessFail(Exception e) { _LastException = e; if (ProcessingEvent != null) { ProcessingEvent.Invoke(ProcessEvent.PrcossExitWithFail); } }
private void OutputHandler(object sendingProcess, DataReceivedEventArgs outLine) { _logging.Add(outLine.Data); if (ProcessingEvent != null) { ProcessingEvent.Invoke(ProcessEvent.MessageRecieved); } }
/// <summary> Update UI </summary> /// <param name="text">Step name</param> private void LaunchProcessingEvent(string text) => ProcessingEvent?.Invoke(text);
/// <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); }
/// <summary> Update UI </summary> /// <param name="text">Step name</param> public static void LaunchProcessingEvent(string text) => ProcessingEvent?.Invoke(text);