コード例 #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
ファイル: frmMain.cs プロジェクト: azare/foreman-windows
        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();
        }