Пример #1
0
        public static void ShowWin_MovieProfile(MovieProfile mProfile)
        {
            frmMovieProfile frm = new frmMovieProfile();

            frm.param_MovieProfile = mProfile;
            frm.Show();
        }
Пример #2
0
        public static void movieList_OnKeyUpMovieList(object sender, KeyEventArgs e)
        {
            ListView lv = (ListView)sender;

            if (lv.SelectedItems.Count < 1)
            {
                return;
            }

            if (e.KeyCode == Keys.Enter)
            {
                if (e.Shift)
                {
                    MovieProfile    mProfile = (MovieProfile)lv.SelectedItems[0].Tag;
                    frmMovieProfile frm      = new frmMovieProfile();
                    frm.param_MovieProfile = mProfile;
                    frm.param_MovieList    = (ucMovieList)lv.Parent;
                    frm.Show();
                }
                else
                {
                    movieList_OnDoubleClickMovieList(sender, new EventArgs());
                }
            }
        }
Пример #3
0
        public static void ShowWin_ImportMovieFromFile(string FilePath)
        {
            MovieProfile    newProfile = new MovieProfile(FilePath);
            frmMovieProfile frm        = new frmMovieProfile();

            frm.param_MovieProfile = newProfile;
            frm.param_isRefreshAllMovieAfterClose = true;
            frm.param_isNewImport = true;
            frm.Show();
        }
Пример #4
0
        public static void movieList_OnDoubleClickMovieList(object sender, EventArgs s)
        {
            ListView lv = (ListView)sender;

            if (lv.SelectedItems.Count > 0)
            {
                MovieProfile    mProfile = (MovieProfile)lv.SelectedItems[0].Tag;
                frmMovieProfile frm      = new frmMovieProfile();
                frm.param_MovieProfile = mProfile;
                frm.param_MovieList    = (ucMovieList)lv.Parent;
                frm.Show();
            }
        }