Exemple #1
0
        private bool ContainVerbOpen(ShellFolderItem item)
        {
            bool            flag     = false;
            FolderItemVerbs variable = item.Verbs();

            foreach (FolderItemVerb variable1 in variable)
            {
                if (variable1.Name == null || !variable1.Name.Equals(ControlPanelResources.VerbActionOpen, StringComparison.OrdinalIgnoreCase) && !ControlPanelItemBaseCommand.CompareVerbActionOpen(variable1.Name))
                {
                    continue;
                }
                flag = true;
                break;
            }
            return(flag);
        }
        /// <summary>
        /// Test if an item can be invoked
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        private bool ContainVerbOpen(ShellFolderItem item)
        {
            bool            result = false;
            FolderItemVerbs verbs  = item.Verbs();

            foreach (FolderItemVerb verb in verbs)
            {
                if (!String.IsNullOrEmpty(verb.Name) &&
                    (verb.Name.Equals(ControlPanelResources.VerbActionOpen, StringComparison.OrdinalIgnoreCase) ||
                     CompareVerbActionOpen(verb.Name)))
                {
                    result = true;
                    break;
                }
            }
            return(result);
        }
 /// <summary>
 /// Test if an item can be invoked
 /// </summary>
 /// <param name="item"></param>
 /// <returns></returns>
 private bool ContainVerbOpen(ShellFolderItem item)
 {
     bool result = false;
     FolderItemVerbs verbs = item.Verbs();
     foreach (FolderItemVerb verb in verbs)
     {
         if (!String.IsNullOrEmpty(verb.Name) &&
             (verb.Name.Equals(ControlPanelResources.VerbActionOpen, StringComparison.OrdinalIgnoreCase) ||
              CompareVerbActionOpen(verb.Name)))
         {
             result = true;
             break;
         }
     }
     return result;
 }
		private bool ContainVerbOpen(ShellFolderItem item)
		{
			bool flag = false;
			FolderItemVerbs variable = item.Verbs();
			foreach (FolderItemVerb variable1 in variable)
			{
				if (variable1.Name == null || !variable1.Name.Equals(ControlPanelResources.VerbActionOpen, StringComparison.OrdinalIgnoreCase) && !ControlPanelItemBaseCommand.CompareVerbActionOpen(variable1.Name))
				{
					continue;
				}
				flag = true;
				break;
			}
			return flag;
		}