Exemple #1
0
        private void popupCustomize_Closed(object sender, EventArgs e)
        {
            OrderSetting _pref_PurchaseOrder = new OrderSetting();

            popupCustomize.PopupAnimation = System.Windows.Controls.Primitives.PopupAnimation.Fade;
            OrderSetting.Default.Save();
            _pref_PurchaseOrder   = OrderSetting.Default;
            popupCustomize.IsOpen = false;
        }
Exemple #2
0
        private void New_Click(object sender)
        {
            OrderSetting _pref_PurchaseOrder = new OrderSetting();

            purchase_order purchase_order = PurchaseOrderDB.New();

            purchase_order.trans_date = DateTime.Now.AddDays(_pref_PurchaseOrder.TransDate_OffSet);

            PurchaseOrderDB.Entry(purchase_order).State = EntityState.Added;
            purchase_orderViewSource.View.MoveCurrentToLast();

            sbxContact.Text = "";
        }