public FixedAssetsApp.FixedAssetsWebService.Section CloneSection(FixedAssetsApp.FixedAssetsWebService.Section section) { FixedAssetsApp.FixedAssetsWebService.Section temp = new FixedAssetsWebService.Section(); temp.email = section.email; temp.id = section.id; temp.locality = section.locality; temp.name = section.name; temp.phone_number = section.phone_number; temp.post = section.post; temp.postal_code = section.postal_code; temp.short_name = section.short_name; temp.street = section.street; return temp; }
private void ChangeCurrentRow(SectionPresenter sectionPresenter, SectionEditPresenter sectionEdit, FixedAssetsApp.FixedAssetsWebService.Section obj) { FixedAssetsApp.FixedAssetsWebService.Section section = ((FixedAssetsApp.FixedAssetsWebService.Section)sectionEdit.View.DataContext); obj.email = section.email; obj.id = section.id; obj.locality = section.locality; obj.name = section.name; obj.phone_number = section.phone_number; obj.post = section.post; obj.postal_code = section.postal_code; obj.short_name = section.short_name; obj.street = section.street; sectionPresenter.View.dataGridSections.Items.Refresh(); }