Esempio n. 1
0
        private void logsButton_Click(object sender, EventArgs e)
        {
            contentPanel.Controls.Clear();
            LogsUserControl logsUserControl = new LogsUserControl();

            this.contentPanel.Controls.Add(logsUserControl);
        }
Esempio n. 2
0
        private void viewLogsButton_Click(object sender, EventArgs e)
        {
            contentPanel.Controls.Clear();
            this.selectedButtonPanel.Height = viewLogsButton.Height;
            this.selectedButtonPanel.Top    = viewLogsButton.Top;

            LogsUserControl logsUserControl = new LogsUserControl();

            logsUserControl.hidePanel();
            contentPanel.Controls.Add(logsUserControl);
        }