void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AddWindow = ((SDesignDesktop.AddRoute)(target)); return; case 2: this.RouteList = ((System.Windows.Controls.ListBox)(target)); return; case 3: this.label = ((System.Windows.Controls.Label)(target)); return; case 4: this.textBox = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.button = ((System.Windows.Controls.Button)(target)); return; case 6: this.textBlock1 = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.textBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.Barrels = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.BarrelTotal = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.Cases = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.CaseTotal = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.Stops = ((System.Windows.Controls.TextBlock)(target)); return; case 13: this.TotalStops = ((System.Windows.Controls.TextBlock)(target)); return; case 14: this.Confirm = ((System.Windows.Controls.Button)(target)); #line 115 "..\..\AddRoute.xaml" this.Confirm.Click += new System.Windows.RoutedEventHandler(this.Confirm_Click); #line default #line hidden return; case 15: this.Cancel = ((System.Windows.Controls.Button)(target)); #line 116 "..\..\AddRoute.xaml" this.Cancel.Click += new System.Windows.RoutedEventHandler(this.Cancel_Click); #line default #line hidden return; case 16: this.Add = ((System.Windows.Controls.Frame)(target)); return; } this._contentLoaded = true; }
private void AddRoute_Click(object sender, RoutedEventArgs e) { Window add = new AddRoute(); add.Show(); }