コード例 #1
0
 public SearchForm(MusicKernel mk, flush f, MaskinListBox parentList)
 {
     InitializeComponent();
     CheckForIllegalCrossThreadCalls = false;
     mker   = mk;
     this.f = f;
     Songs  = parentList;
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: CharlosNels/ArzonePlayer
 private void ArzonePlayer_Load(object sender, EventArgs e)
 {
     try
     {
         mk = new MusicKernel(-1, 44100, Un4seen.Bass.BASSInit.BASS_DEVICE_CPSPEAKERS, Handle);
     }
     catch
     {
         MessageBox.Show(this, "Bass初始化错误");
         Close();
     }
     addSongs();
     sf = new SearchForm(mk, flush, maskinListBox);
     mk.StateChanged += Mk_StateChanged;
     lf       = new LyricForm(out Mlp);
     Size     = new Size(511, Screen.PrimaryScreen.Bounds.Height - 40);
     Location = new Point(Screen.PrimaryScreen.Bounds.Width - Width, 0);
 }