Пример #1
0
 internal void ClearBody()
 {
     if (_body != null)
     {
         _body.Unload();
         _body = null;
     }
 }
Пример #2
0
        public override void AddChild(Control control)
        {
            if (control is TableBody)
            {
                if (_body != null)
                {
                    Logging.Error("The TableBody has already been added (you can only have one), Have you accessed the 'Body' property?", new object[] { this, control });
                    return;
                }
                _body = (TableBody)control;
                base.AddChild(control);
                return;
            }

            if (control is TableHeader)
            {
                if (_header != null)
                {
                    Logging.Error("The TableHeader has already been added (you can only have one), Have you accessed the 'Header' property?", new object[] { this, control });
                    return;
                }
                _header = (TableHeader)control;
                base.AddChild(control);
                return;
            }
            if (control is TableRow)
            {
                Body.AddChild(control);
                return;
            }
            if (control is TableHeaderColumn)
            {
                Header.AddChild(control);
                return;
            }
            Logging.Error("You cannot add non table types to the Table control, valid types are TableBody, TableHeader, TableRow, TableHeaderColumn.", new object[] { this, control });
        }
Пример #3
0
        public override void AddChild(Control control)
        {
            if (control is TableBody)
            {
                if (_body != null)
                {
                    Logging.Error("The TableBody has already been added (you can only have one), Have you accessed the 'Body' property?", new object[] { this, control });
                    return;
                }
                _body = (TableBody)control;
                base.AddChild(control);
                return;
            }

            if (control is TableHeader)
            {
                if (_header != null)
                {
                    Logging.Error("The TableHeader has already been added (you can only have one), Have you accessed the 'Header' property?", new object[] { this, control });
                    return;
                }
                _header = (TableHeader)control;
                base.AddChild(control);
                return;
            }
            if (control is TableRow)
            {
                Body.AddChild(control);
                return;
            }
            if (control is TableHeaderColumn)
            {
                Header.AddChild(control);
                return;
            }
            Logging.Error("You cannot add non table types to the Table control, valid types are TableBody, TableHeader, TableRow, TableHeaderColumn.", new object[] { this, control });
        }
Пример #4
0
 internal void ClearBody()
 {
     if (_body != null)
     {
         _body.Unload();
         _body = null;
     }
 }