public static void Main(string[] args) { string url = (args.Length > 0) ? args[0] : ""; Application.Init (); MainWindow window = new MainWindow (url); window.Show (); Application.Run (); }
void NewWindow_Activated(object sender, EventArgs args) { MainWindow anotherWindow = new MainWindow (url); anotherWindow.Show (); }