public Tracks() { InitializeComponent(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } string connectionString = ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString; connection = new SqlConnection(connectionString); //enable doublebuffered this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } //dummy row track_gridView.Rows.Add(); track_gridView.Rows[0].Visible = false; //MessageBox.Show(dataGridView1.Font.ToString()); }
public Artist(MainScreen mainScreen) { InitializeComponent(); mainScr = mainScreen; //load artist detail artistDetail = new ArtistDetail(this); artistDetail.TopLevel = false; artistDetail.FormBorderStyle = FormBorderStyle.None; artistDetail.Dock = DockStyle.Fill; mainScr.childForm_panel.Controls.Add(artistDetail); artistDetail.Show(); //get artist User Follow artistsTable = Database.getArtistThatUserFollow(mainScr.CurrentUser.UserID); for (int i = 0; i < artistsTable.Rows.Count; i++) { artistContainers.Add(new ArtistContainer(this, artistsTable.Rows[i]["artistID"].ToString())); } bottom_flowPanel.Controls.AddRange(artistContainers.ToArray()); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public MyMix(MainScreen callform) { InitializeComponent(); mainScr = callform; //Get user has mix table mixTable = Database.getMyMixTableInMyMix(mainScr.CurrentUser.UserID); mixDetail = new MixDetail(this); firstLoadChildForm(); // initialize container and mixdetail for (int i = 0; i < mixTable.Rows.Count; i++) { mixContainers.Add(new MyMixContainer(this, mixTable.Rows[i]["myMixID"].ToString(), mixDetail)); } mix_Flowpanel.Controls.AddRange(mixContainers.ToArray()); //add mix to home screen mainScr.homeScr.addToMix(mixContainers.ToArray()); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public Playlist(MainScreen callForm) { InitializeComponent(); panel_default_playlist.Location = new Point( this.ClientSize.Width / 2 - panel_default_playlist.Size.Width / 2, this.ClientSize.Height / 2 - panel_default_playlist.Size.Height / 2); panel_default_playlist.Anchor = AnchorStyles.None; /*panel_default_playlist.BringToFront();*/ mainScr = callForm; //get user has playlist table playlistTable = Database.getPlaylistTable_Playlist(mainScr.CurrentUser.UserID); playlistDetail = new PlaylistDetail(this); firstLoadChildForm(); for (int i = 0; i < playlistTable.Rows.Count; i++) { playlistContainers.Add(new PlaylistContainer(this, playlistTable.Rows[i]["playlistID"].ToString(), true)); } bottom_flowPanel.Controls.AddRange(playlistContainers.ToArray()); if (playlistContainers.Count == 0) { panel_default_playlist.BringToFront(); } this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public ArtistContainer(Artist artistFm, string artistID) { InitializeComponent(); opacity_panel.BackColor = Color.FromArgb(125, Color.Black); this.artistFm = artistFm; this.artistID = artistID; info_worker.RunWorkerAsync(); //load tracktable ThreadPool.QueueUserWorkItem(delegate { trackTable = Database.getTrack_Artist(artistID); }); ThreadPool.QueueUserWorkItem(delegate { albumTalbe = Database.getAlbumOfArtist(artistID); }); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public Albums(MainScreen callform) { InitializeComponent(); // get album id that user like albumTable = Database.getAlbumTable_Album(callform.CurrentUser.UserID); mainScr = callform; albumDetail = new AlbumDetail(this); firstLoadChildForm(); for (int i = 0; i < albumTable.Rows.Count; i++) { AlbumContainers.Add(new AlbumContainer(albumTable.Rows[i]["albumID"].ToString(), this)); } bottom_flowPanel.Controls.AddRange(AlbumContainers.ToArray()); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public Artist() { InitializeComponent(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public Home(MainScreen parentForm) { InitializeComponent(); callForm = parentForm; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public SearchBox(MainScreen callForm) { InitializeComponent(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } mainScr = callForm; }
public SuggestSong() { InitializeComponent(); hideScrollBar(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public ArtistContainer() { InitializeComponent(); opacity_panel.BackColor = Color.FromArgb(125, Color.Black); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public AddtoPlaylistForm(MainScreen callForm, bool input, List <TrackInfo> inputTrack) { InitializeComponent(); isnotsingletrack = input; mainScr = callForm; this.DoubleBuffered = true; tracks = inputTrack; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public AddtoPlaylistForm(MainScreen callForm, string trackid) { InitializeComponent(); mainScr = callForm; trackID = trackid; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public TrackContainer_Home(string trackID, MainScreen mainScreen) { InitializeComponent(); track.TrackID = trackID; mainScr = mainScreen; load_worker.RunWorkerAsync(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public PlaylistDetail(Playlist callFm) { InitializeComponent(); playlistForm = callFm; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public UpdatePlaylist(PlaylistContainer playlistContainer) { InitializeComponent(); this.playlistContainer = playlistContainer; Title_TextBox.Text = playlistContainer.playlistName; Description_TextBox.Text = playlistContainer.description; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public HomeItemContainer(string name) { InitializeComponent(); containerTitle_label.Text = name; hideScrollBar(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public MixDetail() { InitializeComponent(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } track_dataGridView.Rows.Add(); track_dataGridView.Rows[0].Visible = false; }
public Playlist() { InitializeComponent(); panel_default_playlist.Location = new Point( this.ClientSize.Width / 2 - panel_default_playlist.Size.Width / 2, this.ClientSize.Height / 2 - panel_default_playlist.Size.Height / 2); panel_default_playlist.Anchor = AnchorStyles.None; /*panel_default_playlist.BringToFront();*/ this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public MixDetail(MyMix callform) { InitializeComponent(); myMix = callform; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public Login() { InitializeComponent(); string connectionString = ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString; connection = new SqlConnection(connectionString); userName_textBox.Focus(); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public PlaylistContainer(Playlist callform, string PLAYLIST_ID, bool canDelete) { InitializeComponent(); playlistID = PLAYLIST_ID; playlistFm = callform; this.DoubleBuffered = true; //load trước track table trackTable_woker.RunWorkerAsync(); this.canDelete = canDelete; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public SongDetail(MainScreen callForm) { InitializeComponent(); mainscr = callForm; songDetail_panel = mainscr.getSongDetailPanel(); soundPlayer = mainscr.getSoundPlayer(); MainScreen.hideScrollBar(suggestedTracks_flowPanel, "flow"); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public ArtistDetail(Artist artistFm) { InitializeComponent(); artistForm = artistFm; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public resetPassword(Account account) { InitializeComponent(); user = account; string connectionString = ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString; connection = new SqlConnection(connectionString); this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } password_textBox.Focus(); }
public PlaylistContainer(Playlist callform, string PLAYLIST_ID, Image chartCover) { InitializeComponent(); playlistID = PLAYLIST_ID; playlistFm = callform; playlistCover_panel.BackgroundImage = chartCover; this.DoubleBuffered = true; //load trước track table isChart = true; canDelete = false; trackTable_woker.RunWorkerAsync(); foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public AlbumContainer(string albumID, Albums AlbumForm) { InitializeComponent(); this.albumID = albumID; this.AlbumForm = AlbumForm; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } //load track in album track_worker.RunWorkerAsync(); }
public CreatePlayList(MainScreen callForm) { InitializeComponent(); mainScr = callForm; PlaylistMenu_panel = mainScr.getCreatePlayList_FlowPanel(); Description_TextBox.GotFocus += Description_TextBox_GotFocus; Description_TextBox.LostFocus += Description_TextBox_LostFocus; Title_TextBox.GotFocus += Title_TextBox_GotFocus; Title_TextBox.LostFocus += Title_TextBox_LostFocus; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public AlbumDetail(Albums albums) { InitializeComponent(); albumsFm = albums; string connectionString = ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString; connection = new SqlConnection(connectionString); album_gridView.Rows.Add(); album_gridView.Rows[0].Visible = false; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }
public MyMixContainer(MyMix callform, string id, MixDetail detail) { InitializeComponent(); //mixForm to get userID from mainscreen mixForm = callform; mixID = id; //load mixdetail on clicking opacity panel mixDetail = detail; cover_worker.RunWorkerAsync(); artist_worker.RunWorkerAsync(); artist_label.Text = ""; this.DoubleBuffered = true; foreach (Control control in this.Controls) { MainScreen.EnableDoubleBuferring(control); } }