Beispiel #1
0
        private void OpenProcfile(string strFilename)
        {
            if (m_objProcfile != null)
            {
                m_objProcfile.Stop();
            }

            txtConsole.Clear();

            m_objProcfile = new Procfile(strFilename);

            m_objProcfile.TextReceived += delegate(ProcfileEntry objEntry, string strText)
            {
                AppendText(objEntry.Header(), strText);
            };

            m_objProcfile.StatusReceived += delegate(string strText)
            {
                AppendText(m_objProcfile.Header(), strText);
            };

            m_objProcfile.Start();
        }
Beispiel #2
0
 private void ProcessExited(object objSender, EventArgs args)
 {
     m_objProcfile.Info(this, "process terminated");
     m_objProcfile.Stop();
 }