Пример #1
0
 public AuthController()
 {
     ds           = new DataSetMain();
     userTA       = new DataSetMainTableAdapters.UsersTableAdapter();
     playlistTA   = new DataSetMainTableAdapters.PlaylistsTableAdapter();
     TableAdapter = new DataSetMainTableAdapters.TableAdapterManager();
 }
Пример #2
0
 public User(string username, int id)
 {
     this.username    = username;
     this.user_id     = id;
     fav_songs        = new List <Song>();
     playlists        = new List <Playlist>();
     ds               = new DataSetMain();
     userTA           = new DataSetMainTableAdapters.UsersTableAdapter();
     playlistTA       = new DataSetMainTableAdapters.PlaylistsTableAdapter();
     playlistsSongsTA = new DataSetMainTableAdapters.Playlists_SongsTableAdapter();
     TableAdapter     = new DataSetMainTableAdapters.TableAdapterManager();
 }