Esempio n. 1
0
 public void MarkAllLogEntriesAsRead(LogSubscription logSubscription)
 {
     foreach (var logEntry in logSubscription.Log)
     {
         MarkLogEntryAsRead.Execute(logEntry);
     }
 }
Esempio n. 2
0
        // 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;
        }
Esempio n. 3
0
 public void DeleteSubscription(LogSubscription logSubscription)
 {
     LogSubscriptionManager.DeleteSubscription(logSubscription);
 }