Example #1
0
        private ScreenContent BaseMaster_InitialSetup()
        {
            this.BaseMaster = new ScreenContent(null, this.ScreenDim, this.ContentOdom);

            // send message to paint thread telling it the contentNum of the master
            // screen content.
            {
                var cu = new ClearUnitMessage(this.BaseMaster.ContentNum);
                this.PaintThread.PostInputMessage(cu);
            }

            return(this.BaseMaster);
        }
Example #2
0
        static Tuple <ScreenContent, ScreenContent> ProcessClearUnit(
            this ScreenContent InBaseMaster, ScreenDim ScreenDim,
            PaintThread PaintThread)
        {
            var baseMaster = InBaseMaster;

            baseMaster = new ScreenContent(
                null, ScreenDim, baseMaster.ContentOdom);
            var master = baseMaster.GetWorkingContentBlock();

            // post ClearUnit message to paint thread.
            {
                var cu = new ClearUnitMessage(master.ContentNum);
                PaintThread.PostInputMessage(cu);
            }

            // mark the screenContent as having ClearUnit applied on it. When the SCB
            // is sent to the PaintThread code there will clear the TelnetCanvas and
            // dispose of any window item canvases.
            // todo: Send ClearUnitMessage to PaintThread. Get rid of DoClearUnit flag.
            baseMaster.DoClearUnit = true;

            return(new Tuple <ScreenContent, ScreenContent>(baseMaster, master));
        }