C# Class SpriteEditor.FileAssociationHelper

ファイルを表示 Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method Description
Associate ( ) : void

Associates the currently running executable with the file Extension

CheckStatus ( ) : void

Refreshes the IsEditor, IsOpener, CurrentEditor, and CurrentOpener properties by checking the Registry.

FileAssociationHelper ( ) : System

Until the Exception property is set, the IsEditor, IsOpener, CurrentEditor, and CurrentOpener properties will be initialized to default values.

FileAssociationHelper ( string extension ) : System

Private Methods

Method Description
CheckAssociation ( RegistryKey associationKey ) : bool
GetAssemblyCommand ( ) : string
GetAssociationKey ( string subKey, string associationKey ) : RegistryKey
GetCreateSubKey ( RegistryKey parentKey, string subkeyPath ) : RegistryKey
GetCreateSubKey ( RegistryKey parentKey, string subkeyPath, string valueIfNull ) : RegistryKey
Refresh ( RegistryKey key, bool &_isExe, string &_currentExe ) : void

Method Details

Associate() public method

Associates the currently running executable with the file Extension
public Associate ( ) : void
return void

CheckStatus() public method

Refreshes the IsEditor, IsOpener, CurrentEditor, and CurrentOpener properties by checking the Registry.
public CheckStatus ( ) : void
return void

FileAssociationHelper() public method

Until the Exception property is set, the IsEditor, IsOpener, CurrentEditor, and CurrentOpener properties will be initialized to default values.
public FileAssociationHelper ( ) : System
return System

FileAssociationHelper() public method

public FileAssociationHelper ( string extension ) : System
extension string
return System