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()); }
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(); }