Beispiel #1
0
        public ComboFileItem(DiffForm diff, ulong id, StorageFile file)
        {
            File = file;
            ID   = id;

            if (id == 0)
            {
                Text = file.Date.ToLocalTime().ToString();
            }
            else
            {
                Text = diff.Core.GetName(id);
            }

            if (Utilities.MemCompare(file.InternalHash, diff.Target.InternalHash))
            {
                Text += " (Identical)";
            }
            else if (!diff.Info.Storages.FileExists(file))
            {
                Text += " (Unavailable)";
            }
        }
Beispiel #2
0
        public ComboFileItem(DiffForm diff, ulong id, StorageFile file)
        {
            File = file;
            ID = id;

            if (id == 0)
                Text = file.Date.ToLocalTime().ToString();
            else
                Text = diff.Core.GetName(id);

            if (Utilities.MemCompare(file.InternalHash, diff.Target.InternalHash))
                Text += " (Identical)";
            else if(!diff.Info.Storages.FileExists(file) )
                Text += " (Unavailable)";
        }