private void button2_Click(object sender, EventArgs e) { try { AboutTaxi w = new AboutTaxi(Form1.PersonWork.GetTaxies()[comboBox1.SelectedIndex]); w.ShowDialog(); } catch { } }
private void showTaxiesToolStripMenuItem_Click(object sender, EventArgs e) { try { AboutTaxi w = new AboutTaxi(); w.ShowDialog(); } catch { } }