Ejemplo n.º 1
0
        private void btnDeleteProcedure_Click(object sender, EventArgs e)
        {
            if (cmbSchemasDelete.SelectedItem.ToString() == "")
            {
                MessageBox.Show("Select a schema to delete the procedure");
                return;
            }

            string status = dbHandler.DeleteProcedure(cmbDeleteProcedureName.SelectedItem.ToString(), cmbSchemasDelete.SelectedItem.ToString());

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