public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Perform any additional setup after loading the view, typically from a nib.

            // Dismiss editing
            var tap = new UITapGestureRecognizer();

            tap.AddTarget(() => {
                this.View.EndEditing(true);
            });
            this.View.AddGestureRecognizer(tap);


            buttonSubscribe.TouchUpInside
                += buttonSubscribe_Clicked;
            buttonUnsubscribe.TouchUpInside
                += buttonUnsubscribe_Clicked;
            buttonNotify.TouchUpInside += buttonNotify_Clicked;

            client = new HttpMessageBus.DLL_Client.Common.Client();

            this.textBoxPort.Text          = client.Port.ToString();
            this.textBoxHostIPAddress.Text = client.HostIPAddress;

            client.ResponseStringChanged += HandleResponseStringChanged;

            return;
        }
        public Form1()
        {
            InitializeComponent();

            buttonSubscribe.Click
                += buttonSubscribe_Clicked;
            buttonUnsubscribe.Click
                += buttonUnsubscribe_Clicked;
            buttonNotify.Click
                += buttonNotify_Clicked;


            client = new HttpMessageBus.DLL_Client.Common.Client();

            this.textBoxPort.Text          = client.Port.ToString();
            this.textBoxHostIPAddress.Text = client.HostIPAddress;

            client.ResponseStringChanged += HandleResponseStringChanged;

            return;
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            buttonSubscribe   = FindViewById <Button>(Resource.Id.buttonSubscribe);
            buttonUnsubscribe = FindViewById <Button>(Resource.Id.buttonUnsubscribe);
            buttonNotify      = FindViewById <Button>(Resource.Id.buttonNotify);

            textBoxPort          = FindViewById <EditText>(Resource.Id.textBoxPort);
            textBoxHostIPAddress = FindViewById <EditText>(Resource.Id.textBoxHostIPAddress);
            textBoxMessage       = FindViewById <EditText>(Resource.Id.textBoxMessage);
            textBoxMessages      = FindViewById <EditText>(Resource.Id.textBoxMessages);
            textBoxChannel       = FindViewById <EditText>(Resource.Id.textBoxChannel);

            buttonSubscribe.Click
                += buttonSubscribe_Clicked;
            buttonUnsubscribe.Click
                += buttonUnsubscribe_Clicked;
            buttonNotify.Click
                += buttonNotify_Clicked;


            client = new HttpMessageBus.DLL_Client.Common.Client();

            this.textBoxPort.Text          = client.Port.ToString();
            this.textBoxHostIPAddress.Text = client.HostIPAddress;

            client.ResponseStringChanged += HandleResponseStringChanged;

            return;
        }