コード例 #1
0
        // Close this form, and return to the Add Quote screen
        private void ReturnToAddQuoteScreenLabel_Click(object sender, EventArgs e)
        {
            AddQuote addQuoteForm = (AddQuote)Tag;

            addQuoteForm.Show();

            // Close the window
            Close();
        }
コード例 #2
0
        private void ViewAddQuote_Click(object sender, EventArgs e)
        {
            AddQuote viewAddQuoteWindow = new AddQuote();

            viewAddQuoteWindow.Tag = this;
            viewAddQuoteWindow.Show(this);

            // Hide the current window
            Hide();
        }
コード例 #3
0
        // This will run when the user clicks the Save & New button
        private void SaveAndNewButton_Click(object sender, EventArgs e)
        {
            SaveQuote();

            AddQuote addQuoteForm = new AddQuote();

            addQuoteForm.Show();

            // Close the window
            this.Close();
        }