private void ButtonViewQuotes_Click(object sender, EventArgs e) { ViewAllQuotes viewAllQuotesForm = new ViewAllQuotes(); viewAllQuotesForm.Show(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { if (comboBox1.SelectedIndex > -1) { MainMenu.DataFiler.Search((DesktopMaterial)comboBox1.SelectedItem, ref deskQuotes); if (deskQuotes.Count > 0) { ViewAllQuotes viewAllQuotesForm = new ViewAllQuotes(deskQuotes); viewAllQuotesForm.Show(); this.Hide(); } else { MessageBox.Show(@"No Quotes found."); } } }