예제 #1
0
 private void createSchema_Click(object sender, EventArgs e)
 {
     DatabaseFunctions.CreateFdpsSchema();
     DBStatus.Text = @"Schema successfully created";
     DBStatus.Update();
     InitializedatatableComboBox();
 }
예제 #2
0
 private void dropSchema_Click(object sender, EventArgs e)
 {
     DatabaseFunctions.DropFdpsSchema();
     DBStatus.Text = @"Schema successfully dropped";
     DBStatus.Update();
     ClearComboBoxes();
 }
예제 #3
0
 private void truncateDB_Click(object sender, EventArgs e)
 {
     DatabaseFunctions.TruncateFdpsTables();
     DBStatus.Text = @"Database tables successfully truncated";
     DBStatus.Update();
     ClearComboBoxes();
     InitializedatatableComboBox();
 }
예제 #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();
        }
예제 #5
0
 private void dropDB_Click(object sender, EventArgs e)
 {
     DatabaseFunctions.DropFdpsDb();
     DBStatus.Text = @"FDPS database successfully dropped";
     DBStatus.Update();
 }