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(); }
static private void Cd_Trigger(string lname, string controlname, Object tag) { List <Object> tags = tag as List <Object>; // object is a list of objects! lovely ActionProgramRun apr = tags[0] as ActionProgramRun; bool ismodal = (bool)tags[1]; if (ismodal) { apr[lname] = controlname; apr.ResumeAfterPause(); } else { apr.actioncontroller.ActionRun(ActionEvent.onNonModalDialog, new Conditions.ConditionVariables(new string[] { "Dialog", lname, "Control", controlname })); } }
static private void Cd_Trigger(string lname, string controlname, Object tag) { if (controlname == "Close") // put in backwards compatibility - close is the same as cancel for action programs { controlname = "Cancel"; } List <Object> tags = tag as List <Object>; // object is a list of objects! lovely ActionProgramRun apr = tags[0] as ActionProgramRun; bool ismodal = (bool)tags[1]; if (ismodal) { apr[lname] = controlname; apr.ResumeAfterPause(); } else { apr.ActionController.ActionRun(ActionEvent.onNonModalDialog, new BaseUtils.Variables(new string[] { "Dialog", lname, "Control", controlname })); } }