protected void BIns_Click(object sender, EventArgs e) { LinkButton btn = (LinkButton)sender; GridViewRow row = (GridViewRow)btn.NamingContainer; var data = GridView1.DataKeys[row.RowIndex].Value.ToString(); //get hiddent Song_ID CrazyKTVWCF.DoCrazyKTV_Action(data.ToString().Trim(), "InsertV"); }
protected void BDel_Click(object sender, EventArgs e) { Button btn = (Button)sender; GridViewRow row = (GridViewRow)btn.NamingContainer; //Response.Write("Row Index of Link button: " + row.RowIndex + // "DataKey value:" + GridView1.DataKeys[row.RowIndex].Value.ToString()); var data = GridView1.DataKeys[row.RowIndex].Value.ToString(); //get hiddent Song_ID CrazyKTVWCF.DoCrazyKTV_Action(data.ToString().Trim(), "Delete"); }
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { try { var data = GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)].Values[0]; //get hiddent Song_ID if (e.CommandName.ToLower().Trim() == "Insert".ToLower().Trim()) { int index = Convert.ToInt32(e.CommandArgument); CrazyKTVWCF.DoCrazyKTV_Action(data.ToString().Trim(), "Insert"); } } catch (Exception) { } //if (e.CommandName.ToLower().Trim() == "Del".ToLower().Trim()) //{ // int index = Convert.ToInt32(e.CommandArgument); // CrazyKTVWCF.DoCrazyKTV_Action(data.ToString().Trim(), "Delete"); //} }
protected void FastBackward_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "Back"); }
protected void FastFoward_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "Forward"); }
protected void Play_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "PlayPause"); }
protected void Restart_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "RsetPlay"); }
protected void Repeat_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "Replay"); }
protected void Cut_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "Cut"); }
protected void BdMute_Click(object sender, EventArgs e) { //CrazyKTVWCF.DoCrazyKTV_Control(null, "Mute"); CrazyKTVWCF.DoCrazyKTV_Action(null, "SongRecoedList"); ((HiddenField)find.FindControl("findCaller")).Value = ""; }
protected void BdForward_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "Forward"); ((HiddenField)find.FindControl("findCaller")).Value = ""; }
protected void BdRestart_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "RsetPlay"); ((HiddenField)find.FindControl("findCaller")).Value = ""; }
protected void HideConsole_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "HideConsole"); }
protected void TxtBadSongs_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "SongRecoedList"); }
protected void record_Click(object sender, EventArgs e) { CrazyKTVWCF.DoCrazyKTV_Action(null, "Record"); }
protected void CrazyKTV_ControlButton_Click(object sender, EventArgs e) { switch (((LinkButton)sender).ID) { case "BChannel": case "BChannelDesktop": CrazyKTVWCF.DoCrazyKTV_Control(null, "Channel"); break; case "BCut": case "BCutDesktop": CrazyKTVWCF.DoCrazyKTV_Action(null, "Cut"); break; case "BdPause": case "BdPauseDesktop": CrazyKTVWCF.DoCrazyKTV_Action(null, "PlayPause"); break; case "BdRestart": case "BdRestartDesktop": CrazyKTVWCF.DoCrazyKTV_Action(null, "RsetPlay"); break; case "BdRepeat": case "BdRepeatDesktop": CrazyKTVWCF.DoCrazyKTV_Action(null, "Replay"); break; case "BdKeyDown": case "BdKeyDownDesktop": CrazyKTVWCF.DoCrazyKTV_Control(-1, "Pitch"); break; case "BdDefaultPitch": case "BdDefaultPitchDesktop": CrazyKTVWCF.DoCrazyKTV_Control(null, "DefaultPitch"); break; case "BdKeyUp": case "BdKeyUpDesktop": CrazyKTVWCF.DoCrazyKTV_Control(1, "Pitch"); break; case "BdVolumeDown": case "BdVolumeDownDesktop": CrazyKTVWCF.DoCrazyKTV_Control(-1, "Volume"); break; case "BdMute": case "BdMuteDesktop": CrazyKTVWCF.DoCrazyKTV_Control(null, "Mute"); break; case "BdVolumeUp": case "BdVolumeUpDesktop": CrazyKTVWCF.DoCrazyKTV_Control(1, "Volume"); break; case "BdFixedCH": case "BdFixedCHDesktop": CrazyKTVWCF.DoCrazyKTV_Control(null, "Fixed"); break; case "BdSongRecoed": CrazyKTVWCF.DoCrazyKTV_Action(null, "SongRecoedList"); break; case "BdRandom": case "BdRandomDesktop": CrazyKTVWCF.DoCrazyKTV_Control(null, "RandomSong"); break; } }