Ejemplo n.º 1
0
        /// <summary>
        /// Text
        /// </summary>
        /// <returns>text</returns>
        public override string ToString()
        {
            if (SingleChild != null)
            {
                return("DC: " + SingleChild.Text);
            }

            if (LeftPane != null)
            {
                return("DC[" + LeftPane.ToString() + " | " + RightPane.ToString() + "]");
            }

            if (TopPane != null)
            {
                return("DC[" + TopPane.ToString() + " | " + BottomPane.ToString() + "]");
            }

            return("DC<ModeEmpty>");
        }
Ejemplo n.º 2
0
        private void DrawLeftPane(BufferContainer buffer)
        {
            WriteAt(buffer, 0, 0, $"{LeftPane.ToString()}");

            DrawItems(buffer, 0, 2, GetItems(LeftPane), LeftPane, RightPane, !RightHasFocus);
        }