public static void ShowWin_MovieProfile(MovieProfile mProfile) { frmMovieProfile frm = new frmMovieProfile(); frm.param_MovieProfile = mProfile; frm.Show(); }
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()); } } }
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(); }
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(); } }