public static STR_ApplicationConfig BuildFromConfigPackage(STR_ConfigPackage strcpConfigPackage, STR_ConfigMode estrscMode, STR_ConfigStatus estrcsStatus) { return(NewConfig(strcpConfigPackage.Title, strcpConfigPackage.WidthPx, strcpConfigPackage.HeightPx, estrscMode, estrcsStatus)); }
public static STR_ApplicationConfig NewConfig(string sWindowTitle, int iWindowWidth, int iWindowHeight, STR_ConfigMode estrscMode, STR_ConfigStatus estrcsStatus) { switch (estrscMode) { case STR_ConfigMode.APP: goto default; case STR_ConfigMode.ENGINE: return((STR_ConsoleSupport.NATIVE_CONSOLE_CONFIG) new STR_ConsoleSupport.NATIVE_CONSOLE_CONFIG(sWindowTitle, iWindowWidth, iWindowHeight)); default: return(null); } }