private static void OnColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { BarGraph mg = (BarGraph)d; mg.Sources["C"].Data = e.NewValue; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.tcHead = ((System.Windows.Controls.TabControl)(target)); #line 15 "..\..\MainWindow.xaml" this.tcHead.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tcHead_SelectionChanged); #line default #line hidden return; case 2: this.tiReports = ((System.Windows.Controls.TabItem)(target)); return; case 3: this.gReport = ((System.Windows.Controls.Grid)(target)); return; case 4: this.rPanels = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.rLeftPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 6: this.cbReport = ((System.Windows.Controls.ComboBox)(target)); return; case 7: this.rcbiEmployeeStats = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 8: this.rcbiTicketAge = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 9: this.rdpl = ((System.Windows.Controls.Label)(target)); return; case 10: this.rDatepicker = ((System.Windows.Controls.DatePicker)(target)); return; case 11: this.rbtnSelect = ((System.Windows.Controls.Button)(target)); #line 57 "..\..\MainWindow.xaml" this.rbtnSelect.Click += new System.Windows.RoutedEventHandler(this.rbtnSelect_Click); #line default #line hidden return; case 12: this.rbtnClear = ((System.Windows.Controls.Button)(target)); #line 58 "..\..\MainWindow.xaml" this.rbtnClear.Click += new System.Windows.RoutedEventHandler(this.rbtnClear_Click); #line default #line hidden return; case 13: this.rRightPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 14: this.rBarGraph = ((InteractiveDataDisplay.WPF.Chart)(target)); return; case 15: this.rbgGraph = ((InteractiveDataDisplay.WPF.BarGraph)(target)); return; case 16: this.rGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 17: this.rsGridButtons = ((System.Windows.Controls.StackPanel)(target)); return; case 18: this.rPrintButt = ((System.Windows.Controls.Button)(target)); #line 78 "..\..\MainWindow.xaml" this.rPrintButt.Click += new System.Windows.RoutedEventHandler(this.rPrintButt_Click); #line default #line hidden return; case 19: this.rExportButt = ((System.Windows.Controls.Button)(target)); #line 79 "..\..\MainWindow.xaml" this.rExportButt.Click += new System.Windows.RoutedEventHandler(this.rExportButt_Click); #line default #line hidden return; case 20: this.tiDashBoard = ((System.Windows.Controls.TabItem)(target)); return; case 21: this.gDash = ((System.Windows.Controls.Grid)(target)); return; case 22: this.dEmpGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 23: this.dTicketGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 24: this.stack = ((System.Windows.Controls.StackPanel)(target)); return; case 25: this.transferCurreny = ((System.Windows.Media.TranslateTransform)(target)); return; case 26: this.canvas = ((System.Windows.Controls.Canvas)(target)); return; case 27: this.txtKron = ((System.Windows.Controls.TextBlock)(target)); return; case 28: this.dashDate = ((System.Windows.Controls.TextBox)(target)); return; case 29: this.dTicketClosedLastMonth = ((System.Windows.Controls.TextBox)(target)); return; case 30: this.dTicketOpenedLastMonth = ((System.Windows.Controls.TextBox)(target)); return; case 31: this.dTicketClosedThisMonth = ((System.Windows.Controls.TextBox)(target)); return; case 32: this.dTicketOpenedThisMonth = ((System.Windows.Controls.TextBox)(target)); return; case 33: this.tiForcast = ((System.Windows.Controls.TabItem)(target)); return; case 34: this.gForcast = ((System.Windows.Controls.Grid)(target)); return; case 35: this.tiSchedule = ((System.Windows.Controls.TabItem)(target)); return; case 36: this.gSchedule = ((System.Windows.Controls.Grid)(target)); return; case 37: this.sTabs = ((System.Windows.Controls.TabControl)(target)); #line 130 "..\..\MainWindow.xaml" this.sTabs.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tcHead_SelectionChanged); #line default #line hidden return; case 38: this.stiManage = ((System.Windows.Controls.TabItem)(target)); return; case 39: this.smGrid = ((System.Windows.Controls.Grid)(target)); return; case 40: this.scbOptions = ((System.Windows.Controls.ComboBox)(target)); return; case 41: this.oAddShift = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 42: this.oAddExcuse = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 43: this.oChangeHours = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 44: this.View = ((System.Windows.Controls.TabItem)(target)); return; } this._contentLoaded = true; }
private static void OnDescriptionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { BarGraph mg = (BarGraph)d; mg.Sources["Y"].Description = (string)e.NewValue; }