public MainWindowController(DbStudioViewsManager dbStudioViewsManager) { DbStudioViewsManager = dbStudioViewsManager; HostController = new HostController(DbStudioViewsManager.AppName, DbStudioViewsManager.MainWindow); HostHelperController = new HostHelperController(DbStudioViewsManager.MainWindow); Logger = new Libraries.LibLogger.Core.LogManager(); }
public SparkSolutionController(string applicationName, MainWindow mainWindow, string appPath) { // Asigna las propiedades HostController = new HostController(applicationName, mainWindow); HostHelperController = new HostHelperController(mainWindow); MainWindow = mainWindow; Logger = new Libraries.LibLogger.Core.LogManager(); AppName = applicationName; Configuration = new Libraries.BauSparkScripts.ViewModels.Configuration.ConfigurationModel(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); // Directorio de aplicación if (string.IsNullOrWhiteSpace(appPath)) { appPath = Environment.CurrentDirectory; } AppPath = System.IO.Path.Combine(appPath, applicationName); // Crea el directorio de aplicación Libraries.LibHelper.Files.HelperFiles.MakePath(appPath); }