private void LoadOrCreate()
        {
            // If we do not have a existing settingsfile we create a default setting
            if (!File.Exists(mSettingsFileName))
            {
                mLoadedSettingsObject = new T();

                // Create path if it does not already exists
                string path = Path.GetDirectoryName(mSettingsFileName);

                if (!Directory.Exists(path))
                    Directory.CreateDirectory(path);

                // Save the new object
                ObjectLoader<T>.SaveFile(mSettingsFileName, mLoadedSettingsObject);
            }
            else
            {
                mLoadedSettingsObject = ObjectLoader<T>.LoadFile(mSettingsFileName);
            }
        }
 public void Commit()
 {
     ObjectLoader<T>.SaveFile(mSettingsFileName, mLoadedSettingsObject);
 }