private void openSearchQuotesButton_Click(object sender, EventArgs e) { SearchQuotes searchQuoteForm = new SearchQuotes(); searchQuoteForm.Tag = this; searchQuoteForm.Show(this); Hide(); }
private void search_quotes_Click(object sender, EventArgs e) { if (searchQuotes == null) { searchQuotes = new SearchQuotes(); } Hide(); searchQuotes.Show(); }
private void searchQuotes_Click(object sender, EventArgs e) { SearchQuotes SearchQuotesForm = new SearchQuotes { Tag = this }; SearchQuotesForm.Show(this); Hide(); }
private void searchQuotes_Click(object sender, EventArgs e) { if ((Application.OpenForms["SearchQuotes"] as SearchQuotes) != null) { // If form exists, bring to front searchQuotesForm = Application.OpenForms.OfType <SearchQuotes>().LastOrDefault(); searchQuotesForm.WindowState = FormWindowState.Normal; searchQuotesForm.Focus(); } else { // If form does not exist, create it searchQuotesForm = new SearchQuotes(ref savedQuotesFile); searchQuotesForm.Show(); searchQuotesForm.showResults(); } }
private void Btn_searchQuote_Click(object sender, EventArgs e) { SearchQuotes search = new SearchQuotes(); search.Show(); }