Example #1
0
        static void Main(string[] args)
        {
            MESServiceClient client = new MESServiceClient("BasicHttpBinding_IMESService");

            Console.WriteLine(client.GetData(7));
            //var departments = client.GetDepartments();

            /*foreach (var department in departments)
             * {
             *  Console.WriteLine(department.Name);
             * }*/
            //Console.WriteLine(client.InitDb());
            client.Close();
            Console.ReadKey();
        }
Example #2
0
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     client.Close();
 }