private void SendHl7MessageView_Load(object sender, EventArgs e) { ConnectionNodes.Instance().AddDefaults(); BuildView(); if (!string.IsNullOrEmpty(PreferredNode)) { for (int index = 0; index < comboBox1.Items.Count; index++) { if (comboBox1.Items[index].ToString().ToLower().Contains(PreferredNode.ToLower())) { comboBox1.SelectedIndex = index; break; } } } UpdateView(); }
/// <inheritdoc/> /// <exception cref="ObjectDisposedException">thrown if the instance is disposed</exception> public Task <TrackLoadResponsePayload> LoadTracksAsync(string query, SearchMode mode = SearchMode.None, bool noCache = false, CancellationToken cancellationToken = default) { EnsureNotDisposed(); return(PreferredNode.LoadTracksAsync(query, mode, noCache, cancellationToken)); }
/// <inheritdoc/> /// <exception cref="ObjectDisposedException">thrown if the instance is disposed</exception> public Task <IEnumerable <LavalinkTrack> > GetTracksAsync(string query, SearchMode mode = SearchMode.None, bool noCache = false, CancellationToken cancellationToken = default) { EnsureNotDisposed(); return(PreferredNode.GetTracksAsync(query, mode, noCache, cancellationToken)); }