Exemplo n.º 1
0
        private void openSearchQuotesButton_Click(object sender, EventArgs e)
        {
            SearchQuotes searchQuoteForm = new SearchQuotes();

            searchQuoteForm.Tag = this;
            searchQuoteForm.Show(this);
            Hide();
        }
Exemplo n.º 2
0
 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();
        }
Exemplo n.º 4
0
 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();
     }
 }
Exemplo n.º 5
0
        private void Btn_searchQuote_Click(object sender, EventArgs e)
        {
            SearchQuotes search = new SearchQuotes();

            search.Show();
        }