async Task <object> IAsyncCloneable <Program> .CloneInstance(Program program) { var result = new Look(Name); var directory = program.BasePath + "/" + StorageConstants.ProgramLooksPath + "/"; using (var storage = StorageSystem.GetStorage()) { await storage.CopyFileAsync(directory + FileName, directory + result.FileName); } return(result); }
protected bool TestEquals(Look other) { return(string.Equals(_fileName, other._fileName) && string.Equals(_name, other._name)); }