Пример #1
0
        //--------------------------------------------
        private void Proc_Exited(object sender, EventArgs e)
        {
            FinishedEventArgs r = new FinishedEventArgs();

            r.ProcessId   = m_ProcessId;
            r.ProcessName = m_ProcessName;
            r.Index       = m_Index;
            m_IsRunning   = false;
            m_Proc.Close();
            OnFinised(r);
        }
Пример #2
0
        //------------------------------------------------
        private void Ar_Finished(object sender, FinishedEventArgs e)
        {
            bool ck = false;

            if (m_ProcList.Count > 0)
            {
                foreach (Aerender ar in m_ProcList)
                {
                    if (ar.IsRunning == true)
                    {
                        ck = true;
                        break;
                    }
                }
            }
            m_IsRunning = ck;
            OnFinished(e);
        }
Пример #3
0
 //------------------------------------------------
 protected virtual void OnFinished(FinishedEventArgs e)
 {
     Finished?.Invoke(this, e);
 }
Пример #4
0
 //------------------------------------------------------------------------
 private void Amr_Finished1(object sender, FinishedEventArgs e)
 {
     ChkIsRunning();
 }