private void changeStatus(string newStatus) { ChangeStatusCallBack d = new ChangeStatusCallBack(unsafeChangeStatus); this.Invoke(d, new object[] { newStatus }); }
private void changePortCheckStatus(PortChecker.CheckPortCompletedEventArgs args) { ChangeStatusCallBack d = new ChangeStatusCallBack(unsafeChangePortCheckStatus); this.Invoke(d, new object[] { args }); }
/// <summary> /// Call this function, when simulation start. /// </summary> public void StartSimulation() { if (m_logCount <= 0) return; if (!isSuspend || m_zCnt.GraphPane.IsZoomed) { foreach (string key in m_entryDic.Keys) { if (m_entryDic[key].IsLoaded) continue; m_entryDic[key].ClearPoint(); } m_current = 0.0; } double max = 0.0; double plotCount = TracerWindow.s_count; List<EcellObject> stepperList = m_owner.DataManager.GetStepper( m_owner.DataManager.GetModelList()[0]); foreach (EcellObject obj in stepperList) { if (obj.Value == null) continue; foreach (EcellData data in obj.Value) { if (data.Name.Equals("StepInterval")) { double tmp = Convert.ToDouble(data.Value.ToString()) * plotCount; if (tmp > max) max = tmp; } } } if (this.InvokeRequired) { ChangeStatusCallBack f = new ChangeStatusCallBack(ChangeStatus); this.Invoke(f, new object[] { false }); } else { if (!isSuspend) { m_zCnt.AxisChange(); m_zCnt.Refresh(); } } isSuspend = false; }
/// <summary> /// Call this function, when simulation suspend. /// Stop the timer. /// </summary> public void SuspendSimulation() { if (this.InvokeRequired) { ChangeStatusCallBack f = new ChangeStatusCallBack(ChangeStatus); this.Invoke(f, new object[] { true }); } isSuspend = true; }