private void DiscardButton_Click(object sender, RoutedEventArgs e) { // revert to original employee information NameTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); EmployeeIdTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); ContactInfoTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); }
private void refreshTextBoxes() { EmployeeIdTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); NameTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); ContactInfoTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); JoinedOnTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); ActiveCheckBox.GetBindingExpression(ToggleButton.IsCheckedProperty)?.UpdateTarget(); }
private void RefreshTextBoxes() { EmployeeIdTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); NameTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); LastPaymentDateTextBox.GetBindingExpression(TextBox.TextProperty)?.UpdateTarget(); }