Exemplo n.º 1
0
 private void createSchema_Click(object sender, EventArgs e)
 {
     DatabaseFunctions.CreateFdpsSchema();
     DBStatus.Text = @"Schema successfully created";
     DBStatus.Update();
     InitializedatatableComboBox();
 }
Exemplo n.º 2
0
 private void dropSchema_Click(object sender, EventArgs e)
 {
     DatabaseFunctions.DropFdpsSchema();
     DBStatus.Text = @"Schema successfully dropped";
     DBStatus.Update();
     ClearComboBoxes();
 }
Exemplo n.º 3
0
 private void truncateDB_Click(object sender, EventArgs e)
 {
     DatabaseFunctions.TruncateFdpsTables();
     DBStatus.Text = @"Database tables successfully truncated";
     DBStatus.Update();
     ClearComboBoxes();
     InitializedatatableComboBox();
 }
Exemplo n.º 4
0
        private void createDB_Click(object sender, EventArgs e)
        {
            var dbExists = DatabaseFunctions.CreateFdpsDb();

            if (dbExists == 1)
            {
                DBStatus.Text = @"FDPS Database already exists";
                DatabaseFunctions.DropFdpsSchema();
            }
            else
            {
                DBStatus.Text = @"FDPS Database successfully created";
            }

            DatabaseFunctions.CreateFdpsSchema();
            DBStatus.Update();
        }
Exemplo n.º 5
0
 private void dropDB_Click(object sender, EventArgs e)
 {
     DatabaseFunctions.DropFdpsDb();
     DBStatus.Text = @"FDPS database successfully dropped";
     DBStatus.Update();
 }