Example #1
0
 private void HandleProcessClickEvent(EventArgs e)
 {
     try
     {
         var rootFolder = txtFolderpath.Text;
         var taskId     = LogManager.StartNewTask(rootFolder, dtpTargetDate.Value);
         var columnData = new string[] { $"{LogManagement.TaskStates.Pending} - {0}%", rootFolder };
         LvwManager.AddRow(columnData, taskId);
     }
     catch (Exception ex)
     {
         UpdateToolbarStatus($"Folder path is not valid. Details: {ex.Message}", ToolbarMessageTypes.KnownError);
     }
 }
Example #2
0
 private void LogManagement_ProgressUpdate(object sender, LogManagement.ProgressUpdateEventArgs e)
 {
     this.Invoke((Action) delegate
     {
         try
         {
             lblCurrentFile.Text = e.Filepath;
             LvwManager.UpdateRow(e.TaskId, $"{e.State} - {e.Percentage}%");
         }
         catch (Exception ex)
         {
             UpdateToolbarStatus(ex.Message, ToolbarMessageTypes.UnknownError);
         }
     });
 }