コード例 #1
0
        private void SetCurrentClient(HIO2ServerClient client)
        {
            if (client == currentClient)
            {
                return;
            }

            currentClient = client;
            jhiClient     = currentClient != null ? new JHIClient(currentClient) : null;
            jorServer     = currentClient != null ? new JORServer(jhiClient) : null;
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: barzamin/mchi
        private void SetCurrentClient(HIO2ServerClient client)
        {
            if (client == currentClient)
            {
                return;
            }

            currentClient = client;
            jhiClient     = currentClient != null ? new JHIClient(currentClient) : null;
            jorServer     = currentClient != null ? new JORServer(jhiClient) : null;
            if (jorServer != null)
            {
                jorServer.NodeUpdated += NodeUpdated;
            }
            hexBox1.ByteProvider = currentClient != null ? new DynamicFileByteProvider(currentClient.file.CreateViewStream()) : null;
            SyncPanelControls(null);
        }
コード例 #3
0
 public JORServer(JHIClient client)
 {
     this.client = client;
     this.client.RegisterTagProcessor(this);
 }