void OnNewActivated(object sender, System.EventArgs e) { ProfileSetupDialog d = new ProfileSetupDialog (this); if (d.Run () == (int) Gtk.ResponseType.Accept) StartProfile (d.Config); d.Destroy (); }