Advertisement
Guest User

ADDMOVIE.CS

a guest
Apr 1st, 2013
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.16 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Shapes;
  13.  
  14. namespace Agam_Cinema
  15. {
  16.     /// <summary>
  17.     /// Interaction logic for AddMovie.xaml
  18.     /// </summary>
  19.     public partial class AddMovie : Window
  20.     {
  21.         public AddMovie()
  22.         {
  23.             InitializeComponent();
  24.         }
  25.  
  26.         private void button1_Click(object sender, RoutedEventArgs e)
  27.         {
  28.             string name = txtName.Text;
  29.             string genre = txtGenre.Text;
  30.             bool dubbed = checkBox1.IsChecked.Value;
  31.             bool is3d = checkBox2.IsChecked.Value;
  32.             MessageBox.Show(name + " " + genre);
  33.             MainWindow main = new MainWindow();
  34.             main.CallbackAddMovie(name, genre, dubbed, is3d);
  35.             this.Close();
  36.         }
  37.  
  38.         private void button2_Click(object sender, RoutedEventArgs e)
  39.         {
  40.             this.Close();
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement