Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            #region call service to test connectivity

            //// Create a Proxy Object to communicate with the wcf service.
            //NorthwindServiceContractClient proxy = new NorthwindServiceContractClient();

            //// Call the Select Employeee Method of the service and handle the return.
            //NorthwindEmployee[] employees = proxy.SelectEmployees();

            //// always close the proxy object
            //proxy.Close();

            ////Display the Lastname of th First Employee in a messagebox
            //// MessageBox.Show("Last Name {0}", employees[0].LastName);
            //MessageBox.Show(employees[0].LastName);

            #endregion


            string[] titles = DataGateway.SelectEmployeeTitles();
            foreach (string tl in titles)
            {
                combobox1.Items.Add(tl);
            }
        }