Example #1
0
        public MainForm()
        {
            InitializeComponent();

            SearchResultList.SetRenderer(new Manina.Windows.Forms.ImageListViewRenderers.ThemeRenderer());

            string path = Properties.Settings.Default.LastPath;

            if (System.IO.Directory.Exists(path))
            {
                SearchFolder.Path = path;
            }

            wizardControl1.BackButtonText  = LocalizedStrings.BackButtonText;
            wizardControl1.NextButtonText  = LocalizedStrings.NextButtonText;
            wizardControl1.CloseButtonText = LocalizedStrings.CloseButtonText;

            SearchResultList.Columns.Add(ColumnType.Name, LocalizedStrings.NameColumnName);
            SearchResultList.Columns.Add(ColumnType.FolderName, LocalizedStrings.FolderColumnName);
            SearchResultList.Columns.Add(ColumnType.DateModified, LocalizedStrings.ModifiedColumnName);
            var sizeColumn = new ImageListView.ImageListViewColumnHeader(ColumnType.Custom, "assoc_files", LocalizedStrings.AssociatedFilesColumnName, 120);

            sizeColumn.Comparer = new SizeColumnComparer();
            SearchResultList.Columns.Add(sizeColumn);
            SearchResultList.Columns.Add(ColumnType.FilePath, LocalizedStrings.FilePathColumnName);

            toolStrip1.Renderer = new ToolStripProfessionalRenderer(new CustomColorTable());
            ((ToolStripDropDownMenu)SelectFilesByDateButton.DropDown).ShowImageMargin = false;

            SelectionLabel.Text = "";
        }