Beispiel #1
0
        public ImageHistoryForm(string historyPath, int viewMode, Size thumbnailSize, int maxItemCount = -1)
        {
            InitializeComponent();
            Text = "ShareXYZ - " + string.Format("Image history: {0}", historyPath);

            HistoryPath   = historyPath;
            MaxItemCount  = maxItemCount;
            ViewMode      = viewMode;
            ThumbnailSize = thumbnailSize;

            tsbQuickList.Checked = MaxItemCount > -1;

            him = new HistoryItemManager();
            him.GetHistoryItems += him_GetHistoryItems;
        }
Beispiel #2
0
        public HistoryForm(string historyPath, int maxItemCount = -1)
        {
            InitializeComponent();
            Text = "ShareXYZ - " + string.Format(Resources.HistoryForm_HistoryForm_History_, historyPath);

            HistoryPath  = historyPath;
            MaxItemCount = maxItemCount;

            him = new HistoryItemManager();
            him.GetHistoryItems += him_GetHistoryItems;

            pbThumbnail.Reset();
            cbFilenameFilterMethod.SelectedIndex  = 0; // Contains
            cbFilenameFilterCulture.SelectedIndex = 1; // Invariant culture
            cbTypeFilterSelection.SelectedIndex   = 0; // Image
            cbFilenameFilterCulture.Items[0]      = string.Format(Resources.HistoryForm_HistoryForm_Current_culture___0__, CultureInfo.CurrentCulture.Parent.EnglishName);
            lvHistory.FillLastColumn();
        }
Beispiel #3
0
        public HistoryForm(string historyPath, int maxItemCount = -1)
        {
            InitializeComponent();
            Text = "ShareXYZ - " + string.Format(Resources.HistoryForm_HistoryForm_History_, historyPath);

            HistoryPath = historyPath;
            MaxItemCount = maxItemCount;

            him = new HistoryItemManager();
            him.GetHistoryItems += him_GetHistoryItems;

            pbThumbnail.Reset();
            cbFilenameFilterMethod.SelectedIndex = 0; // Contains
            cbFilenameFilterCulture.SelectedIndex = 1; // Invariant culture
            cbTypeFilterSelection.SelectedIndex = 0; // Image
            cbFilenameFilterCulture.Items[0] = string.Format(Resources.HistoryForm_HistoryForm_Current_culture___0__, CultureInfo.CurrentCulture.Parent.EnglishName);
            lvHistory.FillLastColumn();
        }