mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-15 10:58:33 -05:00
UI rework and fixes
This commit is contained in:
@@ -35,6 +35,8 @@ namespace FeedCenter.Options
|
||||
|
||||
private void HandleOkayButtonClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var transaction = Database.Entities.BeginTransaction();
|
||||
|
||||
var feed = (Feed) DataContext;
|
||||
|
||||
// Get a list of all framework elements and explicit binding expressions
|
||||
@@ -73,12 +75,17 @@ namespace FeedCenter.Options
|
||||
// Set focus
|
||||
firstErrorElement.Focus();
|
||||
|
||||
transaction.Rollback();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (RequiresAuthenticationCheckBox.IsChecked.GetValueOrDefault(false))
|
||||
feed.Password = AuthenticationPasswordTextBox.Password;
|
||||
|
||||
transaction.Commit();
|
||||
Database.Entities.Refresh();
|
||||
|
||||
// Dialog is good
|
||||
DialogResult = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user