private void btnAddQuote_Click(object sender, EventArgs e)
        {
            //show the Add Quote Form, hide Main Menu Form
            AddQuote addNewQuote = new AddQuote();

            addNewQuote.Tag = this;
            addNewQuote.Show(this);
            Hide();
        }
Exemplo n.º 2
0
        //Button Click events for all the buttons on the main menu
        private void btnOpenAddQuote_Click(object sender, EventArgs e)
        {
            //This creates the new form
            var addNewQuoteForm = new AddQuote(this);

            //Tag this object so that it can open when another window is opened
            addNewQuoteForm.Tag = this;
            addNewQuoteForm.Show();
            Hide();
        }