void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Win = ((WpfPractise.ADO.Pages.CustomFilter)(target)); return; case 2: this.Gd = ((System.Windows.Controls.Grid)(target)); return; case 3: this.StackPanel1 = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this.btn_add = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\..\..\ADO\Pages\CustomFilter.xaml" this.btn_add.Click += new System.Windows.RoutedEventHandler(this.btn_add_Click); #line default #line hidden return; case 5: this.btn_apply = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\..\..\ADO\Pages\CustomFilter.xaml" this.btn_apply.Click += new System.Windows.RoutedEventHandler(this.btn_apply_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void CusFilter_Click(object sender, RoutedEventArgs e) { var cs = new CustomFilter(); cs.ShowDialog(); }