private void change_Click(object sender, RoutedEventArgs e) { int i = dataGridMovies.SelectedIndex; NewMovie nm = new NewMovie(i); nm.ShowDialog(); }
private void new_Click(object sender, RoutedEventArgs e) { NewMovie nm = new NewMovie(-1); nm.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.win1 = ((WpfApplication6.NewMovie)(target)); return; case 2: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 3: this.labelTitle = ((System.Windows.Controls.Label)(target)); return; case 4: this.textBoxTitle = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.labelErrorTitle = ((System.Windows.Controls.Label)(target)); return; case 6: this.labelYear = ((System.Windows.Controls.Label)(target)); return; case 7: this.textBoxYear = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.labelErrorYear = ((System.Windows.Controls.Label)(target)); return; case 9: this.labelGenre = ((System.Windows.Controls.Label)(target)); return; case 10: this.comboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 11: this.labelErrorGenre = ((System.Windows.Controls.Label)(target)); return; case 12: this.labelProducer = ((System.Windows.Controls.Label)(target)); return; case 13: this.textBoxProducer = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.labelErrorProducer = ((System.Windows.Controls.Label)(target)); return; case 15: this.labelScore = ((System.Windows.Controls.Label)(target)); return; case 16: this.textBoxScore = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.labelErrorScore = ((System.Windows.Controls.Label)(target)); return; case 18: this.labelBrief = ((System.Windows.Controls.Label)(target)); return; case 19: this.textBoxBrief = ((System.Windows.Controls.TextBox)(target)); return; case 20: this.labelErrorBrief = ((System.Windows.Controls.Label)(target)); return; case 21: this.labelPic1 = ((System.Windows.Controls.Label)(target)); return; case 22: this.button1 = ((System.Windows.Controls.Button)(target)); #line 65 "..\..\NewMovie.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 23: this.labelErrorPic1 = ((System.Windows.Controls.Label)(target)); return; case 24: this.labelPic2 = ((System.Windows.Controls.Label)(target)); return; case 25: this.button2 = ((System.Windows.Controls.Button)(target)); #line 69 "..\..\NewMovie.xaml" this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click); #line default #line hidden return; case 26: this.labelErrorPic2 = ((System.Windows.Controls.Label)(target)); return; case 27: this.labelDescription = ((System.Windows.Controls.Label)(target)); return; case 28: this.textBoxDescription = ((System.Windows.Controls.TextBox)(target)); return; case 29: this.labelErrorDescription = ((System.Windows.Controls.Label)(target)); return; case 30: this.add = ((System.Windows.Controls.Button)(target)); #line 77 "..\..\NewMovie.xaml" this.add.Click += new System.Windows.RoutedEventHandler(this.add_Click); #line default #line hidden return; case 31: this.image1 = ((System.Windows.Controls.Image)(target)); return; case 32: this.image2 = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }