Exemple #1
0
        private void btnDeleteFunction_Click(object sender, EventArgs e)
        {
            if (cmbSchemasDelete.SelectedItem.ToString() == "")
            {
                MessageBox.Show("Select a schema to delete the function");
                return;
            }

            string status = dbHandler.DeleteFunction(cmbDeleteFunctionName.SelectedItem.ToString(), cmbSchemasDelete.SelectedItem.ToString());

            if (status == "Success")
            {
                MessageBox.Show("Function Deleted Correctly");
                LoadTablesToCombobox();
                cmbDeleteFunctionName.Items.Clear();
            }
            else
            {
                MessageBox.Show("Something went wrong while deleting function\nError message: " + status);
            }
        }