/// <summary> /// /// </summary> /// <param name="e"></param> protected virtual void OnEventManageButtonClick(VideoInfoEventArg e) { if (EventManageButtonClick != null) { EventManageButtonClick(this, e); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ManageButtonsClick(object sender, VideoInfoEventArg e) { Logger logger = LogManager.GetCurrentClassLogger(); logger.Info("UserID:" + e.UserID); string videoId = e.VideoURL.Replace("http://www.nicovideo.jp/watch/", ""); this.ShowVideoInfo2Own(e.VideoTitle, videoId, e.UserID); }
/// <summary> /// 運営ボタンクリックイベント /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ManagerButton_Click(object sender, EventArgs e) { VideoInfoEventArg info = new VideoInfoEventArg(); info.CommentNo = this.CommentNo; info.UserID = this.UserID; info.VideoTitle = this.VideoTitle; info.VideoTime = this.VideoTime; info.VideoURL = this.VideoURL; info.ThumbnailURL = this.ThumbnailURL; OnEventManageButtonClick(info); }
/// <summary> /// /// </summary> /// <param name="e"></param> protected virtual void OnEventManageButtonClick(VideoInfoEventArg e) { if(EventManageButtonClick != null) { EventManageButtonClick(this, e); } }