예제 #1
0
        private void Cd_Trigger(string lname, string res, Object tag)
        {
            ActionProgramRun apr = tag as ActionProgramRun;

            apr[lname] = res;
            apr.ResumeAfterPause();
        }
예제 #2
0
 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();
 }
예제 #3
0
        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();
        }