Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Accepted accForm = new Accepted();

            this.Hide();
            accForm.Show();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Accepted acceptedForm = new Accepted();
            DateTime currentDate  = DateTime.Today;

            string sqlFormattedDate = currentDate.ToString("yyyy-MM-dd HH:mm:ss.fff");

            acceptedForm.addGood(nameField.Text, amountField.Text, priceField.Text, sqlFormattedDate);
            acceptedForm.Refresh();
            this.Hide();
        }