Example #1
0
        private void popupCustomize_Closed(object sender, EventArgs e)
        {
            TenderSetting _pref_PurchaseTender = new TenderSetting();

            popupCustomize.PopupAnimation = System.Windows.Controls.Primitives.PopupAnimation.Fade;
            TenderSetting.Default.Save();
            _pref_PurchaseTender  = TenderSetting.Default;
            popupCustomize.IsOpen = false;
        }
Example #2
0
        private void toolBar_btnNew_Click(object sender)
        {
            TenderSetting   _pref_PurchaseTender = new TenderSetting();
            purchase_tender purchase_tender      = new purchase_tender();

            purchase_tender.State      = EntityState.Added;
            purchase_tender.IsSelected = true;
            purchase_tender.trans_date = DateTime.Now.AddDays(_pref_PurchaseTender.TransDate_OffSet);
            PurchaseTenderDB.Entry(purchase_tender).State = EntityState.Added;

            purchase_tenderViewSource.View.MoveCurrentToLast();
        }