private void SetFileStatus(string FileName, FileStatus Status, string Message)
        {
            for (int i = 0; i < RawList.Items.Count; i++)
            {
                if (RawList.Items[i].Text == FileName)
                {
                    ListViewItem LItem = RawList.Items[i];
                    string       Size  = LItem.SubItems[1].Text;
                    string       MS    = LItem.SubItems[2].Text;
                    string       MSMS  = LItem.SubItems[3].Text;
                    LItem.SubItems.Clear();
                    LItem.Text = FileName;
                    LItem.SubItems.Add(Size);
                    LItem.SubItems.Add(MS);
                    LItem.SubItems.Add(MSMS);
                    LItem.SubItems.Add(Message);
                    switch (Status)
                    {
                    case FileStatus.Neutral: {
                        break;
                    }

                    case FileStatus.Processing: {
                        LItem.BackColor = Color.LightGoldenrodYellow;
                        break;
                    }

                    case FileStatus.Processed: {
                        LItem.BackColor = Color.FromArgb(214, 253, 200);
                        break;
                    }

                    case FileStatus.Failed: {
                        LItem.BackColor = Color.LightCoral;
                        break;
                    }
                    }
                    RawList.Items.RemoveAt(i);
                    RawList.Items.Insert(i, LItem);
                    RawList.EnsureVisible(i);
                }
            }
        }
 private void SetFileSpectra(string FileName, int MSCount, int MSMSCount)
 {
     for (int i = 0; i < RawList.Items.Count; i++)
     {
         if (RawList.Items[i].Text == FileName)
         {
             ListViewItem LItem   = RawList.Items[i];
             string       Size    = LItem.SubItems[1].Text;
             string       Message = LItem.SubItems[4].Text;
             Color        Col     = LItem.BackColor;
             LItem.SubItems.Clear();
             LItem.Text = FileName;
             LItem.SubItems.Add(Size);
             LItem.SubItems.Add(MSCount.ToString());
             LItem.SubItems.Add(MSMSCount.ToString());
             LItem.SubItems.Add(Message);
             LItem.BackColor = Col;
             RawList.Items.RemoveAt(i);
             RawList.Items.Insert(i, LItem);
             RawList.EnsureVisible(i);
         }
     }
 }