private void buttonAccess_Click(object sender, RoutedEventArgs e) { ClearMe(); string choise = listBoxAccess.SelectedItem.ToString(); switch (choise) { case "VsyoZapros": try { AccBase.AccGetVsyo(); textBox1.Text = Papa.infoSmall; textBox2.Text = Papa.infoBig; } catch { textBox2.Text = "Error"; } break; case "VsyoZaprosOtbor": try { AccBase.AccGetVsyoNewBooks(); textBox1.Text = Papa.infoSmall; textBox2.Text = Papa.infoBig; } catch { textBox2.Text = "Error"; } break; case "accSite": try { AccBase.AccGetAccess(); textBox2.Text = "~ " + Papa.infoSmall + "\t\n"; SiteNew.MainSite(); textBox1.Text = Papa.infoSmall + "\t\n" + Papa.infoBig; textBox2.Text += "\n" + textBox1.Text; } catch { textBox2.Text = "Error"; } break; } }
private void buttonSome_Click(object sender, RoutedEventArgs e) { ClearMe(); string choise = listBoxSome.SelectedItem.ToString(); switch (choise) { case "site": try { int x = SiteNew.MainSite(); textBox1.Text = Papa.infoSmall; textBox2.Text = Papa.infoBig; } catch { textBox2.Text = "Error"; } break; case "term": try { int x = Term.MainTerm(); textBox1.Text = Papa.infoSmall; textBox2.Text = Papa.infoBig; } catch { textBox2.Text = "Error"; } break; case "natasha": try { int x = Natasha.MainNatasha(); textBox1.Text = Papa.infoSmall; textBox2.Text = Papa.infoBig; } catch { textBox2.Text = "Error"; } break; } }