public void GetAllKinds()
 {
     using (FixedAssetsWebService.KindServiceClient Client = new FixedAssetsWebService.KindServiceClient())
     {
         Client.Open();
         object[] list = Client.GetAllKinds();
         foreach (Kind kind in list)
         {
             kinds.Add(kind);
         }
     }
 }
        public static int GetIdByNameWebServiceMethod(string name)
        {

            using (FixedAssetsWebService.KindServiceClient Client = new FixedAssetsWebService.KindServiceClient())
            {
                Client.Open();
                Kind kind = Client.GetKindByName(name);
                if (kind != null)
                {
                    return kind.id;
                }
                else
                {
                    return 0;
                }
            }
        }
 public static string GetNameByIdWebServiceMethod(int id)
 {
     string name = string.Empty;
     using (FixedAssetsWebService.KindServiceClient Client = new FixedAssetsWebService.KindServiceClient())
     {
         Client.Open();
         Kind kind = Client.GetKindById(id);
         if (kind != null)
         {
             return kind.name;
         }
         else
         {
             return string.Empty;
         }
     }
 }