Example #1
0
        /// <summary>
        /// New tree panel with the explorer.
        /// </summary>
        /// <param name="explorer">The panel explorer.</param>
        public TreePanel(TreeExplorer explorer)
            : base(explorer)
        {
            IgnoreDirectoryFlag = true;             // _090810_180151

            SortMode = PanelSortMode.Unsorted;

            // columns
            SetColumn cO = new SetColumn()
            {
                Kind = "O", Name = "Name"
            };
            SetColumn cZ = new SetColumn()
            {
                Kind = "Z", Name = "Description"
            };

            // mode: tree column and description status
            PanelPlan plan0 = new PanelPlan();

            plan0.Columns       = new FarColumn[] { cO };
            plan0.StatusColumns = new FarColumn[] { cZ };
            SetPlan((PanelViewMode)0, plan0);

            // mode: tree and description columns
            PanelPlan plan1 = new PanelPlan();

            plan1.Columns = new FarColumn[] { cO, cZ };
            SetPlan((PanelViewMode)1, plan1);
        }
Example #2
0
        /// <summary>
        /// New tree panel with the explorer.
        /// </summary>
        /// <param name="explorer">The panel explorer.</param>
        public TreePanel(TreeExplorer explorer)
            : base(explorer)
        {
            IgnoreDirectoryFlag = true; // _090810_180151

            SortMode = PanelSortMode.Unsorted;

            // columns
            SetColumn cO = new SetColumn() { Kind = "O", Name = "Name" };
            SetColumn cZ = new SetColumn() { Kind = "Z", Name = "Description" };

            // mode: tree and description columns
            PanelPlan plan0 = new PanelPlan();
            plan0.Columns = new FarColumn[] { cO, cZ };
            SetPlan((PanelViewMode)0, plan0);

            // mode: tree column and description status
            PanelPlan plan1 = new PanelPlan();
            plan1.Columns = new FarColumn[] { cO };
            plan1.StatusColumns = new FarColumn[] { cZ };
            SetPlan((PanelViewMode)1, plan1);
        }