- bse.platten_en.zip
- BSE.Platten
- BSE.CoverFlow.WPFLib
- BSE.Platten.Admin.WinApp
- BSE.Platten.Admin
- BSE.Platten.Audio
- BSE.Platten.BO
- BSE.Platten.Common
- BSE.Platten.Covers
- BSE.Platten.FreeDb
- BSE.Platten.Ripper
- BSE.Platten.sln
- BSE.Platten.Statistik
- BSE.Platten.Tunes
- BSEadminSetup
- BSEadminSetup.vdproj
- Debug
- Release
- BSEtunesSetup
- BSEtunesSetup.vdproj
- Debug
- Release
- dll
- BSE.CDDrives.DLL
- BSE.Charts.DLL
- BSE.Configuration.DLL
- BSE.RemovableDrives.DLL
- BSE.Shell.DLL
- BSE.ThreadedShell.DLL
- BSE.Windows.Forms.DLL
- Lame
- lame_enc.dll
- lame-3.97
- mysql.chm.zip
- MySQL.chm
- mysqlcreatedatabase5x.sql.zip
- BSE.Platten.zip
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using BSE.Platten.Common;
namespace BSE.Platten.Audio
{
public partial class CAudioImportConfigurationControl : BaseConfigurationControl
{
#region Properties
public bool EnableAudioImportOptions
{
get { return this.m_fileOptions.Enabled; }
set { this.m_fileOptions.Enabled = value; }
}
#endregion
#region MethodsPublic
public CAudioImportConfigurationControl()
{
InitializeComponent();
}
public override void LoadConfigurationValues(BSE.Configuration.CConfiguration configuration)
{
if (configuration == null)
{
throw new ArgumentNullException("configuration",
string.Format(System.Globalization.CultureInfo.InvariantCulture,
Properties.Resources.IDS_ArgumentNullException ,
"configuration"));
}
AudioImportConfigurationData configurationObject =
GetConfiguration(configuration) as AudioImportConfigurationData;
if (configurationObject != null)
{
if (configurationObject.FileOperations == BSE.Shell.ShellFileOperation.FileOperations.FO_MOVE)
{
this.m_chkCopyOrMove.Checked = false;
}
if (configurationObject.FileOperations == BSE.Shell.ShellFileOperation.FileOperations.FO_COPY)
{
this.m_chkCopyOrMove.Checked = true;
}
}
this.m_fileOptions.LoadConfigurationValues(configuration);
}
public override void SaveConfigurationValues(BSE.Configuration.CConfiguration configuration)
{
AudioImportConfigurationData configurationObject = new AudioImportConfigurationData();
if (this.m_chkCopyOrMove.Checked == true)
{
configurationObject.FileOperations = BSE.Shell.ShellFileOperation.FileOperations.FO_COPY;
}
else
{
configurationObject.FileOperations = BSE.Shell.ShellFileOperation.FileOperations.FO_MOVE;
}
configuration.SetValue(
OptionsConfiguration,
typeof(AudioImportConfigurationData).Name,
configurationObject);
if (this.m_fileOptions.Enabled == true)
{
this.m_fileOptions.SaveConfigurationValues(configuration);
}
OnConfigChanging(new System.EventArgs());
}
public static IConfigurationData GetConfiguration(BSE.Configuration.CConfiguration configuration)
{
if (configuration == null)
{
throw new ArgumentNullException("configuration",
string.Format(System.Globalization.CultureInfo.InvariantCulture,
Properties.Resources.IDS_ArgumentNullException,
"configuration"));
}
return configuration.GetValue(
BSE.Platten.Common.BaseConfigurationControl.OptionsConfiguration,
typeof(AudioImportConfigurationData).Name,
new AudioImportConfigurationData()) as AudioImportConfigurationData;
}
public void SetSaveOptionsCheckBox(CheckBox changedCheckBox)
{
this.m_fileOptions.SetSaveCheckBox(changedCheckBox);
}
#endregion
#region MethodsPrivate
private void m_chkCopyOrMove_Click(object sender, EventArgs e)
{
OnConfigChanging(new EventArgs());
}
private void m_fileOptions_ConfigChange(object sender, EventArgs e)
{
OnConfigChanging(new EventArgs());
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.