• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SearchMode类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SearchMode的典型用法代码示例。如果您正苦于以下问题:C# SearchMode类的具体用法?C# SearchMode怎么用?C# SearchMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SearchMode类属于命名空间,在下文中一共展示了SearchMode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Run

        public override object Run(WorkFlowContext context, SearchMode mode, WorkFlow.Visitors.IVisitor visitor = null)
        {
            if (visitor == null)
                visitor = new DefaultVisitor();

            Queue<string> fila = new Queue<string>();
            List<string> mark = new List<string>();

            fila.Enqueue(context.SourceState);
            mark.Add(context.SourceState);

            while (fila.Count != 0)
            {
                string statusfila = fila.Dequeue();
                context.SourceState = statusfila;
                foreach (var item in this.GetActivities(context).OrderBy(x => x.Operation))
                {
                    context.Operation = item.Operation;
                    string newstatus = this.GetNextStatus(context);
                    visitor.Visit(statusfila, new Activity { Operation = item.Operation, Description = item.Description }, newstatus);

                    if (!mark.Contains(newstatus))
                    {
                        fila.Enqueue(newstatus);
                        mark.Add(newstatus);
                    }
                }
            }

            return visitor.EndVisit();
        }
开发者ID:yonglehou,项目名称:LightWorkFlow,代码行数:31,代码来源:WorkFlowTest.cs


示例2: Resolve

        /// <summary>
        /// Resolves a dependency.
        /// </summary>
        /// <param name="typeToResolve">The type to be resolved.</param>
        /// <param name="typeToCreate">The type to be created, if the type cannot be resolved
        /// (and notPresent is set to <see cref="NotPresentBehavior.CreateNew"/>).</param>
        /// <param name="id">The ID of the object to be resolved. Pass null for the unnamed object.</param>
        /// <param name="notPresent">Flag to describe how to behave if the dependency is not found.</param>
        /// <param name="searchMode">Flag to describe whether searches are local only, or local and up.</param>
        /// <returns>The dependent object. If the object is not found, and notPresent
        /// is set to <see cref="NotPresentBehavior.ReturnNull"/>, will return null.</returns>
        public object Resolve(Type typeToResolve, Type typeToCreate, string id, NotPresentBehavior notPresent, SearchMode searchMode)
        {
            if (typeToResolve == null)
                throw new ArgumentNullException("typeToResolve");
            if (!Enum.IsDefined(typeof(NotPresentBehavior), notPresent))
                throw new ArgumentException(Properties.Resources.InvalidEnumerationValue, "notPresent");

            if (typeToCreate == null)
                typeToCreate = typeToResolve;

            DependencyResolutionLocatorKey key = new DependencyResolutionLocatorKey(typeToResolve, id);

            if (context.Locator.Contains(key, searchMode))
                return context.Locator.Get(key, searchMode);

            switch (notPresent)
            {
                case NotPresentBehavior.CreateNew:
                    return context.HeadOfChain.BuildUp(context, typeToCreate, null, key.ID);

                case NotPresentBehavior.ReturnNull:
                    return null;

                default:
                    throw new DependencyMissingException(
                        string.Format(CultureInfo.CurrentCulture,
                        Properties.Resources.DependencyMissing, typeToResolve.ToString()));
            }
        }
开发者ID:BackupTheBerlios,项目名称:sofia-svn,代码行数:40,代码来源:DependencyResolver.cs


示例3: SearchForm

        public SearchForm(ConsoleNode console, SearchMode mode)
        {
            InitializeComponent();

            //fill the data
            SetData(console, mode);
        }
开发者ID:JamesTryand,项目名称:alchemi,代码行数:7,代码来源:SearchForm.cs


示例4: Create

        /// <summary>
        /// Creates a default ISearchStrategy with the given parameters.
        /// </summary>
        public static ISearchStrategy Create(string searchPattern, bool ignoreCase, bool matchWholeWords, SearchMode mode)
        {
            if (searchPattern == null)
                throw new ArgumentNullException("searchPattern");
            RegexOptions options = RegexOptions.Compiled | RegexOptions.Multiline;
            if (ignoreCase)
                options |= RegexOptions.IgnoreCase;

            switch (mode) {
                case SearchMode.Normal:
                    searchPattern = Regex.Escape(searchPattern);
                    break;
                case SearchMode.Wildcard:
                    searchPattern = ConvertWildcardsToRegex(searchPattern);
                    break;
            }

            if (matchWholeWords)
                searchPattern = "\\b" + searchPattern + "\\b";
            try {
                Regex pattern = new Regex(searchPattern, options);
                return new RegexSearchStrategy(pattern);
            } catch (ArgumentException ex) {
                throw new SearchPatternException(ex.Message, ex);
            }
        }
开发者ID:jasondeering,项目名称:Git-Source-Control-Provider,代码行数:29,代码来源:SearchStrategyFactory.cs


示例5: TrackingPointGetter

        public TrackingPointGetter(string prompt, CurvesTopology crvTopology, int fromIndex, SearchMode mode)
        {
            _crvTopology = crvTopology;
            _fromIndex = fromIndex;

            if(!Enum.IsDefined(typeof(SearchMode), mode))
                throw new ArgumentException("Enum is undefined.", "mode");
            _sm = mode;

            if (!string.IsNullOrEmpty(prompt))
                _getPoint.SetCommandPrompt(prompt);

            if (fromIndex != -1)
            {
                switch(mode)
                {
                    case SearchMode.CurveLength:
                        _distances = crvTopology.MeasureAllEdgeLengths();
                        break;
                    case SearchMode.LinearDistance:
                        _distances = crvTopology.MeasureAllEdgeLinearDistances();
                        break;
                    case SearchMode.Links:
                        _distances = null;
                        break;
                    default:
                        throw new ApplicationException("Behaviour for this enum value is undefined.");
                }
            }
            _getPoint.DynamicDraw += DynamicDraw;

            _pathSearchMethod = PathMethod.FromMode(_sm, _crvTopology, _distances);
        }
开发者ID:shortestwalk-demo,项目名称:ShortestWalk,代码行数:33,代码来源:TrackingPointGetter.cs


示例6: DependencyParameter

 public DependencyParameter(Type parameterType, string name, Type createType, NotPresentBehavior notPresentBehavior, SearchMode searchMode) : base(parameterType)
 {
     this.name = name;
     this.createType = createType;
     this.notPresentBehavior = notPresentBehavior;
     this.searchMode = searchMode;
 }
开发者ID:huaminglee,项目名称:myyyyshop,代码行数:7,代码来源:DependencyParameter.cs


示例7: ParseCommand_1

        static void ParseCommand_1(string[] args, SearchMode ch)
        {
            switch (ch)
            {
                case SearchMode.a:
                    break;
                case SearchMode.nm:
                    if (args.Length < 4)
                        throw new ArgumentException("Некорректная команда! Отсутствует <аргумент_3>.");
                    break;
                case SearchMode.sz:
                    {
                        long size;
                        if (!Int64.TryParse(args[3], out size))
                            throw new ArgumentException("Некорректная команда! Проверьте <аргумент_3>.");
                        break;
                    }
                case SearchMode.crt:
                case SearchMode.lat:
                case SearchMode.lwt:
                    {
                        DateTime date;
                        if (!DateTime.TryParse(args[3], out date))
                            throw new ArgumentException("Некорректная команда! Проверьте <аргумент_3>.");
                        break;
                    }
                case SearchMode.ctn:
                    if (args.Length < 4)
                        throw new ArgumentException("Некорректная команда! Отсутствует <аргумент_3>.");
                    word_to_change = args[3];
                    break;
            }


        }
开发者ID:NikitaVas,项目名称:CSharp,代码行数:35,代码来源:Program.cs


示例8: GetStudents

        public IEnumerable<StudentViewModel> GetStudents(string name, SearchMode searchMode)
        {
            IEnumerable<Domain.Student> students;
            if (String.IsNullOrWhiteSpace(name))
            {
                students = _session.Query<Domain.Student>().ToList();
            }
            else
            {
                switch (searchMode)
                {
                    case SearchMode.BeginsWith:
                        students = _session.Advanced.LuceneQuery<Domain.Student>()
                                        .WhereStartsWith("FirstName", name).Boost(3)
                                        .WhereStartsWith("LastName", name)
                                        .ToList();
                        break;
                    case SearchMode.Contains:
                        students = _session.Advanced.LuceneQuery<Domain.Student>()
                                            .Where(String.Format("FirstName:*{0}*", name)).Boost(3)
                                            .Where(String.Format("LastName:*{0}*", name))
                                            .ToList();

                        break;
                    default:
                        students = _session.Query<Domain.Student>().ToList();
                        break;
                }
            }
            return Mapper.Map<IEnumerable<Domain.Student>, IEnumerable<StudentViewModel>>(students);
        }
开发者ID:tsbala,项目名称:RavenDB,代码行数:31,代码来源:StudentApplicationService.cs


示例9: Search

        private TopDocs topDocs; //搜索到的doc。

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Search构造函数
        /// </summary>
        /// <param name="_form">主窗</param>
        /// <param name="_mode">搜索模式</param>
        public Search(FileFinder _form, SearchMode _mode)
        {
            //修改maxCluseCount是为了用PrefixQuery时没有数量的限制,
            //PrefixQuery会将找到的数据用TermQuery,然后用booleanQuery.add()方法。
            BooleanQuery.SetMaxClauseCount(int.MaxValue);

            this.oldBoolQuery = new BooleanQuery();
            this.form = _form;
            this.SetSearcher(_mode);
        }
开发者ID:cqm0609,项目名称:lucene-file-finder,代码行数:21,代码来源:Search.cs


示例10: SearchForm

        public SearchForm(ConsoleNode console, SearchMode mode)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //fill the data
            SetData(console, mode);
        }
开发者ID:abhishek-kumar,项目名称:AIGA,代码行数:10,代码来源:SearchForm.cs


示例11: Create

    /// <summary>
    /// Creates a default ISearchStrategy with the given parameters.
    /// </summary>
    public static ISearchStrategy Create(string searchPattern, bool ignoreCase, bool matchWholeWords, SearchMode mode)
    {
      if (searchPattern == null)
      {
        throw new ArgumentNullException("searchPattern");
      }

      var regexOptions = RegexOptions.Compiled;
      if ((mode == SearchMode.Extended || mode == SearchMode.RegEx)
        && (searchPattern.IndexOf("\\r") > 0 || searchPattern.IndexOf("\\n") > 0))
      {
        // Don't change the Regex mode
      }
      else
      {
        regexOptions |= RegexOptions.Multiline;
      }

      if (ignoreCase)
      {
        regexOptions |= RegexOptions.IgnoreCase;
      }

      switch (mode)
      {
        case SearchMode.Normal:
          searchPattern = Regex.Escape(searchPattern);
          break;
        case SearchMode.Extended:
          try
          {
            searchPattern = Regex.Escape(StringHelper.StringFromCSharpLiteral(searchPattern));
          }
          catch (ArgumentException ex)
          {
            throw new SearchPatternException(ex.Message, ex);
          }
          break;
        case SearchMode.Wildcard:
          searchPattern = ConvertWildcardsToRegex(searchPattern);
          break;
        case SearchMode.XPath:
          return new XPathSearchStrategy(searchPattern);
      }

      try
      {
        var searchPattern2 = new Regex(searchPattern, regexOptions);
        return new RegexSearchStrategy(searchPattern2, matchWholeWords);
      }
      catch (ArgumentException ex)
      {
        throw new SearchPatternException(ex.Message, ex);
      }
    }
开发者ID:cornelius90,项目名称:InnovatorAdmin,代码行数:58,代码来源:SearchFactory.cs


示例12: MinMax

 //*********************************************************     
 //
 /// <summary>
 /// Minimum/maximum depth first search
 /// </summary>
 /// <param name="chessBoard">       Chess board</param>
 /// <param name="searchMode">       Search mode</param>
 /// <param name="ePlayerColor">     Color doing the move</param>
 /// <param name="iDepth">           Actual search depth</param>
 /// <param name="iWhiteMoveCount">  Number of moves white can do</param>
 /// <param name="iBlackMoveCount">  Number of moves black can do</param>
 /// <param name="iPermCount">       Total permutation evaluated</param>
 /// <returns>
 /// Points to give for this move
 /// </returns>
 //  
 //*********************************************************     
 private int MinMax(ChessBoard chessBoard, SearchMode searchMode, ChessBoard.PlayerColorE ePlayerColor, int iDepth, int iWhiteMoveCount, int iBlackMoveCount, ref int iPermCount) {
     int                         iRetVal;
     int                         iMoveCount;
     int                         iPts;
     List<ChessBoard.MovePosS>   moveList;
     ChessBoard.RepeatResultE    eResult;
     
     if (chessBoard.IsEnoughPieceForCheckMate()) {
         if (iDepth == 0 || m_bCancelSearch) {
             iRetVal = (ePlayerColor == ChessBoard.PlayerColorE.Black) ? -chessBoard.Points(searchMode, ePlayerColor, iWhiteMoveCount - iBlackMoveCount, 0, 0) :
                                                                          chessBoard.Points(searchMode, ePlayerColor, iWhiteMoveCount - iBlackMoveCount, 0, 0);
             iPermCount++;
         } else {
             moveList    = chessBoard.EnumMoveList(ePlayerColor);
             iMoveCount  = moveList.Count;
             if (ePlayerColor == ChessBoard.PlayerColorE.White) {
                 iWhiteMoveCount = iMoveCount;
             } else {
                 iBlackMoveCount = iMoveCount;
             }
             if (iMoveCount == 0) {
                 if (chessBoard.IsCheck(ePlayerColor)) {
                     iRetVal = -1000000 - iDepth;
                 } else {
                     iRetVal = 0; // Draw
                 }
             } else {
                 iRetVal  = Int32.MinValue;
                 foreach (ChessBoard.MovePosS move in moveList) {
                     eResult = chessBoard.DoMoveNoLog(move);
                     if (eResult == ChessBoard.RepeatResultE.NoRepeat) {
                         iPts = -MinMax(chessBoard,
                                        searchMode,
                                        (ePlayerColor == ChessBoard.PlayerColorE.Black) ? ChessBoard.PlayerColorE.White : ChessBoard.PlayerColorE.Black,
                                        iDepth - 1,
                                        iWhiteMoveCount,
                                        iBlackMoveCount,
                                        ref iPermCount);
                     } else {
                         iPts = 0;
                     }
                     chessBoard.UndoMoveNoLog(move);
                     if (iPts > iRetVal) {
                         iRetVal = iPts;
                     }
                 }
             }
         }
     } else {
         iRetVal = 0;
     }
     return(iRetVal);
 }
开发者ID:sirfreedom,项目名称:ChessNet,代码行数:70,代码来源:SearchEngineMinMax.cs


示例13: calculateListOfMethodsFromFiles

            public static List<String> calculateListOfMethodsFromFiles(List<String> sFileList, SearchMode smSearchMode,
                                                                       bool bOnlyAddFunctionsWithNoCustomRule)
            {
                bool bVerbose = false;
                var lsResolvedMethodsSignature = new List<string>();
                var lmiMethodsToResolve = new List<MethodInfo>();
                foreach (string sFile in sFileList)
                {
                    switch (smSearchMode)
                    {
                        case SearchMode.PublicMethods:
                            calculateListWithPublicMethods(sFile, lmiMethodsToResolve);
                            break;
                        case SearchMode.WebMethods:
                            calculateListWithWebMethods(sFile, lmiMethodsToResolve);
                            break;
                    }
                }

                foreach (MethodInfo miMethodInfo in lmiMethodsToResolve)
                {
                    String sMethodSignature = OunceLabsScannerHacks.fixDotNetSignature(miMethodInfo);
                    // DC adding all methods (for the reason below)
                    lsResolvedMethodsSignature.Add(sMethodSignature);


                    // DC removing the code below since queries to the DB are now taking a long time:
                    // For example: Select vuln_id, 'signature', 'signature' from rec where signature = 'HacmeBank_v2_WS.WS_UserManagement.Login(string;string):string';
                    // [2:03 AM] DEBUG: sql query:  in 2s:218     
                    // [2:03 AM] DEBUG: sql query:  in 2s:0
                    // [2:03 AM] DEBUG: sql query:  in 1s:968
                    // [2:03 AM] DEBUG: sql query:  in 1s:875
                    // [2:03 AM] DEBUG: sql query:  in 1s:843
                    // [2:03 AM] DEBUG: sql query:  in 1s:921
                    // [2:03 AM] DEBUG: sql query:  in 1s:937
                    // [2:03 AM] DEBUG: sql query:  in 1s:937
                    // [2:03 AM] DEBUG: sql query:  in 1s:921
                    /*
                    if (false == bOnlyAddFunctionsWithNoCustomRule)                  // check if we want the full list of possible webmethods or only the list of methods that don't have a custom rule
                        lsResolvedMethodsSignature.Add(sMethodSignature);

                    else if (sMethodSignature.IndexOf("()") == -1)                   // remove methods with no parameters
                        if (0 == Lddb_OunceV6.action_getVulnIdThatMatchesSignature("", sMethodSignature, false))
                            lsResolvedMethodsSignature.Add(sMethodSignature);
                        else
                            if (bVerbose)
                                 DI.log.info("Method {0} is already marked as a callback", sMethodSignature);
                     */
                }
                return lsResolvedMethodsSignature;
            }
开发者ID:pusp,项目名称:o2platform,代码行数:51,代码来源:OunceCallbacksDotNet.cs


示例14: SetData

 private void SetData(ConsoleNode console, SearchMode mode)
 {
     try
     {
         lvMembers.Items.Clear();
         if (mode == SearchMode.User)
         {
             lbMembers.Text = "&Users:";
             this.Text = "Users";
             UserStorageView[] users = console.Manager.Admon_GetUserList(console.Credentials);
             foreach (UserStorageView user in users)
             {
                 UserItem ui = new UserItem(user.Username);
                 ui.ImageIndex = 3;
                 ui.User = user;
                 lvMembers.Items.Add(ui);
             }
         }
         else if (mode == SearchMode.Group)
         {
             lbMembers.Text = "&Groups:";
             this.Text = "Groups";
             GroupStorageView[] groups = console.Manager.Admon_GetGroups(console.Credentials);
             foreach (GroupStorageView group in groups)
             {
                 GroupItem gi = new GroupItem(group.GroupName);
                 gi.ImageIndex = 2;
                 gi.GroupView = group;
                 lvMembers.Items.Add(gi);
             }
         }
         else if (mode == SearchMode.Permission)
         {
             lbMembers.Text = "&Permissions:";
             this.Text = "Permissions";
             PermissionStorageView[] permissions = console.Manager.Admon_GetPermissions(console.Credentials);
             foreach (PermissionStorageView permission in permissions)
             {
                 PermissionItem prm = new PermissionItem(permission.PermissionName);
                 prm.ImageIndex = 12;
                 prm.Permission = new PermissionStorageView(permission.PermissionId, permission.PermissionName);
                 lvMembers.Items.Add(prm);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error filling search list:" + ex.Message, "Search Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
开发者ID:JamesTryand,项目名称:alchemi,代码行数:50,代码来源:SearchForm.cs


示例15: Contains

        /// <summary>
        /// See <see cref="IReadableLocator.Contains(object, SearchMode)"/> for more information.
        /// </summary>
        public override bool Contains(object key, SearchMode options)
        {
            if (key == null)
                throw new ArgumentNullException("key");
            if (!Enum.IsDefined(typeof(SearchMode), options))
                throw new ArgumentException(Properties.Resources.InvalidEnumerationValue, "options");

            if (references.ContainsKey(key))
                return true;

            if (options == SearchMode.Up && ParentLocator != null)
                return ParentLocator.Contains(key, options);

            return false;
        }
开发者ID:wuyingyou,项目名称:uniframework,代码行数:18,代码来源:Locator.cs


示例16: Run

        public override object Run(WorkFlowContext context, SearchMode mode, IVisitor visitor = null)
        {
            if (visitor == null)
                visitor = new DefaultVisitor();

            if (mode == SearchMode.Depth)
            {
                RunInDepth(context, visitor);
            }
            else if (mode == SearchMode.Breadth)
            {
                RunInWidth(context, visitor);
            }

            return visitor.EndVisit();
        }
开发者ID:yonglehou,项目名称:LightWorkFlow,代码行数:16,代码来源:Runner.cs


示例17: buttonFind_Click

        private void buttonFind_Click(object sender, EventArgs e)
        {
            if (radioButtonByLength.Checked)
            {
                _SearchMode = SearchMode.ByLength;
            }
            else if (radioButtonByPos.Checked)
            {
                _SearchMode = SearchMode.ByPos;
            }
            else
            {
                _SearchMode = SearchMode.None;
            }

            Close();
        }
开发者ID:bxstar,项目名称:PanGuSegment,代码行数:17,代码来源:FormFind.cs


示例18: CreateSearchObj

 Search CreateSearchObj(string pattern, SearchMode mode)
 {
     Search s = null;
     switch (mode) {
         case SearchMode.Text:
             s = new SearchText(pattern);
             //s.Pattern = pattern;
             break;
         case SearchMode.Regex:
             s = new SearchRegex(pattern);
             //s.Pattern = pattern;
             break;
         case SearchMode.Migemo:
             s = new SearchMigemo(getMigemo().Query(pattern));
             //s.Pattern = getMigemo().Query(pattern);
             break;
         default:
             break;
     }
     return s;
 }
开发者ID:mohammadul,项目名称:addondev,代码行数:21,代码来源:MainForm.Search.cs


示例19: BasicSearch

		/// <summary>
		/// A Basic Amazon Search
		/// </summary>
		/// <param name="mode">The search mode to use</param>
		/// <param name="search">The search</param>
		/// <see cref="http://msdn.microsoft.com/coding4fun/web/services/article.aspx?articleid=912260"/>
		public string BasicSearch(SearchMode mode, string search)
		{
			System.Text.StringBuilder details = new StringBuilder("Search Results:\n\n");
		
			try
			{
				AmazonWebService.KeywordRequest request = new AmazonWebService.KeywordRequest();
				request.locale = "us";
				request.type = "lite";
				request.sort = "reviewrank";
				request.mode = mode.ToString();
				request.keyword = search;
				request.tag = accessKeyId;
				request.devtag = accessKeyId;
				
				AmazonWebService.AmazonSearchService searchService = new Alexandria.Amazon.AmazonWebService.AmazonSearchService();
				AmazonWebService.ProductInfo info = searchService.KeywordSearchRequest(request);
				foreach(AmazonWebService.Details detail in info.Details)
				{
					details.Append(detail.ProductName + " [ ASIN: " + detail.Asin);					
					if (!string.IsNullOrEmpty(detail.OurPrice))
						details.Append(" Amazon: " + detail.OurPrice);
					int usedCount;
					int.TryParse(detail.UsedCount, out usedCount);
					if (usedCount > 0 && !string.IsNullOrEmpty(detail.UsedPrice))
						details.Append(", Used: " + detail.UsedPrice);
					details.Append("]\n");
					
					System.Diagnostics.Debug.WriteLine("Product Name: " + detail.ProductName);
				}
				
				return details.ToString();
			}
			catch (Exception ex)
			{
				throw new AlexandriaException("The was an error attempting to search Amazon", ex);
			}
		}
开发者ID:bossaia,项目名称:alexandrialibrary,代码行数:44,代码来源:WebServiceClient.cs


示例20: SelectSearchMode

        public void SelectSearchMode(SearchMode searchMode)
        {
            switch (searchMode)
            {
                case SearchMode.Attendee:
                    UIUtil.DefaultProvider.WaitForDisplayAndClick("ctl00_ctl00_cphDialog_uclSearch_lbSearchAttendees", LocateBy.Id);
                    break;
                case SearchMode.Event:
                    UIUtil.DefaultProvider.WaitForDisplayAndClick("ctl00_ctl00_cphDialog_uclSearch_lbSearchEvents", LocateBy.Id);
                    break;
                case SearchMode.Transaction:
                    UIUtil.DefaultProvider.WaitForDisplayAndClick("ctl00_ctl00_cphDialog_uclSearch_lbSearchTransactions", LocateBy.Id);
                    break;
                case SearchMode.Help:
                    UIUtil.DefaultProvider.WaitForDisplayAndClick("ctl00_ctl00_cphDialog_uclSearch_lbSearchHelp", LocateBy.Id);
                    break;
                default:
                    break;
            }

            UIUtil.DefaultProvider.WaitForAJAXRequest();
            UIUtil.DefaultProvider.WaitForPageToLoad();
        }
开发者ID:aliaksandr-trush,项目名称:csharp-automaton,代码行数:23,代码来源:SearchManager.cs



注:本文中的SearchMode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SearchModel类代码示例发布时间:2022-05-24
下一篇:
C# SearchIssuesRequest类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap