/// <summary> /// Нажатие на кнопку применения миграции /// </summary> private void UpButton_Click(object sender, EventArgs e) { var lines = new List <string>(MigrationMemoEdit.Lines) { string.Format("Migration {0} started.", MigrationsComboBox.Text) }; string resultString = null; var process = new StatusProcess(); process.StartOperation(() => { resultString = ViewModelExtension.RunMigration(Version, Value.Name.ToString(), MigrationsComboBox.Text, GetParameterValues()); }); process.EndOperation(); lines.AddRange(resultString .Replace("\\r", "\r") .Replace("\\n", "\n") .Replace("\"", "") .Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries)); MigrationMemoEdit.Lines = lines.ToArray(); MigrationMemoEdit.SelectionStart = MigrationMemoEdit.Text.Length; MigrationMemoEdit.ScrollToCaret(); }