コード例 #1
0
 public formLeden(Bioscoop b, Lid l)
 {
     InitializeComponent();
     Bios = b;
     lid  = l;
     ShowInfo();
 }
コード例 #2
0
 public formMedewerker(Medewerker m, Bioscoop b)
 {
     InitializeComponent();
     SelectedItems = new List <object>();
     medewerker    = m;
     bioscoop      = b;
     refreshData();
 }
コード例 #3
0
        private void loadMS_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FileInfo fileInfo = new FileInfo(openFileDialog.FileName);
                if (fileInfo.Extension == ".txt")
                {
                    try
                    {
                        Bioscoop NewBioscoop = bioscoop.Load(fileInfo.FullName);
                        if (NewBioscoop != null)
                        {
                            bioscoop = NewBioscoop;
                        }
                        else
                        {
                            MessageBox.Show("Loading failed");
                        }
                        ShowInfo();
                        refreshData();
                        MessageBox.Show("Loading completed");
                    }
                    catch (SerializationException ex)
                    {
                        MessageBox.Show(ex.ToString());
                    }
                    catch (OutOfMemoryException ex)
                    {
                        MessageBox.Show(ex.ToString());
                    }
                    catch (IOException ex)
                    {
                        MessageBox.Show(ex.ToString());
                    }
                }
                else
                {
                    MessageBox.Show("Select a .txt file");
                }
            }
        }
コード例 #4
0
 public formBezoeker(Bioscoop bioscoop)
 {
     InitializeComponent();
     this.Bioscoop = bioscoop;
     UpdateGuiInfo();
 }
コード例 #5
0
 public formRegistreer(Bioscoop b)
 {
     InitializeComponent();
     bioscoop = b;
     btnRegistreer.Enabled = false;
 }
コード例 #6
0
 public formLogIn(Bioscoop b)
 {
     InitializeComponent();
     Bios = b;
 }
コード例 #7
0
 public formLogIn()
 {
     InitializeComponent();
     Bios = new Bioscoop("Bios", "Eindhoven");
     Bios.MaakStandaardBioscoop();
 }