public VideoMessageControl(string image, string text, string desc, string link) { InitializeComponent(); string v = HttpUtility.ParseQueryString(new Uri(link).Query).Get(0); webBrowser.Url = new Uri("http://www.youtube.com/embed/" + v); ImagedMessageControl descControl = new ImagedMessageControl(image, text, desc); splitContainer1.SuspendLayout(); splitContainer1.Panel2.SuspendLayout(); descControl.Dock = System.Windows.Forms.DockStyle.Fill; descControl.Location = new System.Drawing.Point(0, 0); descControl.Name = "descControl"; descControl.Size = new System.Drawing.Size(441, 93); descControl.TabIndex = 0; splitContainer1.Panel2.Controls.Add(descControl); splitContainer1.Panel2.ResumeLayout(); splitContainer1.ResumeLayout(); Refresh(); }
protected static void QueueYoutube(ImagedMessageControl c, string link, string tag, bool showInWindow, string id) { Queued.Enqueue(new YoutubeNotificationType() { Control = c, Link = link, Tag = tag, ShowInWindow = showInWindow, ID = id, Type = 1 }); }
protected static void QueueNotification(ImagedMessageControl c, string link, string tag, bool showInWindow) { Queued.Enqueue(new NotificationType() { Control = c, Link = link, Tag = tag, ShowInWindow = showInWindow, Type = 0 }); }
protected static void QueueFacebook(ImagedMessageControl c, string link, string tag, bool showInWindow, FacebookData fb) { Queued.Enqueue(new FacebookNotificationType() { Control = c, Link = link, Tag = tag, ShowInWindow = showInWindow, Data = fb, Type = 2 }); }
public static void NotifyYouTube(ImagedMessageControl c, string link, string tag, bool showInWindow, string id) { QueueYoutube(c, link, tag, showInWindow, id); }
public static void NotifyGeneric(ImagedMessageControl c, string link, string tag, bool showInWindow) { QueueNotification(c, link, tag, showInWindow); }
public static void NotifyFacebook(ImagedMessageControl c, string link, string tag, bool showInWindow, FacebookData fb) { QueueFacebook(c, link, tag, showInWindow, fb); }