コード例 #1
0
        // Method that takes user to "prices" form when button is clicked.
        private void pRICESToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Prices prices = new Prices();

            prices.Show();
            this.Close();
        }
コード例 #2
0
        // Method that closes login form and send user back to main page when "return" button is clicked.
        private void rETURNToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Prices prices = new Prices();

            if (prices.IsDisposed)
            {
                prices = new Prices();
            }

            prices.Show();
            this.Hide();
        }