Пример #1
0
        public void LoadSourceHome(int brandid, string homename)
        {
            SQSSourceHome.Clear();
            client = new SQSAdminServiceClient();
            client.Endpoint.Address = new System.ServiceModel.EndpointAddress(CommonVariables.WcfEndpoint);
            DataSet ds = client.SQSAdmin_HomeMinimumArea_GetSourceHomeByBrand(brandid, homename);

            client.Close();
            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                Home b = new Home();
                b.HomeID     = int.Parse(dr["homeid"].ToString());
                b.HomeName   = dr["homename"].ToString();
                b.Configured = true;
                SQSSourceHome.Add(b);
            }
        }