Ejemplo n.º 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();
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }