using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using System.ServiceModel;

namespace MessageClient
{
    public partial class Form1 : Form
    {

        ServiceReference1.MessageServiceClient client;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void btnSend_Click(object sender, EventArgs e)
        {
            client = new
                MessageClient.ServiceReference1.MessageServiceClient();
            client.SetMessage(textBox1.Text);
            client.Close();
        }
    }
}
