mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-05 01:25:39 -05:00
Start cleaning up account types
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using FeedCenter.Feeds;
|
||||
using FeedCenter.Accounts;
|
||||
|
||||
namespace FeedCenter.Options;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user