示例#1
0
        public Client(Listener listener, TcpClient client)
        {
            Listener = listener;

            _client = client;
            _stream = client.GetStream();
        }
示例#2
0
 public TextEditorClient(Listener listener, TcpClient client)
     : base(listener, client)
 {
     _backend = Backend.Get;
     _compilerPath = Path.GetDirectoryName(Application.ExecutablePath);
     _compilerPath += "/IdeBridgeCompiler.exe";
     _compilerPath = _compilerPath.Replace("\\", "/");
     Logger.Info( "compilerPath: " + _compilerPath);
     //_backend.MonitorActivation();
 }
示例#3
0
        public MainPanel()
        {
            InitializeComponent();

            outputBox.Focus();

            StartPosition = FormStartPosition.CenterScreen;
            Logger.Output = outputBox;

            Get = this;

            configurationGrid.SelectedObject = _config;

            _listener = new Listener();

            _listener.OnClientListChange += RefreshClients;

            Start();
            outputBox.Focus();
        }