Example #1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            ViewAllQuotes viewQuotes = new ViewAllQuotes();

            viewQuotes.Tag = this;
            viewQuotes.Show(this);
            Hide();
        }
Example #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            //bind datagrid with datatable
            var table = DeskQuote.getAllQuotes();

            if (table.Rows.Count > 0)
            {
                ViewAllQuotes viewQuotes = new ViewAllQuotes(table);
                viewQuotes.Tag = this;
                viewQuotes.Show(this);
                Hide();
            }
            else
            {
                MessageBox.Show("Not records found", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }