Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form_Main_Load(object sender, EventArgs e)
        {
            _instance = this;
            ucDashboard uc = new ucDashboard();

            //ucDatabase uc = new ucDatabase();
            uc.Dock = DockStyle.Fill;

            mP_Dashboard.Controls.Add(uc);

            mLink_Back.Visible = false;
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form_Main_Load(object sender, EventArgs e)
        {
            if (Settings.Default.FirstStart == true)
            {
                DialogResult = MetroMessageBox.Show(this, "Are you sure to delete the complete database?. You can not undo it!\n\r To delete your database you can do it unter setting, as well.",
                                                    "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                if (DialogResult == DialogResult.No)
                {
                    Settings.Default.FirstStart = false;
                    Settings.Default.Save();
                }
            }


            _instance = this;
            ucDashboard uc = new ucDashboard();

            uc.Dock = DockStyle.Fill;

            mP_Dashboard.Controls.Add(uc);

            mLink_Back.Visible = false;
            //this.reportViewer1.RefreshReport();
        }