public static void OnScaleValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { InGame inGame = o as InGame; if (inGame != null) { inGame.OnScaleValueChanged((double)e.OldValue, (double)e.NewValue); } }
private void Start_G_Click(object sender, RoutedEventArgs e) { InGame OP = new InGame(); OP.Show(); this.Close(); string demox = FinalProject.MainDB.DB(); MessageBox.Show(demox); }
private static object OnCoerceScaleValue(DependencyObject o, object value) { InGame inGame = o as InGame; if (inGame != null) { return(inGame.OnCoerceScaleValue((double)value)); } else { return(value); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myInGame = ((FinalProject.InGame)(target)); return; case 2: this.MainGrid = ((System.Windows.Controls.Grid)(target)); #line 12 "..\..\InGame.xaml" this.MainGrid.SizeChanged += new System.Windows.SizeChangedEventHandler(this.MainGrid_SizeChanged); #line default #line hidden return; case 3: this.ApplicationScaleTransform = ((System.Windows.Media.ScaleTransform)(target)); return; case 4: this.S1_B = ((System.Windows.Controls.Border)(target)); return; case 5: this.S2_B = ((System.Windows.Controls.Border)(target)); return; case 6: this.S3_B = ((System.Windows.Controls.Border)(target)); return; case 7: this.S4_B = ((System.Windows.Controls.Border)(target)); return; case 8: this.S5_B = ((System.Windows.Controls.Border)(target)); return; case 9: this.M1_B = ((System.Windows.Controls.Border)(target)); return; case 10: this.M2_B = ((System.Windows.Controls.Border)(target)); return; case 11: this.M3_B = ((System.Windows.Controls.Border)(target)); return; case 12: this.M4_B = ((System.Windows.Controls.Border)(target)); return; case 13: this.M5_B = ((System.Windows.Controls.Border)(target)); return; case 14: this.DP = ((System.Windows.Controls.Label)(target)); return; case 15: this.M1_A = ((System.Windows.Controls.Border)(target)); return; case 16: this.M2_A = ((System.Windows.Controls.Border)(target)); return; case 17: this.M3_A = ((System.Windows.Controls.Border)(target)); return; case 18: this.M4_A = ((System.Windows.Controls.Border)(target)); return; case 19: this.M5_A = ((System.Windows.Controls.Border)(target)); return; case 20: this.S1_A = ((System.Windows.Controls.Border)(target)); return; case 21: this.S2_A = ((System.Windows.Controls.Border)(target)); return; case 22: this.S3_A = ((System.Windows.Controls.Border)(target)); return; case 23: this.S4_A = ((System.Windows.Controls.Border)(target)); return; case 24: this.S5_A = ((System.Windows.Controls.Border)(target)); return; case 25: this.Infotextblock = ((System.Windows.Controls.TextBlock)(target)); return; case 26: this.InfoBarScroll = ((System.Windows.Controls.Primitives.ScrollBar)(target)); #line 480 "..\..\InGame.xaml" this.InfoBarScroll.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.InfoBarScroll_Scroll); #line default #line hidden return; } this._contentLoaded = true; }