private void OnInputFinished(object sender, InputValuesWindow.InputFinishedEventArgs inputFinishedEventArgs) { _currentObject.SetValues(inputFinishedEventArgs.Items); int rowsAffected = _currentObject.Save(DBConnection, _isNew); if (rowsAffected == 1) { Load(); } _isNew = false; }
private void OnInputAccountFinished(object sender, InputValuesWindow.InputFinishedEventArgs e) { if (AccountOwner == null) { return; } string account = (string)e.Items.First().Value; AccountOwner.AddAccount(account); //AccountsGrid.ItemsSource = null; //AccountsGrid.ItemsSource = AccountOwner.Accounts; Window window = sender as Window; if (window != null) { window.Close(); } }