private void btnSubmitVideo_Click(object sender, EventArgs e)
        {
            VideoSumitedEventArgs args = new VideoSumitedEventArgs
            {
                Video = new VideoActivity
                {
                    Title = txtVideoTitle.Text,
                    Url   = lblVideoUrl.Text
                }
            };

            OnVideoSubmited(args);
            Close();
        }
Exemple #2
0
 private void NewActivity_VideoSubmited(object sender, VideoSumitedEventArgs e)
 {
     pnlContent.Controls.Add(e.Video.Render(pnlContent.Width));
 }
        protected virtual void OnVideoSubmited(VideoSumitedEventArgs e)
        {
            EventHandler <VideoSumitedEventArgs> handler = VideoSubmited;

            handler?.Invoke(this, e);
        }