WCF.ClientOptions CreateClientOptions () { var options = new WCF.ClientOptions (); var dialog = new ConfigurationDialog (options); try { if (MessageService.RunCustomDialog (dialog) != (int)Gtk.ResponseType.Ok) return null; return options; } catch (Exception exception) { MessageService.ShowException (exception); return null; } finally { dialog.Destroy (); } }
WCF.ClientOptions CreateClientOptions() { var options = new WCF.ClientOptions(); var dialog = new ConfigurationDialog(options); try { if (MessageService.RunCustomDialog(dialog) != (int)Gtk.ResponseType.Ok) { return(null); } return(options); } catch (Exception exception) { MessageService.ShowException(exception); return(null); } finally { dialog.Destroy(); } }