Esempio n. 1
0
        public CConsoleView(CAbstractConsole console, float width, float height)
            : base(console.Capacity, width, height)
        {
            m_console = console;

            this.ConsoleDelegate = this;
            this.DataSource      = this;
            this.Delegate        = this;

            m_textMeasure = CreateTextMeasure();

            m_filteredDelegate = new CConsoleFilteredDelegate(this);

            ReloadData();
        }
Esempio n. 2
0
        private void SetFilteredDelegate(CConsoleFilteredDelegate del, bool needReload = true)
        {
            if (del == null || !del.HasFilters)
            {
                this.Delegate      = this;
                this.DataSource    = this;
                m_console.Delegate = this;
            }
            else
            {
                this.Delegate      = del;
                this.DataSource    = del;
                m_console.Delegate = del;
            }

            if (needReload)
            {
                ReloadData();
            }
        }