public void MarkAllLogEntriesAsRead(LogSubscription logSubscription) { foreach (var logEntry in logSubscription.Log) { MarkLogEntryAsRead.Execute(logEntry); } }
// used for editing a subscription public NewSubscriptionWindow(LogSubscription logSubscription) { _vm = new NewSubscriptionWindowViewModel(); DataContext = _vm; InitializeComponent(); txtName.Text = logSubscription.Name; ddlPlugin.SelectedValue = logSubscription.PluginTypeName; LogProviderPluginDropDownSelectionChanged(this, null); ((ISubscriptionSettings)grpSettings.Content).SettingsXml = logSubscription.Url; btnAdd.Visibility = Visibility.Hidden; btnUpdate.Visibility = Visibility.Visible; _logSubscription = logSubscription; }
public void DeleteSubscription(LogSubscription logSubscription) { LogSubscriptionManager.DeleteSubscription(logSubscription); }