Example #1
0
 protected void AuxSplashClosed(FrmSplash frmSplash)
 {
     frmSplash.Dispose();
     this.ShowInTaskbar = true;
     this.Opacity       = 1;
     this.ShowChangeDatabaseForm(true);
 }
Example #2
0
        protected void FrmDillenSQLManagementStudio_Load(object sender, EventArgs e)
        {
            this.Opacity = 0;

            //Show Splash
            FrmSplash frmSplash = new FrmSplash();

            frmSplash.Show();
            frmSplash.FormClosed += (s, args) => this.AuxSplashClosed(frmSplash);

            this.TryConnWithMyDtbs(true);

            //mySQLConnection
            this.mySqlCon = new MySqlConnection(this.user);

            //INICIALIZE RICHTEXT BOX
            this.sqlRchtxtbx = new SqlRichTextBox(ref this.rchtxtCode, this, this.mySqlCon, false);
            this.sqlRchtxtbx.SetNewEvents(new System.EventHandler(this.newRchtxtCode_TextChanged),
                                          new System.Windows.Forms.PreviewKeyDownEventHandler(this.newRchtxtCode_PreviewKeyDown));
            this.sqlRchtxtbx.SQLRichTextBox.KeyPress += new KeyPressEventHandler(this.newRchtxtCode_KeyPress);

            //opacity to darken the rest of the Form except the Menu
            this.opaquePanel.BringToFront();

            //panel in first place
            this.pnlFile.BringToFront();
            this.pnlEdit.BringToFront();
            this.pnlExecuteAs.BringToFront();
            this.pnlVPNConfiguration.BringToFront();

            //splash can close
            frmSplash.CanClose(this.user != null);
        }