예제 #1
0
 public void changeName(ListView listView, MainWindow win)
 {
     ChangeWindow cw = new ChangeWindow(win);
     cw.Show();
 }
예제 #2
0
 public ChangeWindow(MainWindow parentWin)
 {
     _mw = parentWin;
     InitializeComponent();
 }
예제 #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MyGames = ((MyGames.MainWindow)(target));
     return;
     case 2:
     this.button = ((System.Windows.Controls.Button)(target));
     
     #line 13 "..\..\MainWindow.xaml"
     this.button.Click += new System.Windows.RoutedEventHandler(this.add_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 14 "..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.delete_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 15 "..\..\MainWindow.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.play_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.listView = ((System.Windows.Controls.ListView)(target));
     
     #line 16 "..\..\MainWindow.xaml"
     this.listView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.play_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.Menu = ((System.Windows.Controls.ContextMenu)(target));
     return;
     case 7:
     
     #line 19 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.play_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 20 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.delete_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }