Пример #1
0
        private void button_returnToMenu_Click(object sender, RoutedEventArgs e)
        {
            SalesOrder tempSoObj = new SalesOrder();

            tempSoObj.getSoList = MainScreen.salesOrderList;
            tempSoObj.SaveSalesOrders();
            string ul = "Return to Main Screen";

            userLog.Log(ul);
            Frame.Navigate(typeof(MainScreen));
        }
        private void button_save_Click(object sender, RoutedEventArgs e)
        {
            string date = DateTime.Now.ToString();

            current_so.user  = Globals.currentUser;
            current_so.date  = date;
            current_so.total = running_total;
            MainScreen.salesOrderList.Add(current_so);
            salesOrder.SaveSalesOrders();
            string ul = "Added sales order #? TODO work out how to add sales number here";

            userLog.Log(ul);
        }