private void eventSelector_SelectedIndexChanged_1(object sender, EventArgs e) { if (eventSelector.SelectedIndex == 0) { var iri = new RecycleRush_IRI(); iri.Show(); if (Settings.Default.minimizeHomeWentEventLoads) { WindowState = FormWindowState.Minimized; } } else { if (eventSelector.SelectedIndex == 1) { var tahs = new RecycleRush_TroyAthens(); tahs.Show(); if (Settings.Default.minimizeHomeWentEventLoads) { WindowState = FormWindowState.Minimized; } } else { //nothing there } } }
private void eventSelector_SelectedIndexChanged_1(object sender, EventArgs e) { switch (eventSelector.SelectedIndex) { case 0: { var aaNorthbay2014 = new AerialAssist_Northbay(); aaNorthbay2014.Show(); if (Settings.Default.minimizeHomeWentEventLoads) { WindowState = FormWindowState.Minimized; } } break; case 1: { var aaRahChaCha2014 = new AerialAssist_RahChaCha(); aaRahChaCha2014.Show(); if (Settings.Default.minimizeHomeWentEventLoads) { WindowState = FormWindowState.Minimized; } } break; case 2: { var rrgtre = new RecycleRush_GTR_East(); rrgtre.Show(); if (Settings.Default.minimizeHomeWentEventLoads) { WindowState = FormWindowState.Minimized; } } break; case 3: { var rrnb = new RecycleRush_Northbay(); rrnb.Show(); if (Settings.Default.minimizeHomeWentEventLoads) { WindowState = FormWindowState.Minimized; } } break; case 4: { var rriri = new RecycleRush_IRI(); rriri.Show(); if (Settings.Default.minimizeHomeWentEventLoads) { WindowState = FormWindowState.Minimized; } } break; } }