/// <summary> /// Occurs when a file item was double clicked. /// </summary> private void OnDoubleClickFile(string strPath) { if (DoubleClickFile != null) { DoubleClickFileEventArgs eventArgs = new DoubleClickFileEventArgs(); if (File.Exists(strPath) || Directory.Exists(strPath)) { eventArgs.m_strPath = strPath; } DoubleClickFile(this, eventArgs); } }
private void OnDoubleClickFile(object sender, DoubleClickFileEventArgs args) { if (args != null) { CatalogItem ci = _cat.GetByVPath(args.m_strPath); string launchPath = BuildLaunchPath(ci, true); if (!string.IsNullOrEmpty(launchPath)) { List<string> paths = new List<string>(); paths.Add(launchPath); RaiseNavigationAction(NavActionType.ActionDoubleClickFile, paths); } } }
private void OnDoubleClickFile(object sender, DoubleClickFileEventArgs args) { CancelAutoPreview(); if (args != null) { List<string> paths = new List<string>(); paths.Add(args.m_strPath); RaiseNavigationAction(NavActionType.ActionDoubleClickFile, paths); } }
/// <summary> /// Occurs when a file item was double clicked. /// </summary> private void OnDoubleClickFile(string strPath) { if (DoubleClickFile != null) { DoubleClickFileEventArgs eventArgs = new DoubleClickFileEventArgs(); eventArgs.m_strPath = strPath; DoubleClickFile(this, eventArgs); } }
void lvExplorer_DoubleClickFile(object sender, DoubleClickFileEventArgs args) { bool exists = File.Exists(args.m_strPath); if (((this is OPMOpenFileDialog) && exists) || ((this is OPMSaveFileDialog) && (CanSaveFile(args.m_strPath, false)))) { FileNames = new string[] { args.m_strPath }; ShowFileNames(); DialogResult = DialogResult.OK; Close(); } }