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); }
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); }