Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
- namespace Agam_Cinema
- {
- /// <summary>
- /// Interaction logic for AddMovie.xaml
- /// </summary>
- public partial class AddMovie : Window
- {
- public AddMovie()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, RoutedEventArgs e)
- {
- string name = txtName.Text;
- string genre = txtGenre.Text;
- bool dubbed = checkBox1.IsChecked.Value;
- bool is3d = checkBox2.IsChecked.Value;
- MessageBox.Show(name + " " + genre);
- MainWindow main = new MainWindow();
- main.CallbackAddMovie(name, genre, dubbed, is3d);
- this.Close();
- }
- private void button2_Click(object sender, RoutedEventArgs e)
- {
- this.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement