Exemplo n.º 1
0
 public CMaterialRepository(MaterialServiceClient service)
 {
     _service                 = service;
     _materials               = new BindingListWithDeleteDetecting <CMaterial>();
     _toSave                  = new List <CMaterial>();
     _toDelete                = new List <int>();
     _converter               = new Client.Converter <material, CMaterial>();
     _materials.ListChanged  += Materials_ListChanged;
     _materials.RemovingItem += Materials_ListRemove;
 }
 public CTypeRepository(TypeServiceClient service)
 {
     _service             = service;
     _types               = new BindingListWithDeleteDetecting <CType>();
     _toSave              = new List <CType>();
     _toDelete            = new List <int>();
     _converter           = new Client.Converter <socksType, CType>();
     _types.ListChanged  += types_ListChanged;
     _types.RemovingItem += types_ListRemove;
 }
Exemplo n.º 3
0
 public CManufactureRepository(ManufactureServiceClient service)
 {
     _service                    = service;
     _manufactures               = new BindingListWithDeleteDetecting <CManufacture>();
     _toSave                     = new List <CManufacture>();
     _toDelete                   = new List <int>();
     _converter                  = new Client.Converter <manufacture, CManufacture>();
     _manufactures.ListChanged  += Manufactures_ListChanged;
     _manufactures.RemovingItem += Manufactures_ListRemove;
 }