Example #1
0
        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());
        }
Example #2
0
        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);
            }
        }
Example #3
0
        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);
            }
        }
Example #4
0
        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);
            }
        }
Example #5
0
        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);
            }
        }
Example #6
0
        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);
            }
        }
Example #7
0
 public Artist()
 {
     InitializeComponent();
     this.DoubleBuffered = true;
     foreach (Control control in this.Controls)
     {
         MainScreen.EnableDoubleBuferring(control);
     }
 }
Example #8
0
 public Home(MainScreen parentForm)
 {
     InitializeComponent();
     callForm            = parentForm;
     this.DoubleBuffered = true;
     foreach (Control control in this.Controls)
     {
         MainScreen.EnableDoubleBuferring(control);
     }
 }
Example #9
0
 public SearchBox(MainScreen callForm)
 {
     InitializeComponent();
     this.DoubleBuffered = true;
     foreach (Control control in this.Controls)
     {
         MainScreen.EnableDoubleBuferring(control);
     }
     mainScr = callForm;
 }
Example #10
0
        public SuggestSong()
        {
            InitializeComponent();

            hideScrollBar();
            this.DoubleBuffered = true;
            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }
Example #11
0
        public ArtistContainer()
        {
            InitializeComponent();
            opacity_panel.BackColor = Color.FromArgb(125, Color.Black);
            this.DoubleBuffered     = true;

            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }
Example #12
0
 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);
     }
 }
Example #13
0
        public AddtoPlaylistForm(MainScreen callForm, string trackid)
        {
            InitializeComponent();
            mainScr             = callForm;
            trackID             = trackid;
            this.DoubleBuffered = true;

            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }
Example #14
0
 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);
     }
 }
Example #15
0
        public PlaylistDetail(Playlist callFm)
        {
            InitializeComponent();

            playlistForm = callFm;

            this.DoubleBuffered = true;

            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }
Example #16
0
        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);
            }
        }
Example #17
0
        public HomeItemContainer(string name)
        {
            InitializeComponent();
            containerTitle_label.Text = name;

            hideScrollBar();
            this.DoubleBuffered = true;

            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }
Example #18
0
        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;
        }
Example #19
0
 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);
     }
 }
Example #20
0
        public MixDetail(MyMix callform)
        {
            InitializeComponent();


            myMix = callform;



            this.DoubleBuffered = true;
            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }
Example #21
0
        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);
            }
        }
Example #22
0
        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);
            }
        }
Example #23
0
        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);
            }
        }
Example #24
0
        public ArtistDetail(Artist artistFm)
        {
            InitializeComponent();


            artistForm = artistFm;



            this.DoubleBuffered = true;

            foreach (Control control in this.Controls)
            {
                MainScreen.EnableDoubleBuferring(control);
            }
        }
Example #25
0
        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();
        }
Example #26
0
        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);
            }
        }
Example #27
0
        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();
        }
Example #28
0
        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);
            }
        }
Example #29
0
        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);
            }
        }
Example #30
0
        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);
            }
        }