Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void mTile_Settings_Click(object sender, EventArgs e)
        {
            Form_Main.Instance.MetroLink.Visible = true;

            if (!Form_Main.Instance.MetroPanel.Controls.ContainsKey("ucSetting"))
            {
                ucSetting uc = new ucSetting();
                uc.Dock = DockStyle.Fill;
                Form_Main.Instance.MetroPanel.Controls.Add(uc);
            }
            Form_Main.Instance.MetroPanel.Controls["ucSetting"].BringToFront();
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ucDashboard_Load(object sender, EventArgs e)
        {
            ucDatabase ucDatabase = new ucDatabase();

            ucDatabase.Dock = DockStyle.Fill;
            Form_Main.Instance.MetroPanel.Controls.Add(ucDatabase);

            ucOverview ucOverview = new ucOverview();

            ucOverview.Dock = DockStyle.Fill;
            Form_Main.Instance.MetroPanel.Controls.Add(ucOverview);

            ucSearch ucSearch = new ucSearch();

            ucOverview.Dock = DockStyle.Fill;
            Form_Main.Instance.MetroPanel.Controls.Add(ucSearch);

            ///this user Control has to be the last because of user settings.
            ucSetting ucSetting = new ucSetting();

            ucSetting.Dock = DockStyle.Fill;
            Form_Main.Instance.MetroPanel.Controls.Add(ucSetting);
        }