private Psf2.Psf2IniSqIrxStruct UpdateClsIniFile( Psf2.Psf2IniSqIrxStruct newIniFile, Psf2.Psf2IniSqIrxStruct oldIniFile, bool removeEmptyEntries) { Psf2.Psf2IniSqIrxStruct ret = new Psf2.Psf2IniSqIrxStruct(); ret.SqFileName = GetUpdatedValue(oldIniFile.SqFileName, newIniFile.SqFileName, false); ret.HdFileName = GetUpdatedValue(oldIniFile.HdFileName, newIniFile.HdFileName, false); ret.BdFileName = GetUpdatedValue(oldIniFile.BdFileName, newIniFile.BdFileName, false); ret.SequenceNumber = GetUpdatedValue(oldIniFile.SequenceNumber, newIniFile.SequenceNumber, removeEmptyEntries); ret.TimerTickInterval = GetUpdatedValue(oldIniFile.TimerTickInterval, newIniFile.TimerTickInterval, removeEmptyEntries); ret.Reverb = GetUpdatedValue(oldIniFile.Reverb, newIniFile.Reverb, removeEmptyEntries); ret.Depth = GetUpdatedValue(oldIniFile.Depth, newIniFile.Depth, removeEmptyEntries); ret.Tempo = GetUpdatedValue(oldIniFile.Tempo, newIniFile.Tempo, removeEmptyEntries); ret.Volume = GetUpdatedValue(oldIniFile.Volume, newIniFile.Volume, removeEmptyEntries); return(ret); }
private void grpSourceFiles_DragDrop(object sender, DragEventArgs e) { string[] s = (string[])e.Data.GetData(DataFormats.FileDrop, false); Psf2SettingsUpdaterWorker.Psf2SettingsUpdaterStruct bwStruct = new Psf2SettingsUpdaterWorker.Psf2SettingsUpdaterStruct(); Psf2.Psf2IniSqIrxStruct iniValues = new Psf2.Psf2IniSqIrxStruct(); iniValues.SqFileName = this.tbSqFile.Text; iniValues.HdFileName = this.tbHdFile.Text; iniValues.BdFileName = this.tbBdFile.Text; iniValues.SequenceNumber = this.tbSequenceNumber.Text; iniValues.TimerTickInterval = this.tbTickInterval.Text; iniValues.Reverb = this.tbReverb.Text; iniValues.Depth = this.tbDepth.Text; iniValues.Tempo = this.tbTempo.Text; iniValues.Volume = this.tbVolume.Text; bwStruct.IniSettings = iniValues; bwStruct.SourcePaths = s; base.backgroundWorker_Execute(bwStruct); }