protected void MoveTrack(int trackid, int tracknumber, string direction) { MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack("HansenB", PlaylistName.Text, trackid, tracknumber, direction); }, "Success", "Track has been moved"); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { //call BLL to move track MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack("HansenB", PlaylistName.Text, trackid, tracknumber, direction); List <UserPlaylistTrack> datainfo = sysmgr.List_TracksForPlaylist(PlaylistName.Text, "HansenB"); PlayList.DataSource = datainfo; PlayList.DataBind(); }, "Success", "track has been moved"); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { messageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(User.Identity.Name, PlaylistName.Text, trackid, tracknumber, direction); List <UserPlaylistTrack> datainfo = sysmgr.List_TracksForPlaylist(PlaylistName.Text, User.Identity.Name); PlayList.DataSource = datainfo; PlayList.DataBind(); }, "Success", "Track has been moved"); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { //call BLL to move track MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(User.Identity.Name, PlaylistName.Text, trackid, tracknumber, direction); List <UserPlaylistTrack> datainfo = sysmgr.List_TracksForPlaylist(PlaylistName.Text, User.Identity.Name); PlayList.DataSource = datainfo; //if nothing is coming back it will show the template PlayList.DataBind(); }, "Success", "Track has been moved"); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { MessageUserControl.TryRun(() => { PlaylistTracksController controller = new PlaylistTracksController(); controller.MoveTrack(User.Identity.Name, PlaylistName.Text, trackid, tracknumber, direction); List <UserPlaylistTrack> info = controller.List_TracksForPlaylist(PlaylistName.Text, User.Identity.Name); PlayList.DataSource = info; PlayList.DataBind(); }, "Move successful", "Track has been moved." ); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { string username = "******"; MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(username, PlaylistName.Text, trackid, tracknumber, direction); List <UserPlaylistTrack> info = sysmgr.List_TracksForPlaylist(PlaylistName.Text, username); PlayList.DataSource = info; PlayList.DataBind(); }, "Move Track", "Track has been move"); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { //code to go here MessageUserControl.TryRun(() => { //standrd call to bll method PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(User.Identity.Name, PlaylistName.Text, trackid, tracknumber, direction); //refresh list List <UserPlaylistTrack> results = sysmgr.List_TracksForPlaylist(PlaylistName.Text, User.Identity.Name); PlayList.DataSource = results; PlayList.DataBind(); }, "Success", "The track moved"); }
protected void MoveTrack(MoveTrackItem movetrack) { string username = "******"; //until security is implemented movetrack.UserName = username; movetrack.PlaylistName = PlaylistName.Text; MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(movetrack); RefreshPlayList(sysmgr, username); }, "Track Movement", "Track has been moved."); }
protected void MoveTrack(MoveTrackItem movetrack) { //call BLL to move track string username = "******"; //until security movetrack.UserName = username; movetrack.PlaylistName = PlaylistName.Text; MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(movetrack); RefreshPlaylist(sysmgr, username); }, "movement success", "good job moving that little guy, it looks so good"); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { //call the BLL move method //refresh the playlist MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(User.Identity.Name, PlaylistName.Text, trackid, tracknumber, direction.ToUpper()); List <UserPlaylistTrack> results = sysmgr.List_TracksForPlaylist(PlaylistName.Text, User.Identity.Name); PlayList.DataSource = results; PlayList.DataBind(); }, "Track Moved", "Track has been moved " + direction); }
protected void MoveTrack(int trackID, int trackNumber, string direction) { MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack("HansenB", PlaylistName.Text, trackID, trackNumber, direction); // Refresh playlist track listing List <UserPlaylistTrack> Info = sysmgr.List_TracksForPlaylist(PlaylistName.Text, "HansenB"); PlayList.DataSource = Info; PlayList.DataBind(); }, "Track Moved", "Track successfully moved " + direction + "."); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { string username = "******"; //call BLL to move track MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(username, PlaylistName.Text, trackid, direction); List <UserPlaylistTrack> info = sysmgr.List_TracksForPlaylist(PlaylistName.Text, username); PlayList.DataSource = info; PlayList.DataBind(); //optionally flag the song that was moved, //traverse the GridView again looking for the trackid }, "Move Track", "Track has been moved"); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { //call BLL to move track string username = User.Identity.Name; MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(username, PlaylistName.Text, trackid, tracknumber, direction); List <UserPlaylistTrack> info = sysmgr.List_TracksForPlaylist(PlaylistName.Text, username); //assign the results to the control PlayList.DataSource = info; //bind results to control PlayList.DataBind(); }, "Move Track", "Track has been moved"); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { //code to go here //wrap up your work under MessageUserControl MessageUserControl.TryRun(() => { //standard update call to your BLL PlaylistTracksController sysmgr = new PlaylistTracksController(); //call the appropriate BLL method (update) sysmgr.MoveTrack(User.Identity.Name, PlaylistName.Text, trackid, tracknumber, direction); //refresh the display List <UserPlaylistTrack> results = sysmgr.List_TracksForPlaylist(PlaylistName.Text, User.Identity.Name); PlayList.DataSource = results; PlayList.DataBind(); }, "Success", "Track has been moved."); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { // Wrap in MessageUserControl tryrun (try catch) for error handling MessageUserControl.TryRun(() => { // standard call to a BLL method // update call PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(User.Identity.Name, PlaylistName.Text, trackid, tracknumber, direction); // after you move, refresh the list // query call List <UserPlaylistTrack> results = sysmgr.List_TracksForPlaylist(PlaylistName.Text, User.Identity.Name); PlayList.DataSource = results; PlayList.DataBind(); }, "Success", "Track moved."); }
protected void MoveTrack(int trackid, int tracknumber, string direction) { //string username = "******"; string username = User.Identity.Name; //call BLL to move track MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(username, PlaylistName.Text, trackid, tracknumber, direction); //refresh the playlist List <UserPlaylistTrack> info = sysmgr.List_TracksForPlaylist (PlaylistName.Text, username); PlayList.DataSource = info; PlayList.DataBind(); }, "Move track on Playlist", "Track has been moved on the playlist"); }
protected void MoveTrack(MoveTrackItem moveTrack) { //call BLL to move track string username = "******"; moveTrack.UserName = username; moveTrack.PlaylistName = PlaylistName.Text; MessageUserControl.TryRun(() => { PlaylistTracksController sysmgr = new PlaylistTracksController(); sysmgr.MoveTrack(moveTrack); RefreshPlayList(sysmgr, username); }, "Track Movement", "Track moved successfully"); }