コード例 #1
0
        override protected void ClearUI()
        {
            mTableControlCount = 0;

            this.SuspendLayout();
            MainTableLayoutPanel.Visible = false;
            MainTableLayoutPanel.SuspendLayout();
            MainTableLayoutPanel.Controls.Clear();
            MainTableLayoutPanel.RowStyles.Clear();
            //mControls.Clear();
            //      foreach (Control c in temp)
            //      {
            //         AddRow(c.Name, c);
            //      }
            MainTableLayoutPanel.ResumeLayout();
            MainTableLayoutPanel.Visible = true;
            this.ResumeLayout();
        }
コード例 #2
0
        override protected void AddControls(List <Control> controls)
        {
            mTableControlCount = 0;
            this.SuspendLayout();
            MainTableLayoutPanel.Visible = false;
            MainTableLayoutPanel.SuspendLayout();
            MainTableLayoutPanel.Controls.Clear();
            MainTableLayoutPanel.RowStyles.Clear();

            foreach (Control c in controls)
            {
                AddRow(c.Name, c);
            }
            if (mbLastRowHack)
            {
                AddBlankRow();
            }

            MainTableLayoutPanel.ResumeLayout();
            MainTableLayoutPanel.Visible = true;
            this.ResumeLayout();
        }