private void MarkAsUsed(string imagePath)
 {
     if (App.SettingsManager.Settings.CheckForAlreadyUsedImages)
     {
         App.SettingsManager.Settings.UsedImages.Add(Aux.GetHashCode(imagePath));
     }
 }
        private void DisplaySize(string filePath)
        {
            long size = Aux.GetSize(filePath);

            if (size == 0)
            {
                return;
            }

            long   kb     = size / 1024;
            float  mb     = kb / 1024;
            string result = "0";

            if (mb >= 1.0)
            {
                result = string.Concat(mb.ToString(), " MB");
            }
            else if (kb != 0)
            {
                result = string.Concat(kb.ToString(), " KB");
            }
            else
            {
                result = string.Concat(size.ToString(), " Bytes");
            }

            ImageSize_lbl.Content    = result;
            ImageSize_lbl.Visibility = Visibility.Visible;
        }
        private void DisplayModificationDate(string filePath)
        {
            string date = string.Empty;

            try
            {
                date = Aux.GetModificationDate(filePath).ToShortDateString();
            }
            catch (Exception ex)
            {
                CrashLogger.Instance.Log("GetModificationDate", ex.Message);
            }

            ImageModificationDate_lbl.Content =
                !string.IsNullOrEmpty(date)
                    ? string.Format(StringMessages.MODIFICATION_DATE, date)
                    : StringMessages.UNABLE_TO_GET_MODIFICATION_DATE;
            ImageModificationDate_lbl.Visibility = Visibility.Visible;
        }
 private void DisplayUsedImageLabel(string imagePath)
 {
     if (App.SettingsManager.Settings.CheckForAlreadyUsedImages && !string.IsNullOrEmpty(imagePath))
     {
         IsImageAlreadyUsed_lbl.Visibility = App.SettingsManager.Settings.UsedImages.Contains(Aux.GetHashCode(imagePath)) ?
                                             Visibility.Visible : Visibility.Hidden;
     }
 }