Property | Type | Description | |
---|---|---|---|
SelectedReligion | string |
Method | Description | |
---|---|---|
AddAllMatchingFiles ( IList |
||
AddAllMatchingFiles ( IList |
||
CalculateGraphicsProportion ( |
Returns relation between current graphics resolution and default DpiY (96.0). Can be used when arranging controls and resizing forms.
|
|
CheckLabelWidthsOnForm ( |
||
CopyFileAndSetDestinationWritable ( string sourceFileName, string destFileName ) : void |
Copies the source to destination, and makes sure that the newly created destination file is not read-only.
|
|
CopyFont ( int fromSlot, int toSlot ) : void | ||
CopyMemory ( |
||
CopyTextToClipboard ( string text ) : void | ||
CreateCopyOfBitmapPreservingColourDepth ( |
||
CreateHardLink ( string destFileName, string sourceFileName ) : bool | ||
CreateHardLink ( string destFileName, string sourceFileName, bool overwrite ) : bool | ||
DeleteFileIfExists ( string fileName ) : void | ||
DoesFileNameContainOnlyValidCharacters ( string fileName ) : bool | ||
DoesFileNeedRecompile ( string sourceFile, string destinationFile ) : bool |
Returns whether the sourceFile is newer than the destinationFile or if the destinationFile doesn't exist.
|
|
EnsureStandardSubFoldersExist ( ) : void | ||
FindExistingFont ( string fontNames ) : |
Iterates given array of font family names and return the first FontFamily object that is installed in the system. If none was found, returns generic Sans-Serif system font.
|
|
GetBitmapForSpriteResizedKeepingAspectRatio ( Sprite sprite, int width, int height, bool centreInNewCanvas, bool drawOutline, Color backgroundColour ) : |
||
GetControlThatHasFocus ( ) : |
||
GetDirectoryFileList ( string directory, string fileMask ) : string[] |
Wraps Directory.GetFiles in a handler to deal with an exception erroneously being thrown on Linux network shares if no files match.
|
|
GetDirectoryFileList ( string directory, string fileMask, SearchOption searchOption ) : string[] |
Wraps Directory.GetFiles in a handler to deal with an exception erroneously being thrown on Linux network shares if no files match.
|
|
GetProcessForActiveApplication ( ) : |
||
GetRelativeToProjectPath ( string absolutePath ) : string | ||
GetSizeSpriteWillBeRenderedInGame ( int spriteSlot, int &width, int &height ) : void |
Gets the size at which the sprite will be rendered in the game. This will be the sprite size, but doubled if it is a 320-res sprite in a 640-res game.
|
|
ImageToIcon ( Image image ) : |
Converts an image to icon. Code taken from comments section in: http://ryanfarley.com/blog/archive/2004/04/06/507.aspx
|
|
IsControlPressed ( ) : bool | ||
IsMonoRunning ( ) : bool | ||
IsShiftPressed ( ) : bool | ||
IsThisApplicationCurrentlyActive ( ) : bool | ||
IsWindowsVistaOrHigher ( ) : bool | ||
IsWindowsXPOrHigher ( ) : bool | ||
OpenAGSRegistryKey ( ) : |
||
SetDirectoryFilesAccess ( string directory ) : void | ||
SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid ) : void | ||
SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights ) : void | ||
SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights, AccessControlType type ) : void |
Sets security permissions for all files in a directory.
|
|
SetFileAccess ( string fileName, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights, AccessControlType type ) : void |
Sets security permissions for a specific file.
|
Method | Description | |
---|---|---|
DestroyIcon ( |
||
GetFocus ( ) : |
||
GetForegroundWindow ( ) : |
||
GetWindowThreadProcessId ( |
public static AddAllMatchingFiles ( IList |
||
list | IList |
|
fileMask | string | |
return | void |
public static AddAllMatchingFiles ( IList |
||
list | IList |
|
fileMask | string | |
fullPaths | bool | |
return | void |
public static CalculateGraphicsProportion ( |
||
control | ||
return | float |
public static CheckLabelWidthsOnForm ( |
||
parentControl | ||
return | void |
public static CopyFileAndSetDestinationWritable ( string sourceFileName, string destFileName ) : void | ||
sourceFileName | string | |
destFileName | string | |
return | void |
public static CopyFont ( int fromSlot, int toSlot ) : void | ||
fromSlot | int | |
toSlot | int | |
return | void |
public static CopyMemory ( |
||
source | ||
destination | ||
numberOfBytes | int | |
return | void |
public static CopyTextToClipboard ( string text ) : void | ||
text | string | |
return | void |
public static CreateCopyOfBitmapPreservingColourDepth ( |
||
source | ||
return |
public static CreateHardLink ( string destFileName, string sourceFileName ) : bool | ||
destFileName | string | |
sourceFileName | string | |
return | bool |
public static CreateHardLink ( string destFileName, string sourceFileName, bool overwrite ) : bool | ||
destFileName | string | |
sourceFileName | string | |
overwrite | bool | |
return | bool |
public static DeleteFileIfExists ( string fileName ) : void | ||
fileName | string | |
return | void |
public static DoesFileNameContainOnlyValidCharacters ( string fileName ) : bool | ||
fileName | string | |
return | bool |
public static DoesFileNeedRecompile ( string sourceFile, string destinationFile ) : bool | ||
sourceFile | string | |
destinationFile | string | |
return | bool |
public static EnsureStandardSubFoldersExist ( ) : void | ||
return | void |
public static FindExistingFont ( string fontNames ) : |
||
fontNames | string | |
return |
public static GetBitmapForSpriteResizedKeepingAspectRatio ( Sprite sprite, int width, int height, bool centreInNewCanvas, bool drawOutline, Color backgroundColour ) : |
||
sprite | Sprite | |
width | int | |
height | int | |
centreInNewCanvas | bool | |
drawOutline | bool | |
backgroundColour | Color | |
return |
public static GetControlThatHasFocus ( ) : |
||
return |
public static GetDirectoryFileList ( string directory, string fileMask ) : string[] | ||
directory | string | |
fileMask | string | |
return | string[] |
public static GetDirectoryFileList ( string directory, string fileMask, SearchOption searchOption ) : string[] | ||
directory | string | |
fileMask | string | |
searchOption | SearchOption | |
return | string[] |
public static GetProcessForActiveApplication ( ) : |
||
return |
public static GetRelativeToProjectPath ( string absolutePath ) : string | ||
absolutePath | string | |
return | string |
public static GetSizeSpriteWillBeRenderedInGame ( int spriteSlot, int &width, int &height ) : void | ||
spriteSlot | int | |
width | int | |
height | int | |
return | void |
public static ImageToIcon ( Image image ) : |
||
image | Image | The image |
return |
public static IsThisApplicationCurrentlyActive ( ) : bool | ||
return | bool |
public static IsWindowsVistaOrHigher ( ) : bool | ||
return | bool |
public static OpenAGSRegistryKey ( ) : |
||
return |
public static SetDirectoryFilesAccess ( string directory ) : void | ||
directory | string | |
return | void |
public static SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid ) : void | ||
directory | string | |
sid | System.Security.Principal.SecurityIdentifier | |
return | void |
public static SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights ) : void | ||
directory | string | |
sid | System.Security.Principal.SecurityIdentifier | |
rights | FileSystemRights | |
return | void |
public static SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights, AccessControlType type ) : void | ||
directory | string | |
sid | System.Security.Principal.SecurityIdentifier | |
rights | FileSystemRights | |
type | AccessControlType | |
return | void |
public static SetFileAccess ( string fileName, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights, AccessControlType type ) : void | ||
fileName | string | |
sid | System.Security.Principal.SecurityIdentifier | |
rights | FileSystemRights | |
type | AccessControlType | |
return | void |