public static int Main(string[] args) { string base_path = null; string target_path = null; foreach (string arg in args) { if (arg.StartsWith("--base=")) { base_path = arg.Substring(7); } else if (arg.StartsWith("--target=")) { target_path = arg.Substring(9); } } ComparisonInfo info = null; if (args.Length > 0) { if (base_path == null || target_path == null) { Console.Error.WriteLine("Usage: ilcontrast [--base=<path> --target=<path>]"); return(1); } info = new ComparisonInfo(base_path, target_path); } Gtk.Application.Init(); if (!Directory.Exists(DataPath)) { Directory.CreateDirectory(DataPath); TarArchive tar = TarArchive.CreateInputTarArchive(System.Reflection.Assembly.GetCallingAssembly().GetManifestResourceStream("deploy.tar")); tar.ExtractContents(DataPath); } IlContrast.Window win = new IlContrast.Window(info); win.Show(); Gtk.Application.Run(); return(0); }
public static int Main(string[] args) { string base_path = null; string target_path = null; foreach (string arg in args) { if (arg.StartsWith ("--base=")) base_path = arg.Substring (7); else if (arg.StartsWith ("--target=")) target_path = arg.Substring (9); } ComparisonInfo info = null; if (args.Length > 0) { if (base_path == null || target_path == null) { Console.Error.WriteLine ("Usage: ilcontrast [--base=<path> --target=<path>]"); return 1; } info = new ComparisonInfo (base_path, target_path); } Gtk.Application.Init(); if (!Directory.Exists (DataPath)) { Directory.CreateDirectory (DataPath); TarArchive tar = TarArchive.CreateInputTarArchive (System.Reflection.Assembly.GetCallingAssembly ().GetManifestResourceStream ("deploy.tar")); tar.ExtractContents (DataPath); } IlContrast.Window win = new IlContrast.Window (info); win.Show (); Gtk.Application.Run (); return 0; }