Esempio n. 1
0
        private void HLPRqst(object sender, HelpEventArgs hlpevent)
        {
            MovieLibraryMain myMainForm = new MovieLibraryMain();

            Form About = new About_Box.AboutBox();

            About.ShowDialog();
        }
Esempio n. 2
0
        private void HLPBtnClick(object sender, System.ComponentModel.CancelEventArgs e)
        {
            MovieLibraryMain myMainForm = new MovieLibraryMain();

            Form About = new About_Box.AboutBox();

            About.ShowDialog();
        }
Esempio n. 3
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            MovieLibraryMain myMainForm = new MovieLibraryMain();

            Form Search = new Search();

            Search.ShowDialog();
        }
Esempio n. 4
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            listOfCast.Clear();
            MovieLibraryMain myMainForm = new MovieLibraryMain();

            Form Edit = new Edit();

            Edit.ShowDialog();
            DisplayListView(listOfMovies);
        }
Esempio n. 5
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            listOfCast.Clear();
            MovieLibraryMain myMainForm = new MovieLibraryMain();

            Form Add = new Add();

            Add.ShowDialog();

            DisplayListView(listOfMovies);
        }
Esempio n. 6
0
        private void listMovies_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (selected == true)
            {
                MovieLibraryMain myMainForm = new MovieLibraryMain();

                Form MovieInfo = new MovieInfo();
                MovieInfo.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please select a movie from the database in order to display its details.");
            }
        }
Esempio n. 7
0
        private void MovieLibraryMain_Load(object sender, EventArgs e)
        {
            listOfUser = new List <LoginData>();
            listOfUser = LoginHandler.ReadUsers();
            DisplayListViewBin(listOfMovies, listMovies);
            MovieLibraryMain myMainForm = new MovieLibraryMain();

            Form Login = new LoginForm();

            Login.ShowDialog();


            if (close == true)
            {
                this.Close();
            }
            else
            {
                this.Text = "Movie Library - Welcome " + userlogged + "!";
                listMovies.Items.Clear();
                listMovies.View = View.Details;
            }
        }