コード例 #1
0
		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 ();
			}
		}
コード例 #2
0
        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();
            }
        }