Beispiel #1
0
 private void btnHome_Click(object sender, EventArgs e)
 {
     moveSidePanel_Paint(btnHome);
     Home.Dashboard dashboard = new Home.Dashboard(uid);
     dashboard.MdiParent     = this;
     dashboard.StartPosition = FormStartPosition.CenterScreen;
     dashboard.Show();
 }
Beispiel #2
0
        private void UserMain_Load(object sender, EventArgs e)
        {
            //label7.Text = DateTime.UtcNow.ToString();

            Home.Dashboard dashboard = new Home.Dashboard(uid);
            dashboard.MdiParent     = this;
            dashboard.StartPosition = FormStartPosition.CenterScreen;
            dashboard.Show();


            foreach (Control control in this.Controls)
            {
                // #2
                MdiClient client = control as MdiClient;
                if (!(client == null))
                {
                    // #3
                    client.BackColor = Color.White;
                    // 4#
                    break;
                }
            }
        }