private static void updateAll() { Console.WriteLine("Updating All projects"); var copyError = CopyPackages.Run(ProjectData.Load()); if (copyError.error) { foreach (var error in copyError.messages) { Console.Error.WriteLine(error.title); Console.Error.WriteLine(error.message); Console.Error.WriteLine(""); } } Console.WriteLine("Finished"); }
private void UpdateButton_Click(object sender, EventArgs e) { this.UpdateButton.Enabled = false; var copyError = CopyPackages.Run(this.data); if (copyError.error) { foreach (var error in copyError.messages) { MessageBox.Show(error.message, error.title, MessageBoxButtons.OK, MessageBoxIcon.Error); } } MessageBox.Show("Finished Coping", "Finished", MessageBoxButtons.OK, MessageBoxIcon.Information); this.UpdateButton.Enabled = true; }