public EpisodeAttachment(Guid id, string title, string subtitle, string imageUri) : base(id, title, subtitle, imageUri) { this.AttachmentUI = "res://ZuneShellResources!SocialComposer.uix#EpisodeAttachmentUI"; this.Description = Shell.LoadString(StringId.IDS_COMPOSE_MESSAGE_VIDEO_ATTACHMENT); }
internal static void Show(bool updateFound, bool fIsCritical, bool isUserInitiated) { if (updateFound) { EventHandler cancelCommand = null; string message = !fIsCritical?Shell.LoadString(StringId.IDS_UPDATE_AVAILABLE) : Shell.LoadString(StringId.IDS_CRITICAL_UPDATE_AVAILABLE); string cancelText = Shell.LoadString(StringId.IDS_UPDATE_INSTALL_LATER); Command okCommand = new Command(null, Shell.LoadString(StringId.IDS_UPDATE_INSTALL_NOW), null); okCommand.Invoked += delegate { SoftwareUpdates.Instance.InstallUpdates(); }; if (!isUserInitiated) { cancelCommand = (sender, e) => SQMLog.Log(SQMDataId.UserDeferredAutomaticUpdate, 1); } MessageBox.Show(null, message, okCommand, cancelText, cancelCommand, true); } else { MessageBox.Show(null, Shell.LoadString(StringId.IDS_UPDATE_NOT_REQUIRED), null); } }
public PlaylistAttachment(Guid id, string title, string imageUri) : base(id, title, null, imageUri) { this.AttachmentUI = "res://ZuneShellResources!SocialComposer.uix#PlaylistAttachmentUI"; this.Description = Shell.LoadString(StringId.IDS_COMPOSE_MESSAGE_PLAYLIST_ATTACHMENT); }
public Node(Experience owner, StringId id, string command, SQMDataId sqmCountID) : base(owner, Shell.LoadString(id), null) { this._command = command; this._sqmCountID = sqmCountID; }