Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            initDatabaseType();
            switch (this.DatabaseType)
            {
            case Model.DatabaseType.SqlServer2000:
            case Model.DatabaseType.SqlServer2005:
            case Model.DatabaseType.SqlServer2008:
                this.Close();
                Form_AddDatabase_SqlServer fasql = new Form_AddDatabase_SqlServer(this.DatabaseType);
                fasql.ShowDialog();
                break;

            case Model.DatabaseType.MySql:
                this.Close();
                Form_AddDatabase_MySql famysql = new Form_AddDatabase_MySql(this.DatabaseType);
                famysql.ShowDialog();
                break;

            case Model.DatabaseType.Sqlite:
                this.Close();
                Form_AddDatabase_Sqlite fasqlite = new Form_AddDatabase_Sqlite(this.DatabaseType);
                fasqlite.ShowDialog();
                break;
            }
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     initDatabaseType();
     switch (this.DatabaseType)
     {
         case Model.DatabaseType.SqlServer2000:
         case Model.DatabaseType.SqlServer2005:
         case Model.DatabaseType.SqlServer2008:
             this.Close();
             Form_AddDatabase_SqlServer fasql = new Form_AddDatabase_SqlServer(this.DatabaseType);
             fasql.ShowDialog();
             break;
         case Model.DatabaseType.MySql:
             this.Close();
             Form_AddDatabase_MySql famysql = new Form_AddDatabase_MySql(this.DatabaseType);
             famysql.ShowDialog();
             break;
         case Model.DatabaseType.Sqlite:
             this.Close();
             Form_AddDatabase_Sqlite fasqlite = new Form_AddDatabase_Sqlite(this.DatabaseType);
             fasqlite.ShowDialog();
             break;
     }
 }