コード例 #1
0
ファイル: NewActivity.cs プロジェクト: phuchn99/Hackathon2020
        private void btnSubmitVideo_Click(object sender, EventArgs e)
        {
            VideoSumitedEventArgs args = new VideoSumitedEventArgs
            {
                Video = new VideoActivity
                {
                    Title = txtVideoTitle.Text,
                    Url   = lblVideoUrl.Text
                }
            };

            OnVideoSubmited(args);
            Close();
        }
コード例 #2
0
ファイル: MainGUI.cs プロジェクト: phuchn99/Hackathon2020
 private void NewActivity_VideoSubmited(object sender, VideoSumitedEventArgs e)
 {
     pnlContent.Controls.Add(e.Video.Render(pnlContent.Width));
 }
コード例 #3
0
ファイル: NewActivity.cs プロジェクト: phuchn99/Hackathon2020
        protected virtual void OnVideoSubmited(VideoSumitedEventArgs e)
        {
            EventHandler <VideoSumitedEventArgs> handler = VideoSubmited;

            handler?.Invoke(this, e);
        }