Пример #1
0
        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);
        }
Пример #2
0
 protected bool TestEquals(Look other)
 {
     return(string.Equals(_fileName, other._fileName) &&
            string.Equals(_name, other._name));
 }