protected bool ShowMessagePane(string message) { if (MessagePane != null) { MessagePane.SetMessageThreadSafe(message); return(MessagePane.Show()); } else { return(false); } }
public DaapErrorView (DaapSource source, DaapErrorType failure) : base() { //AppPaintable = true; //BorderWidth = 10; this.source = source; this.failure = failure; pane = new MessagePane(); pane.HeaderIcon = IconThemeUtils.LoadIcon(48, "face-surprise", Stock.DialogError); pane.ArrowIcon = IconThemeUtils.LoadIcon(24, "go-next", Stock.GoForward); pane.HeaderMarkup = String.Format("<big><b>{0}</b></big>", GLib.Markup.EscapeText((failure == DaapErrorType.UserDisconnect ? Catalog.GetString("Disconnected from music share") : Catalog.GetString("Unable to connect to music share")))); AddPaneItems(); pane.Show(); Add(pane); }
public DaapErrorView(DaapSource source, DaapErrorType failure) : base() { //AppPaintable = true; //BorderWidth = 10; this.source = source; this.failure = failure; pane = new MessagePane(); pane.HeaderIcon = IconThemeUtils.LoadIcon(48, "face-surprise", Stock.DialogError); pane.ArrowIcon = IconThemeUtils.LoadIcon(24, "go-next", Stock.GoForward); pane.HeaderMarkup = String.Format("<big><b>{0}</b></big>", GLib.Markup.EscapeText((failure == DaapErrorType.UserDisconnect ? Catalog.GetString("Disconnected from music share") : Catalog.GetString("Unable to connect to music share")))); AddPaneItems(); pane.Show(); Add(pane); }