示例#1
0
 private void ProductPopularityReportMenuItem_Click(object sender, RoutedEventArgs e)
 {
     ((Storyboard)this.Resources["StoryboardFadeOut"]).Begin(this);
     ProductPopularityReportWindow objProductPopularityReportWindow = new ProductPopularityReportWindow();
     objProductPopularityReportWindow.Owner = this;
     objProductPopularityReportWindow.ShowDialog();
     objProductPopularityReportWindow = null;
     ((Storyboard)this.Resources["StoryboardFadeIn"]).Begin(this);
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((Restaurant.ProductPopularityReportWindow)(target));
     
     #line 4 "..\..\ProductPopularityReportWindow.xaml"
     this.window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 50 "..\..\ProductPopularityReportWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseCommand_Executed);
     
     #line default
     #line hidden
     return;
     case 3:
     this.datePickerFromDate = ((Microsoft.Windows.Controls.DatePicker)(target));
     return;
     case 4:
     this.datePickerToDate = ((Microsoft.Windows.Controls.DatePicker)(target));
     return;
     case 5:
     this.btnShowResult = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\ProductPopularityReportWindow.xaml"
     this.btnShowResult.Click += new System.Windows.RoutedEventHandler(this.btnShowResult_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.ResultGridView = ((Restaurant.SortableListView)(target));
     return;
     case 7:
     this.btnPrint = ((System.Windows.Controls.Button)(target));
     
     #line 82 "..\..\ProductPopularityReportWindow.xaml"
     this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }