static void Main(string[] args) { try { ColorImporter importer = new ColorImporter(); importer.Copy(); Console.WriteLine("Completed successfully"); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }
static void Main(string[] args) { try { ColorImporter importer = new ColorImporter(); importer.Copy(); Console.WriteLine("Completed successfully"); } catch ( Exception ex ) { Console.WriteLine(ex.ToString()); } }
static void Main(string[] args) { string source = args.Length > 0 ? args[0] : "2008"; string destination = args.Length > 1 ? args[1] : "2008"; try { ColorImporter ic = new ColorImporter(); ic.Copy(source, destination); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }