Beispiel #1
0
        void SaveCustomerData()
        {
            var query = "UPDATE Carts SET " +
                        "CustomerName = '" + textBox_CustomerName.Text + "', " +
                        "CustomerEmail = '" + textBox_CustomerEmail.Text + "', " +
                        "CustomerNumber = '" + textBox_CustomerEmail.Text + "', " +
                        "LastUpdated = '" + DateTime.Now + "' " +
                        "WHERE ID = '" + ID + "'";

            DatabaseManager.RunQuery(query);
            Startup.GetInstance().UpdateCarts();
        }
Beispiel #2
0
 public static void StatusChanged()
 {
     Startup.GetInstance().UpdateCarts();
 }
Beispiel #3
0
 private void button_Save_Click(object sender, EventArgs e)
 {
     SaveCustomerData();
     Startup.GetInstance().UpdateCarts();
 }