C# Class PaulStovell.TrialBalance.UserInterface.MainWindow

The main window of the application, containing the Account List.
Inheritance: BaseWindow
Exibir arquivo Open project: PaulStovell/trial-balance Class Usage Examples

Public Methods

Method Description
MainWindow ( Workbook workbook ) : System

Constructor.

Private Methods

Method Description
Account_Clicked ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Called when an account in the Account List is clicked.

Account_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Called when an account in the Account List is clicked.

AddAccountButton_Clicked ( object sender, RoutedEventArgs e ) : void

Called when the Add Account button is clicked.

AddTransactionButton_Clicked ( object sender, RoutedEventArgs e ) : void

Called when the Add Account button is clicked.

BuildAccountGroupFilters ( ) : void

Initializes the filters for the different account types.

FilterTextBox_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Called when a key is pressed in the Filter TextBox. We'll use this to trap the Enter key to open the topmost account.

FilterTextBox_PreviewKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Called just before a key is pressed in the Filter TextBox. We'll use this to capture the Down arrow key and move focus to the topmost item in the account list.

PeriodBackButton_Clicked ( object sender, RoutedEventArgs e ) : void

Called when the Back button for the period view is clicked.

PeriodForwardButton_Clicked ( object sender, RoutedEventArgs e ) : void

Called when the Next button for the period view is clicked.

ToggleExpansion ( object sender, RoutedEventArgs e ) : void

Called when one of the Expander toggle buttons for the different accounts are clicked.

UpdateTitle ( ) : void

Updates the title of the application. It will usually be "[Business Name] - TrialBalance".

Window_PreviewTextInput ( object sender, System.Windows.Input.TextCompositionEventArgs e ) : void

Called just before a text key is pressed on the window and unhandled anywhere else. We'll use this as an opportunity to forward key presses onto the FilterTextBox.

WorkbookDetailsButton_Clicked ( object sender, RoutedEventArgs e ) : void

Called when the Add Account button is clicked.

Method Details

MainWindow() public method

Constructor.
public MainWindow ( Workbook workbook ) : System
workbook Workbook
return System