/// <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);
     }
 }
Exemplo n.º 2
0
        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);
                }
            }
        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
 /// <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);
     }
 }
Exemplo n.º 5
0
 /// <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);
     }
 }
Exemplo n.º 6
0
        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();
            }
           
        }