Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form addNew = new AddQuote();

            addNew.Show();
            this.Hide();
        }
        private void btnAddNewQuote_Click(object sender, EventArgs e)
        {
            AddQuote frmAddQuote = new AddQuote(this);

            frmAddQuote.Show();
            Hide();
        }
Example #3
0
        private void addNewQuoteButton_Click(object sender, EventArgs e)
        {
            AddQuote aq = new AddQuote();

            aq.Show();
            this.Hide();
        }
Example #4
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            AddQuote addQuote = (AddQuote)Tag;

            addQuote.Show();
            Close();
        }
Example #5
0
        private void AddNewQuoteButton_Click(object sender, EventArgs e)
        {
            AddQuote addQuote = new AddQuote();

            addQuote.Show();
            Hide();
        }
Example #6
0
        private void Button1_Click(object sender, EventArgs e)
        {
            AddQuote frmAddQuote = new AddQuote(this);

            frmAddQuote.Show();
            Hide();
        }
        // I couldn't figure out back to main so I sent it back to add quote
        // I guess a user cou
        private void close_Click(object sender, EventArgs e)
        {
            AddQuote viewMainMenu = (AddQuote)Tag;

            viewMainMenu.Show();
            Close();
        }
Example #8
0
        // Below are KeyPress Events
        private void A(object sender, KeyPressEventArgs e)
        {
            AddQuote NewQuote = new AddQuote();

            NewQuote.Tag = this;
            NewQuote.Show(this);
        }
Example #9
0
        // Events Below give function to the buttons
        private void button1_Click(object sender, EventArgs e)
        {
            AddQuote NewQuote = new AddQuote();

            NewQuote.Tag = this;
            NewQuote.Show(this);
        }
        private void btnAddQuote_Click(object sender, EventArgs e)
        {
            AddQuote AQ = new AddQuote();

            AQ.Show();
            Close();
        }
Example #11
0
        private void AddQuote_Click(object sender, EventArgs e)
        {
            AddQuote viewAddQuote = new AddQuote();

            viewAddQuote.Tag = this;
            viewAddQuote.Show(this);
            this.Hide();
        }
Example #12
0
        private void navAddQuote_Click(object sender, EventArgs e)
        {
            AddQuote newquote = new AddQuote();

            newquote.Tag = this;
            newquote.Show(this);
            Hide();
        }
Example #13
0
        private void addQuote_Click(object sender, EventArgs e)
        {
            AddQuote addQuote = new AddQuote();

            addQuote.Tag = this;
            addQuote.Show(this);
            Hide();
        }
Example #14
0
        private void openAddQuoteButton_Click(object sender, EventArgs e)
        {
            AddQuote addNewQuoteForm = new AddQuote();

            addNewQuoteForm.Tag = this;
            addNewQuoteForm.Show(this);
            Hide();
        }
Example #15
0
        private void BtnAddNewQuote_Click(object sender, EventArgs e)
        {
            AddQuote addQuote = new AddQuote(this);

            addQuote.Tag = this;
            addQuote.Show();
            this.Hide();
        }
Example #16
0
        private void AddQuoteButton_Click(object sender, EventArgs e)
        {
            AddQuote AddQuoteForm = new AddQuote {
                Tag = this
            };

            AddQuoteForm.Show(this);
            this.Hide();
        }
        private void newQuote_Click(object sender, EventArgs e)
        {
            AddQuote AddQuoteForm = new AddQuote {
                Tag = this
            };

            AddQuoteForm.Show(this);
            Hide();
        }
Example #18
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var addQuote = new AddQuote();

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

            this.Hide();
        }
Example #19
0
 private void new_quote_Click(object sender, EventArgs e)
 {
     if (addQuote == null)
     {
         addQuote = new AddQuote();
     }
     Hide();
     addQuote.Show();
 }
Example #20
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            WriteToFile();
            DialogResult result = MessageBox.Show(this, "Quote confirmed!", "Success!");

            AddQuote addQuote = (AddQuote)Tag;

            addQuote.Show();
            Close();
        }
Example #21
0
        private void btnAddNewQuote_Click(object sender, EventArgs e)
        {
            //build new addquote form object
            var frmAddQuote = new AddQuote();

            // add tag to get back to main menu
            frmAddQuote.Tag = this;
            frmAddQuote.Show();
            //hide menu
            this.Hide();
        }
Example #22
0
        private void navAddQuote_Click(object sender, EventArgs e)
        {
            AddQuote newquote = new AddQuote();

            newquote.Tag = this;
            try
            {
                newquote.Show(this);
                Hide();
            }
            catch (Exception)
            {
                MessageBox.Show("The rush order pricing file is missing or corrupted!", "ALERT", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
Example #23
0
 private void addNewQuote_Click(object sender, EventArgs e)
 {
     if ((Application.OpenForms["AddQuote"] as AddQuote) != null)
     {
         // If form exists, bring to front
         addQuoteForm             = Application.OpenForms.OfType <AddQuote>().LastOrDefault();
         addQuoteForm.WindowState = FormWindowState.Normal;
         addQuoteForm.Focus();
     }
     else
     {
         // If form does not exist, create it
         addQuoteForm = new AddQuote(ref savedQuotesFile, ref shippingCostsFile);
         addQuoteForm.Show();
     }
 }
Example #24
0
        private void Btn_newQuote_Click(object sender, EventArgs e)
        {
            AddQuote addQuote = new AddQuote();

            addQuote.Show();
        }