public void showmatches(Interface theint) { UI_SongList uisl = new UI_SongList(theint); #if VERBOSE MessageBox.Show("num songs " + matches.Count.ToString()); #endif uisl.SL = this.matches; uisl.Show(); }
private void Recordtimer_Tick(object sender, EventArgs e) { if (UI_progressBar.Value <= 29) { UI_progressBar.Value += 1; } UI_progressBar.Show(); if (UI_progressBar.Value == 29) { string fingerprint = calcfinger.generate(FilePath); UI_Statusbar.Text = "Processing"; if (conn.Connect(AppSettings.server) == false) { UI_Statusbar.Text = "Connected to Server"; //sl.Add(new Song("Hard", "Gay", 95)); sl = conn.SendFingerprint(fingerprint); UI_SongList uiSongList = new UI_SongList(this); uiSongList.SL = sl; uiSongList.Show(); //panel1.Show(); //hideResults.Show(); //resultLabelTitle.Show(); //resultLabelArtist.Show(); //resultLabelTitle.Text += sl.Songs[0].Title; //resultLabelArtist.Text += sl.Songs[0].Artist; Recordtimer.Enabled = false; //SongList SongList = new SongList(); //SongList.Show(); //this.Hide(); //GC.Collect(); } else { UI_Statusbar.Text = "Connection to Server failed"; } } }