public void RemoveCompressor(CompressorItemControl control)
 {
     if (flwContainer.Controls.Contains(control))
     {
         flwContainer.Controls.Remove(control);
         if (Options.Compressors.Contains(control.CompressorSetting))
         {
             Options.Compressors.Remove(control.CompressorSetting);
             Options.SaveCompressors();
         }
     }
 }
        public void EditCompressor(CompressorItemControl control)
        {
            var editSetting = new CompressorSetting();

            editSetting.CopyFields(control.CompressorSetting);

            using (var dlg = new AddNewCompressor(editSetting, false))
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    var c = dlg.CompressorSetting;
                    if (CheckExistingCompressor(c, false, control.CompressorSetting))
                    {
                        return;
                    }

                    control.CompressorSetting.CopyFields(editSetting);
                    Options.SaveCompressors();
                }
            }
        }