void radSchedulerReminder1_RemindObjectShown(object sender, RadShowRemindObjectArgs e) { if (this.openedAlerts.Contains(e.RemindObject)) { return; } Telerik.WinControls.UI.RadDesktopAlert radDesktopAlert = new Telerik.WinControls.UI.RadDesktopAlert(this.components); RadButtonElement radButtonElement = new RadButtonElement(); radButtonElement.Click += new EventHandler(radButtonElement_Click); radButtonElement.Tag = e.RemindObject; radButtonElement.Image = global::Telerik.Examples.WinControls.Properties.Resources.Symbol_Edit; this.openedAlerts.Add(e.RemindObject); radDesktopAlert.ButtonItems.Add(radButtonElement); radDesktopAlert.FixedSize = new System.Drawing.Size(329, 120); radDesktopAlert.ContentImage = global::Telerik.Examples.WinControls.Properties.Resources.Clock_Alarm; radDesktopAlert.ContentText = "<html><I>" + ((Appointment)e.RemindObject).Description + "</I></html>"; radDesktopAlert.CaptionText = e.RemindObject.Subject; radDesktopAlert.Show(); radDesktopAlert.Closed += new RadPopupClosedEventHandler(radDesktopAlert_AlertClosed); }
private void RingBackCallNotification(string caption, string content) { try { RadDesktopAlert ringAlert = new Telerik.WinControls.UI.RadDesktopAlert(); ringAlert.AutoCloseDelay = 8; ringAlert.FadeAnimationSpeed = 1; ringAlert.FadeAnimationType = FadeAnimationType.FadeIn; ringAlert.ShowOptionsButton = false; ringAlert.ShowPinButton = false; ringAlert.FixedSize = new Size(300, 100); ringAlert.CaptionText = caption; ringAlert.ContentText = content; // ringAlert.ContentImage = contentImg; ringAlert.Show(); this.Close(); } catch (Exception ex) { } }
private void ShowConnectionError() { RadDesktopAlert alert = new Telerik.WinControls.UI.RadDesktopAlert(); alert.AutoCloseDelay = 5; alert.FadeAnimationType = FadeAnimationType.None; alert.ShowOptionsButton = false; alert.ShowPinButton = false; alert.FixedSize = new Size(250, 100); alert.CaptionText = "Connection Problem"; alert.ContentText = "<html> <b><span style=font-size:medium><color=Red>Your Internet Connection is not working..</span></b></html>"; alert.Show(); }
void radDesktopAlert_AlertClosed(object sender, RadPopupClosedEventArgs args) { Telerik.WinControls.UI.RadDesktopAlert radDesktopAlert = sender as Telerik.WinControls.UI.RadDesktopAlert; this.openedAlerts.Remove((IRemindObject)radDesktopAlert.ButtonItems[0].Tag); }
public DesktopAlertManagerEventArgs(RadDesktopAlert alert) { this.associatedAlert = alert; }
public bool ContainsAlert(RadDesktopAlert alert) { return(this.openedAlerts.Contains(alert)); }
/// <summary> /// Creates an instance of the <see cref="DesktopAlertPopup"/>class. /// </summary> /// <param name="owner">An instance of the <see cref="RadDesktopAlert"/>class that /// represents the owner alert of the <see cref="DesktopAlertPopup"/></param> public DesktopAlertPopup(RadDesktopAlert owner) : this(null, owner) { }
public DesktopAlertPopup(RadDesktopAlert owner) : this(owner.DpiScaleElement, owner) { }