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(); }
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { client.Close(); }