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; }
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); }
public JORServer(JHIClient client) { this.client = client; this.client.RegisterTagProcessor(this); }