private void editReport_btn_Click(object sender, EventArgs e) { // Retrieves the Selected DB Name to can pass the variable to the 'Edit Scheduled Report' form Global.SelectedDBName = ListViewEx.GetSelectedItem(dbMain_listview).Text; // Shows the 'Edit Schedule Report' form (new Form2()).ShowDialog(); // Reload all databases configuration file Configuration.Database.LoadAll(this); editSchedReport_btn.Enabled = false; deleteSchedReport_btn.Enabled = false; }