public ImportFolderVM(JMMServerBinary.Contract_ImportFolder contract) { // read only members this.ImportFolderID = contract.ImportFolderID; this.ImportFolderName = contract.ImportFolderName; this.ImportFolderLocation = contract.ImportFolderLocation; this.IsDropSource = contract.IsDropSource; this.IsDropDestination = contract.IsDropDestination; this.IsWatched = contract.IsWatched; }
public JMMServerBinary.Contract_ImportFolder ToContract() { JMMServerBinary.Contract_ImportFolder contract = new JMMServerBinary.Contract_ImportFolder(); contract.ImportFolderID = this.ImportFolderID; contract.ImportFolderName = this.ImportFolderName; contract.ImportFolderLocation = this.ImportFolderLocation; contract.IsDropSource = this.IsDropSource; contract.IsDropDestination = this.IsDropDestination; contract.IsWatched = this.IsWatched; return(contract); }
public JMMServerBinary.Contract_ImportFolder ToContract() { JMMServerBinary.Contract_ImportFolder contract = new JMMServerBinary.Contract_ImportFolder(); contract.ImportFolderID = this.ImportFolderID; contract.ImportFolderName = this.ImportFolderName; contract.ImportFolderLocation = this.ImportFolderLocation; contract.IsDropSource = this.IsDropSource; contract.IsDropDestination = this.IsDropDestination; contract.IsWatched = this.IsWatched; return contract; }