Start cleaning up account types

This commit is contained in:
2025-11-15 15:30:23 -05:00
parent 6bae35a255
commit 66ea567eaa
23 changed files with 82 additions and 88 deletions

View File

@@ -1,5 +1,5 @@
using System.Collections.Generic;
using FeedCenter.Feeds;
using FeedCenter.Accounts;
namespace FeedCenter.Options;

View File

@@ -2,7 +2,7 @@ using System;
using System.Globalization;
using System.Linq;
using System.Windows.Data;
using FeedCenter.Feeds;
using FeedCenter.Accounts;
namespace FeedCenter.Options;

View File

@@ -4,11 +4,12 @@
xmlns:properties="clr-namespace:FeedCenter.Properties"
xmlns:feedCenter="clr-namespace:FeedCenter"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
d:DataContext="{d:DesignInstance Type=feeds:Account}"
d:DataContext="{d:DesignInstance Type=accounts:Account}"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:options="clr-namespace:FeedCenter.Options"
xmlns:feeds="clr-namespace:FeedCenter.Feeds"
xmlns:accounts="clr-namespace:FeedCenter.Accounts"
mc:Ignorable="d"
Title="AccountWindow"
Height="350"

View File

@@ -1,9 +1,8 @@
using ChrisKaczor.Wpf.Validation;
using FeedCenter.Feeds;
using System;
using System.Linq;
using System.Windows;
using System.Windows.Threading;
using FeedCenter.Accounts;
namespace FeedCenter.Options;
@@ -58,7 +57,7 @@ public partial class AccountWindow
var accountReadInput = new AccountReadInput(_entities, null, true, () => AccountReadProgressBar.Value++);
AccountReadProgressBar.Value = 0;
AccountReadProgressBar.Maximum = await _account.GetProgressSteps(_account, accountReadInput);
AccountReadProgressBar.Maximum = await _account.GetProgressSteps(accountReadInput);
AccountReadProgress.Visibility = Visibility.Visible;
ButtonPanel.Visibility = Visibility.Collapsed;

View File

@@ -8,6 +8,7 @@
xmlns:controls="clr-namespace:ChrisKaczor.Wpf.Controls;assembly=ChrisKaczor.Wpf.Controls.Link"
xmlns:feedCenter="clr-namespace:FeedCenter"
xmlns:feeds="clr-namespace:FeedCenter.Feeds"
xmlns:accounts="clr-namespace:FeedCenter.Accounts"
mc:Ignorable="d"
d:DesignHeight="311"
d:DesignWidth="425">
@@ -47,7 +48,7 @@
BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"
AllowDrop="True"
Background="{x:Null}"
d:DataContext="{d:DesignInstance feeds:Account }">
d:DataContext="{d:DesignInstance accounts:Account }">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding Name}"
Header="{x:Static properties:Resources.AccountNameColumnHeader}"

View File

@@ -1,10 +1,9 @@
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using FeedCenter.Feeds;
using FeedCenter.Accounts;
namespace FeedCenter.Options;
@@ -53,7 +52,7 @@ public partial class AccountsOptionsPanel
private void AddAccount()
{
var account = new Account(AccountType.Fever);
var account = new Account(AccountType.Miniflux);
var accountWindow = new AccountWindow(_entities);

View File

@@ -7,6 +7,7 @@ using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;
using System.Xml;
using FeedCenter.Accounts;
using FeedCenter.Feeds;
namespace FeedCenter.Options;