예제 #1
0
 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();
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 /// <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));
 }