Beispiel #1
0
    public bool Init(MainForm a_mainForm)
    {
      int port = 49001;

      m_mainForm = a_mainForm;
      
      m_outputWin = new OutputWin();

      m_outputWin.GetControl().Parent = m_mainForm.GetOutput();
      m_outputWin.GetControl().Dock = DockStyle.Fill;
      m_outputWin.SetLineLimit(20);

      InitScintilla();

      if (!m_network.Open(port))
      {
        return false;
      }

      m_outputWin.AddLogText(OutputWin.LogType.Info, "Listening on port '" + port.ToString() + "'");

      return true;
    }
Beispiel #2
0
        public bool Init(MainForm a_mainForm)
        {
            int port = 49001;

            m_mainForm = a_mainForm;

            m_outputWin = new OutputWin();

            m_outputWin.GetControl().Parent = m_mainForm.GetOutput();
            m_outputWin.GetControl().Dock   = DockStyle.Fill;
            m_outputWin.SetLineLimit(20);

            InitScintilla();

            if (!m_network.Open(port))
            {
                return(false);
            }

            m_outputWin.AddLogText(OutputWin.LogType.Info, "Listening on port '" + port.ToString() + "'");

            return(true);
        }