예제 #1
0
 public ProcfileEntry(Procfile objProcfile, int intIndex, string strName, string strCommand)
 {
     m_objProcfile = objProcfile;
     m_intIndex    = intIndex;
     m_strName     = strName;
     m_strCommand  = strCommand.Replace("$PORT", Port().ToString());
 }
예제 #2
0
 public ProcfileEntry(Procfile objProcfile, int intIndex, string strName, string strCommand)
 {
     m_objProcfile = objProcfile;
     m_intIndex = intIndex;
     m_strName = strName;
     m_strCommand = strCommand.Replace("$PORT", Port().ToString());
 }
예제 #3
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();
        }
예제 #4
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();
        }