예제 #1
0
        public static List <ExRepListViewColumn> GetColumnCollection()
        {
            List <ExRepListViewColumn> columns = new List <ExRepListViewColumn>();

            // Name column is required and should always be added
            ExRepListViewColumnName colName = new ExRepListViewColumnName();

            colName.Index     = 0;
            colName.Width     = 300;
            colName.Presenter = new ExRepListViewColumnNamePresenterDefault();
            columns.Add(colName);

            // todo: read from config file
            ExRepListViewColumnSize colSize = new ExRepListViewColumnSize();

            colSize.Index     = 1;
            colSize.Width     = 85;
            colSize.Alignment = HorizontalAlignment.Right;
            colSize.Presenter = new ExRepListViewColumnSizePresenterThousandSeparated();
            columns.Add(colSize);

            ExRepListViewColumnDateModified colDateModified = new ExRepListViewColumnDateModified();

            colDateModified.Index     = 2;
            colDateModified.Width     = 120;
            colDateModified.Presenter = new ExRepListViewColumnDateModifiedPresenterSortablePattern();
            columns.Add(colDateModified);

            ExRepListViewColumnExtension colExtension = new ExRepListViewColumnExtension();

            colExtension.Index     = 4;
            colExtension.Width     = 50;
            colExtension.Presenter = new ExRepListViewColumnExtensionPresenterLowerCase();
            columns.Add(colExtension);

            ExRepListViewColumnAttributes colAttributes = new ExRepListViewColumnAttributes();

            colAttributes.Index      = 3;
            colAttributes.Width      = 80;
            colAttributes.Presenter  = new ExRepListViewColumnAttributesPresenterDefault();
            colAttributes.FontFamily = new FontFamily(GenericFontFamilies.Monospace);
            columns.Add(colAttributes);

            return(columns);
        }
예제 #2
0
파일: Configuration.cs 프로젝트: almx/ExRep
        public static List<ExRepListViewColumn> GetColumnCollection()
        {
            List<ExRepListViewColumn> columns = new List<ExRepListViewColumn>();

            // Name column is required and should always be added
            ExRepListViewColumnName colName = new ExRepListViewColumnName();
            colName.Index = 0;
            colName.Width = 300;
            colName.Presenter = new ExRepListViewColumnNamePresenterDefault();
            columns.Add(colName);

            // todo: read from config file
            ExRepListViewColumnSize colSize = new ExRepListViewColumnSize();
            colSize.Index = 1;
            colSize.Width = 85;
            colSize.Alignment = HorizontalAlignment.Right;
            colSize.Presenter = new ExRepListViewColumnSizePresenterThousandSeparated();
            columns.Add(colSize);

            ExRepListViewColumnDateModified colDateModified = new ExRepListViewColumnDateModified();
            colDateModified.Index = 2;
            colDateModified.Width = 120;
            colDateModified.Presenter = new ExRepListViewColumnDateModifiedPresenterSortablePattern();
            columns.Add(colDateModified);

            ExRepListViewColumnExtension colExtension = new ExRepListViewColumnExtension();
            colExtension.Index = 4;
            colExtension.Width = 50;
            colExtension.Presenter = new ExRepListViewColumnExtensionPresenterLowerCase();
            columns.Add(colExtension);

            ExRepListViewColumnAttributes colAttributes = new ExRepListViewColumnAttributes();
            colAttributes.Index = 3;
            colAttributes.Width = 80;
            colAttributes.Presenter = new ExRepListViewColumnAttributesPresenterDefault();
            colAttributes.FontFamily = new FontFamily(GenericFontFamilies.Monospace);
            columns.Add(colAttributes);

            return columns;
        }