C# 클래스 Artemis.DAL.ProfileProvider

파일 보기 프로젝트 열기: SpoinkyNL/Artemis

공개 메소드들

메소드 설명
AddOrUpdate ( ProfileModel prof ) : void

Adds or update the given profile. Updates occur when a profile with the same name and game exist.

DeleteProfile ( ProfileModel prof ) : void
ExportProfile ( ProfileModel prof, string path ) : void

Exports the given profile to the provided path in XML

GetAll ( ) : List

Get all profiles

GetAll ( EffectModel game, KeyboardProvider keyboard ) : List

Get all profiles matching the provided game

InsertGif ( IEnumerable profileModels, string layerName, Bitmap gifFile, string fileName ) : void
LoadProfileIfValid ( string path ) : ProfileModel

Attempts to load a profile from a given path

RenameProfile ( ProfileModel profile, string name ) : void

Renames the profile on the model and filesystem

비공개 메소드들

메소드 설명
CheckProfiles ( ) : void

Makes sure the profile directory structure is in order and places default profiles

InstallDefaults ( ) : void

Unpacks the default profiles into the profile directory

ReadProfiles ( ) : void

메소드 상세

AddOrUpdate() 공개 정적인 메소드

Adds or update the given profile. Updates occur when a profile with the same name and game exist.
public static AddOrUpdate ( ProfileModel prof ) : void
prof Artemis.Profiles.ProfileModel The profile to add or update
리턴 void

DeleteProfile() 공개 정적인 메소드

public static DeleteProfile ( ProfileModel prof ) : void
prof Artemis.Profiles.ProfileModel
리턴 void

ExportProfile() 공개 정적인 메소드

Exports the given profile to the provided path in XML
public static ExportProfile ( ProfileModel prof, string path ) : void
prof Artemis.Profiles.ProfileModel The profile to export
path string The path to save the profile to
리턴 void

GetAll() 공개 정적인 메소드

Get all profiles
public static GetAll ( ) : List
리턴 List

GetAll() 공개 정적인 메소드

Get all profiles matching the provided game
public static GetAll ( EffectModel game, KeyboardProvider keyboard ) : List
game Artemis.Models.EffectModel The game to match
keyboard Artemis.DeviceProviders.KeyboardProvider The keyboard to match
리턴 List

InsertGif() 공개 정적인 메소드

public static InsertGif ( IEnumerable profileModels, string layerName, Bitmap gifFile, string fileName ) : void
profileModels IEnumerable
layerName string
gifFile System.Drawing.Bitmap
fileName string
리턴 void

LoadProfileIfValid() 공개 정적인 메소드

Attempts to load a profile from a given path
public static LoadProfileIfValid ( string path ) : ProfileModel
path string The absolute path to load the profile from
리턴 Artemis.Profiles.ProfileModel

RenameProfile() 공개 정적인 메소드

Renames the profile on the model and filesystem
public static RenameProfile ( ProfileModel profile, string name ) : void
profile Artemis.Profiles.ProfileModel The profile to rename
name string The new name
리턴 void