Ejemplo n.º 1
0
        private void start_Click(object sender, EventArgs e)
        {
            start.Enabled = false;

            message.Text = "Starting";

            var service = new TodoService(this.message);
            _webServiceHost = new WebServiceHost(service, new Uri(_hostAddress));
            _webServiceHost.Open();

            message.Text = "Started";

            stop.Enabled = true;
        }