Ejemplo n.º 1
0
 public HistoryForm(string databasePath, int maxItemCount, string title)
 {
     InitializeComponent();
     DatabasePath = databasePath;
     MaxItemCount = maxItemCount;
     this.Text = title;
     him = new HistoryItemManager(lvHistory);
     ResetControls();
     cbFilenameFilterMethod.SelectedIndex = 0; // Contains
     cbFilenameFilterCulture.SelectedIndex = 1; // Invariant culture
     cbTypeFilterSelection.SelectedIndex = 0; // Image
     cbFilenameFilterCulture.Items[0] = string.Format("Current culture ({0})", CultureInfo.CurrentCulture.Parent.EnglishName);
     pbThumbnail.LoadingImage = LoadImageFromResources("Loading.gif");
     lvHistory.FillLastColumn();
 }
        public ImageHistoryForm(string historyPath, int viewMode, Size thumbnailSize, int maxItemCount = -1)
        {
            InitializeComponent();
            Icon = Resources.ShareX_Icon;

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

            tsbQuickList.Checked = MaxItemCount > -1;

            him = new HistoryItemManager();
            him.GetHistoryItems += him_GetHistoryItems;
        }
Ejemplo n.º 3
0
 public HistoryForm(string databasePath, int maxItemCount, string title)
 {
     InitializeComponent();
     DatabasePath = databasePath;
     MaxItemCount = maxItemCount;
     this.Text    = title;
     him          = new HistoryItemManager(lvHistory);
     ResetControls();
     cbFilenameFilterMethod.SelectedIndex  = 0; // Contains
     cbFilenameFilterCulture.SelectedIndex = 1; // Invariant culture
     cbTypeFilterSelection.SelectedIndex   = 0; // Image
     cbFilenameFilterCulture.Items[0]      = string.Format("Current culture ({0})", CultureInfo.CurrentCulture.Parent.EnglishName);
     pbThumbnail.LoadingImage = LoadImageFromResources("Loading.gif");
     lvHistory.FillLastColumn();
 }
Ejemplo n.º 4
0
        public ImageHistoryForm(string historyPath, int viewMode, Size thumbnailSize, int maxItemCount = -1)
        {
            InitializeComponent();
            Icon = ShareXResources.Icon;

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

            tsbQuickList.Checked = MaxItemCount > -1;

            him = new HistoryItemManager();
            him.GetHistoryItems += him_GetHistoryItems;
        }
Ejemplo n.º 5
0
        public HistoryForm(string historyPath, int maxItemCount = -1)
        {
            InitializeComponent();
            Icon = ShareXResources.Icon;

            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("Current culture ({0})", CultureInfo.CurrentCulture.Parent.EnglishName);
            lvHistory.FillLastColumn();
        }
Ejemplo n.º 6
0
        public HistoryForm(string historyPath, int maxItemCount = -1)
        {
            InitializeComponent();
            Icon = Resources.ShareX_Icon;

            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("Current culture ({0})", CultureInfo.CurrentCulture.Parent.EnglishName);
            lvHistory.FillLastColumn();
        }