private void listBox2_SelectedIndexChanged(object sender, EventArgs e) { if (ordersListBox.SelectedItem != null) { EditReservationButton.Show(); } else { EditReservationButton.Hide(); } }
public Dashboard(int adminID) { globalAdminID = adminID; InitializeComponent(); CenterToScreen(); fillChart(DateTime.Now); fillListBox(); fillReservationListBox(DateTime.Now); fillAdminInfo(adminID); EditReservationButton.Hide(); //WindowState = FormWindowState.Maximized; }