Exemple #1
0
 public MainForm()
 {
     HaProtoImpl.Entity = HaProtoImpl.HaMusicEntity.Server;
     InitializeComponent();
     CreateLogger();
     DataSource = new ServerDataSource();
     DataSource.Playlists.Add(new Playlist());
     Mover = new Mover(this);
     listenerThread = new Thread(new ThreadStart(ListenerMain));
     player = new HaMusicPlayerManager(new NAudioPlayer(this), this, 50);
     player.SongChanged += player_SongChanged;
     player.PlayingChanged += player_PlayingChanged;
     RestoreState();
     hashell = new HaShell(this, console);
 }
Exemple #2
0
 public MainForm()
 {
     HaProtoImpl.Entity = HaProtoImpl.HaMusicEntity.Server;
     InitializeComponent();
     CreateLogger();
     DataSource = new ServerDataSource();
     DataSource.Playlists.Add(new Playlist());
     Mover                  = new Mover(this);
     listenerThread         = new Thread(new ThreadStart(ListenerMain));
     player                 = new HaMusicPlayerManager(new NAudioPlayer(this), this, 50);
     player.SongChanged    += player_SongChanged;
     player.PlayingChanged += player_PlayingChanged;
     RestoreState();
     BeginReloadLibrary();
     hashell = new HaShell(this, console);
 }