/// <summary> /// Muestra un cuadro de mensaje para introducir un texto multilínea /// </summary> public SystemControllerEnums.ResultType ShowInputMultilineString(string message, ref string input) { SystemControllerEnums.ResultType type; Forms.Dialogs.InputBoxView view = new Forms.Dialogs.InputBoxView(this, message, input); // Muestra el cuadro de diálogo type = new HostDialogsController(ApplicationName, MainWindow).ShowDialog(MainWindow, view); // Si se ha aceptado, recoge el texto if (type == SystemControllerEnums.ResultType.Yes) { input = view.InputText; } // Devuelve el resultado return(type); }
public HostController(string applicationName, System.Windows.Window mainWindow) { DialogsController = new HostDialogsController(applicationName, mainWindow); SystemController = new HostSystemController(applicationName, mainWindow); SystemControllerAsync = new HostSystemControllerAsync(applicationName, mainWindow); }