static void OnTenderedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            PointOfSale me = sender as PointOfSale;

            if (me != null)
            {
                me.CashDue = me.CreditTendered + me.CashTendered + me.CheckTendered - me.TotalTaxTotal;
            }
        }
        static void OnDiscountAmountChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            PointOfSale me = sender as PointOfSale;

            if (me != null)
            {
                me.RefreshTotals();
            }
        }
        static void OnStateChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            PointOfSale me = sender as PointOfSale;

            if (me != null)
            {
                Configuration.Current.LastUSState = me.USState;
                Configuration.Current.Save();
            }
        }
        static void OnSelectedPricingModelChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            PointOfSale me = sender as PointOfSale;

            if (me != null)
            {
                if (me.SelectedPricingModel != null && !string.IsNullOrEmpty(me.SelectedPricingModel.Name))
                {
                    Configuration.Current.CurrentPricingModel = me.SelectedPricingModel.Name;
                }
                else
                {
                    Configuration.Current.CurrentPricingModel = string.Empty;
                }
                Configuration.Current.Save();
                me.RefreshTotals();
            }
        }
Пример #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.uc = ((SmallBusinessManager.MainWindow)(target));

            #line 9 "..\..\MainWindow.xaml"
                this.uc.Loaded += new System.Windows.RoutedEventHandler(this.OnLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.PART_PointOfSale = ((SBMLibrary.Controls.PointOfSale)(target));
                return;

            case 3:
                this.tbOrderEntry = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:

            #line 84 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TabItem)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseDownActiveInventory);

            #line default
            #line hidden
                return;

            case 5:
                this.PART_SalesStatus = ((SBMLibrary.Controls.SalesStatus)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.uc = ((SmallBusinessManager.MainWindow)(target));
     
     #line 9 "..\..\MainWindow.xaml"
     this.uc.Loaded += new System.Windows.RoutedEventHandler(this.OnLoaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.PART_SalesStatus = ((SBMLibrary.Controls.SalesStatus)(target));
     return;
     case 3:
     this.PART_PointOfSale = ((SBMLibrary.Controls.PointOfSale)(target));
     return;
     case 4:
     this.tbOrderEntry = ((System.Windows.Controls.TabItem)(target));
     return;
     case 5:
     
     #line 103 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.TabItem)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseDownActiveInventory);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }