private void Serv_Providers_listBox_SelectedIndexChanged(object sender, EventArgs e) { currentSrvProv = Serv_Providers_listBox.SelectedIndex; if (currentSrvProv != -1) { Tenants_listBox.ClearSelected(); ShowTextBoxes("sp"); ShowButtons(); ShowSPDBInfo(); } }
private void Away_button_Click(object sender, EventArgs e) { showTenant = false; showSP = false; edit = false; Tenants_listBox.ClearSelected(); Serv_Providers_listBox.ClearSelected(); search_input_textBox.Text = ""; HideTextBoxes(); HideButtons(); if (hide_add) { Add_Tenant_button.Hide(); } }