public override async Task Run(IJubenRunningControler runningMen, Action completed, string logTitle) { mNavigatedCount = 0; await base.Run(runningMen, completed,logTitle); mRunningMen = runningMen; mCompleted = completed; runningMen.NavigatedEvent += runningMen_NavigatedEvent; var url = runningMen.TranslateString(Url); runningMen.RecordLog(string.Format("{0}前往网址\t{1}",logTitle, url) , LogLevel.Debug); runningMen.GoUrl(url ); }
public override Task Run (IJubenRunningControler runningMen , Action completed, string logTitle) { mLogTitle = logTitle; mFinalValue = runningMen.TranslateString(Value); mRunningMen = runningMen; //var reg = new Regex(@"\[([^\[\]]*)\]"); //var mats = reg.Matches(mFinalValue); //foreach(Match mat in mats) //{ // var key = mat.Groups[1].Value; // var name = mat.Value; // var val = runningMen.GetValue(key); // mFinalValue = mFinalValue.Replace(name, val); //} return base.Run(runningMen, completed,logTitle ); }