C# Class MTMCL.MeCore

Show file Open project: cvronmin/metocraft

Public Properties

Property Type Description
BaseDirectory string
Color MahApps.Metro.Accent>.Dictionary
Config Config
DataDirectory string
DefaultBG string
Dispatcher System.Windows.Threading.Dispatcher
IsServerDedicated bool
Language object>.Dictionary
MainWindow MainWindow
bghistory MTMCL.Resources.BGHistory
needGuide bool
version string

Public Methods

Method Description
ChangeLanguage ( string lang ) : void
Halt ( int code ) : void
Invoke ( Delegate invoke, object argObjects = null ) : void
ReleaseCheck ( ) : void
SingleInstance ( Window window ) : void

Private Methods

Method Description
LoadColor ( ) : void
LoadConfig ( string path ) : void
LoadLanguage ( ) : void
LoadTheme ( ) : void
MeCore ( ) : MTMCL.Lang
OnAnotherProgramStarted ( object state, bool timedout ) : void
Refresh ( ) : void
UpdateCheckerOnCheckFinishEvent ( bool hasUpdate, string updateAddr, string updateinfo, int updateBuild ) : void

Method Details

ChangeLanguage() public static method

public static ChangeLanguage ( string lang ) : void
lang string
return void

Halt() public static method

public static Halt ( int code ) : void
code int
return void

Invoke() public static method

public static Invoke ( Delegate invoke, object argObjects = null ) : void
invoke System.Delegate
argObjects object
return void

ReleaseCheck() public static method

public static ReleaseCheck ( ) : void
return void

SingleInstance() public static method

public static SingleInstance ( Window window ) : void
window System.Windows.Window
return void

Property Details

BaseDirectory public static property

public static string BaseDirectory
return string

Color public static property

public static Dictionary Color
return MahApps.Metro.Accent>.Dictionary

Config public static property

public static Config,MTMCL Config
return Config

DataDirectory public static property

public static string DataDirectory
return string

DefaultBG public static property

public static string DefaultBG
return string

Dispatcher public static property

public static Dispatcher,System.Windows.Threading Dispatcher
return System.Windows.Threading.Dispatcher

IsServerDedicated public static property

public static bool IsServerDedicated
return bool

Language public static property

public static Dictionary Language
return object>.Dictionary

MainWindow public static property

public static MainWindow,MTMCL MainWindow
return MainWindow

bghistory public static property

public static BGHistory,MTMCL.Resources bghistory
return MTMCL.Resources.BGHistory

needGuide public static property

public static bool needGuide
return bool

version public static property

public static string version
return string