private static void UpdateUIRepresentation(DependencyObject d, DependencyPropertyChangedEventArgs e) { CursorCoordinateGraph graph = (CursorCoordinateGraph)d; if ((bool)e.NewValue) { graph.UpdateUIRepresentation(); } else { graph.vertLine.ClearValue(Line.StrokeDashOffsetProperty); graph.horizLine.ClearValue(Line.StrokeDashOffsetProperty); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.grid_Main = ((System.Windows.Controls.Grid)(target)); return; case 2: this.tabControl1 = ((System.Windows.Controls.TabControl)(target)); return; case 3: this.tabItem1 = ((System.Windows.Controls.TabItem)(target)); return; case 4: this.grid_Tab = ((System.Windows.Controls.Grid)(target)); return; case 5: this.button1 = ((System.Windows.Controls.Button)(target)); #line 10 "..\..\..\MainWindow.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 6: this.progressBar1 = ((System.Windows.Controls.ProgressBar)(target)); return; case 7: this.label5 = ((System.Windows.Controls.Label)(target)); return; case 8: this.lbl_MinsRemaining = ((System.Windows.Controls.Label)(target)); return; case 9: this.label6 = ((System.Windows.Controls.Label)(target)); return; case 10: this.lbl_DevIterations = ((System.Windows.Controls.Label)(target)); return; case 11: this.txt_Decks = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.txt_DevIter = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.label7 = ((System.Windows.Controls.Label)(target)); return; case 14: this.label8 = ((System.Windows.Controls.Label)(target)); return; case 15: this.txt_DeckIter = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.label9 = ((System.Windows.Controls.Label)(target)); return; case 17: this.radio_Durstenfeld = ((System.Windows.Controls.RadioButton)(target)); return; case 18: this.radio_Sullivan = ((System.Windows.Controls.RadioButton)(target)); return; case 19: this.radio_Other = ((System.Windows.Controls.RadioButton)(target)); return; case 20: this.button3 = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\..\MainWindow.xaml" this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click); #line default #line hidden return; case 21: this.tabitem_BasicStrategyHard = ((System.Windows.Controls.TabItem)(target)); return; case 22: this.grid_BSHard = ((System.Windows.Controls.Grid)(target)); return; case 23: this.group_BSHardStats = ((System.Windows.Controls.GroupBox)(target)); return; case 24: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 25: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 26: this.label4 = ((System.Windows.Controls.Label)(target)); return; case 27: this.lbl_Decks = ((System.Windows.Controls.Label)(target)); return; case 28: this.lbl_TotGames = ((System.Windows.Controls.Label)(target)); return; case 29: this.lbl_H17 = ((System.Windows.Controls.Label)(target)); return; case 30: this.tabItem2 = ((System.Windows.Controls.TabItem)(target)); return; case 31: this.button2 = ((System.Windows.Controls.Button)(target)); #line 48 "..\..\..\MainWindow.xaml" this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click_1); #line default #line hidden return; case 32: this.myChartPlotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 33: this.cursorGraph = ((Microsoft.Research.DynamicDataDisplay.Charts.Navigation.CursorCoordinateGraph)(target)); return; case 34: this.intAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.Axes.IntegerAxis)(target)); return; case 35: this.txt_DeckCount = ((System.Windows.Controls.TextBox)(target)); return; case 36: this.label13 = ((System.Windows.Controls.Label)(target)); return; case 37: this.check_H17 = ((System.Windows.Controls.CheckBox)(target)); return; case 38: this.txt_BankRoll = ((System.Windows.Controls.TextBox)(target)); return; case 39: this.label14 = ((System.Windows.Controls.Label)(target)); return; case 40: this.txt_BetSpread = ((System.Windows.Controls.TextBox)(target)); return; case 41: this.label15 = ((System.Windows.Controls.Label)(target)); return; case 42: this.label16 = ((System.Windows.Controls.Label)(target)); return; case 43: this.radio_None = ((System.Windows.Controls.RadioButton)(target)); return; case 44: this.radio_KO = ((System.Windows.Controls.RadioButton)(target)); return; case 45: this.txt_Penetration = ((System.Windows.Controls.TextBox)(target)); return; case 46: this.label17 = ((System.Windows.Controls.Label)(target)); return; case 47: this.check_DAS = ((System.Windows.Controls.CheckBox)(target)); return; case 48: this.txt_HoursOfPlay = ((System.Windows.Controls.TextBox)(target)); return; case 49: this.label18 = ((System.Windows.Controls.Label)(target)); return; case 50: this.txt_MinBet = ((System.Windows.Controls.TextBox)(target)); return; case 51: this.label19 = ((System.Windows.Controls.Label)(target)); return; case 52: this.txt_MaxBet = ((System.Windows.Controls.TextBox)(target)); return; case 53: this.label20 = ((System.Windows.Controls.Label)(target)); return; case 54: this.txt_NumPlayers = ((System.Windows.Controls.TextBox)(target)); return; case 55: this.label21 = ((System.Windows.Controls.Label)(target)); return; case 56: this.check_RSA = ((System.Windows.Controls.CheckBox)(target)); return; case 57: this.check_Surrender = ((System.Windows.Controls.CheckBox)(target)); return; case 58: this.txt_TablePosition = ((System.Windows.Controls.TextBox)(target)); return; case 59: this.label22 = ((System.Windows.Controls.Label)(target)); return; case 60: this.check_BetRamp = ((System.Windows.Controls.CheckBox)(target)); return; case 61: this.tabItem3 = ((System.Windows.Controls.TabItem)(target)); return; case 62: this.txt_player1 = ((System.Windows.Controls.TextBox)(target)); return; case 63: this.txt_player2 = ((System.Windows.Controls.TextBox)(target)); return; case 64: this.txt_dealerUp = ((System.Windows.Controls.TextBox)(target)); return; case 65: this.label10 = ((System.Windows.Controls.Label)(target)); return; case 66: this.label11 = ((System.Windows.Controls.Label)(target)); return; case 67: this.label12 = ((System.Windows.Controls.Label)(target)); return; case 68: this.lbl_first = ((System.Windows.Controls.Label)(target)); return; case 69: this.lbl_second = ((System.Windows.Controls.Label)(target)); return; case 70: this.lbl_third = ((System.Windows.Controls.Label)(target)); return; case 71: this.lbl_fourth = ((System.Windows.Controls.Label)(target)); return; case 72: this.label1 = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\Trend.xaml" ((CoreTest.Trend)(target)).Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden return; case 2: this.toolBar1 = ((System.Windows.Controls.ToolBar)(target)); return; case 3: this.dtstart = ((Microsoft.Windows.Controls.DateTimePicker)(target)); return; case 4: this.dtend = ((Microsoft.Windows.Controls.DateTimePicker)(target)); return; case 5: this.PCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 6: this.popusBottom = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 7: this.chklist = ((Microsoft.Windows.Controls.CheckListBox)(target)); return; case 8: this.comodel = ((System.Windows.Controls.ComboBox)(target)); #line 40 "..\..\..\Trend.xaml" this.comodel.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comodel_SelectionChanged); #line default #line hidden return; case 9: this.chkshow = ((System.Windows.Controls.CheckBox)(target)); #line 45 "..\..\..\Trend.xaml" this.chkshow.Click += new System.Windows.RoutedEventHandler(this.chkshow_Click); #line default #line hidden return; case 10: this.colorpicker = ((Microsoft.Windows.Controls.ColorPicker)(target)); #line 46 "..\..\..\Trend.xaml" this.colorpicker.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler <System.Windows.Media.Color>(this.ColorPicker_SelectedColorChanged); #line default #line hidden return; case 11: this.chartPlotter1 = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 12: this.hTimeSpanAxis = ((Microsoft.Research.DynamicDataDisplay.Charts.HorizontalDateTimeAxis)(target)); return; case 13: this.cursor = ((Microsoft.Research.DynamicDataDisplay.Charts.Navigation.CursorCoordinateGraph)(target)); return; case 14: this.axiscuror = ((Microsoft.Research.DynamicDataDisplay.Charts.Navigation.AxisCursorGraph)(target)); return; } this._contentLoaded = true; }
private static void OnPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CursorCoordinateGraph graph = (CursorCoordinateGraph)d; graph.UpdateUIRepresentation((Point)e.NewValue); }