Example #1
0
File: Window.cs Project: rbua/JILK
        /// <summary>
        /// Redisplay all children controls and builds new char matrix if required
        /// </summary>
        public virtual void Redraw(bool sizeChanged)
        {
            if (sizeChanged)
            {
                ResizeBitmap();
            }

            // Sorts controls by zIndex
            Controls.Sort((control1, control2) => control1.Position.Z.CompareTo(control2.Position.Z));

            foreach (var control in Controls)
            {
                Charmap.AddInnerBitmap(control.Charmap, control.Position.X, control.Position.Y);
            }

            DrawBorders();
        }
Example #2
0
 private void DrawInnerBitmap()
 {
     Charmap.AddInnerBitmap(innerElement.Charmap, 1, 1);
 }