示例#1
0
 private void groupsLinkLabelClick(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (this.groupPanel == null)
     {
         this.groupPanel = new GroupPanel(contentsPanel);
     }
     AddPanel(this.groupPanel);
 }
示例#2
0
        private void refreshButtonClick(object sender, EventArgs e)
        {
            if (this.studentPanel != null)
            {
                this.studentPanel.Hide();
            }
            if (this.groupPanel != null)
            {
                this.groupPanel.Hide();
            }
            if (this.taskPanel != null)
            {
                this.taskPanel.Hide();
            }

            this.studentPanel = null;
            this.groupPanel   = null;
            this.taskPanel    = null;

            if (!this.contentsPanel.Controls.Contains(label3))
            {
                this.contentsPanel.Controls.Add(label3); // Remove help label
            }
        }