private void dietAddNewFoodButtonClick(object sender, RoutedEventArgs e) { AddNewFood addNewFood = new AddNewFood(); addNewFood.Top = myWindow.Top; addNewFood.Left = myWindow.Left + 100; addNewFood.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AddNewFoodWindow = ((WłasnyProjekt.AddNewFood)(target)); #line 12 "..\..\AddNewFood.xaml" this.AddNewFoodWindow.Loaded += new System.Windows.RoutedEventHandler(this.addNewFoodLoaded); #line default #line hidden return; case 2: this.dataGridOfAvailableFood = ((System.Windows.Controls.DataGrid)(target)); return; case 3: #line 64 "..\..\AddNewFood.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.addFoodAddButton); #line default #line hidden return; case 4: #line 65 "..\..\AddNewFood.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CreateNewFoodButtonClick); #line default #line hidden return; case 5: #line 66 "..\..\AddNewFood.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddFoodCancelButton); #line default #line hidden return; } this._contentLoaded = true; }