private void Cd_Trigger(string lname, string res, Object tag) { ActionProgramRun apr = tag as ActionProgramRun; apr[lname] = res; apr.ResumeAfterPause(); }
private void T_Tick(object sender, EventArgs e) { t.Stop(); System.Diagnostics.Debug.WriteLine((Environment.TickCount % 10000).ToString("00000") + " Resume after sleep"); apr.ResumeAfterPause(); t.Dispose(); }
private void NewStarListComputed(ISystem sys, BaseUtils.SortedListDoubleDuplicate <ISystem> list) // In UI thread { System.Diagnostics.Debug.Assert(System.Windows.Forms.Application.MessageLoop); int i = 1; foreach (var s in list) { string p = ret_prefix + (i++).ToStringInvariant() + "_"; ActionVars.SystemVars(apr.variables, s.Value, p); ActionVars.SystemVarsFurtherInfo(apr, (apr.ActionController as ActionController).HistoryList, s.Value, p); apr[p + "Dist"] = Math.Sqrt(s.Key).ToStringInvariant("0.##"); } apr[ret_prefix + "Count"] = list.Count.ToStringInvariant(); apr.ResumeAfterPause(); }