private void ThumbListViewItem_LaunchVideo(object sender, EventArgs e) { CancelEditMode(); ThumbListViewItem tlvi = sender as ThumbListViewItem; if (tlvi != null && !tlvi.ErrorImage) { m_ScreenManagerUIContainer.DropLoadMovie(tlvi.FileName, -1); } }
private void IdleDetector(object sender, EventArgs e) { log.Debug("Application is idle in ScreenManagerUserInterface."); // This is a one time only routine. Application.Idle -= new EventHandler(this.IdleDetector); // Launch file. string filePath = CommandLineArgumentManager.Instance().InputFile; if (filePath != null && File.Exists(filePath)) { m_ScreenManagerUIContainer.DropLoadMovie(filePath, -1); } }