static void OnCashChange(DependencyObject sender, DependencyPropertyChangedEventArgs e) { SalesStatus me = sender as SalesStatus; if (me != null) { me.ExpectedCash = me.StartingCash + me.TotalCashSales; } }
static void OnSalesTaxChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { SalesStatus me = sender as SalesStatus; if (me != null) { Configuration.Current.CurrentSalesTax = me.SalesTax; Configuration.Current.Save(); } }
static void OnStartingCashChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { SalesStatus me = sender as SalesStatus; if (me != null) { Configuration.Current.CurrentSessionStartingCash = me.StartingCash; Configuration.Current.Save(); me.ExpectedCash = me.StartingCash + me.TotalCashSales; } }
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; }