C# 클래스 PaulStovell.TrialBalance.UserInterface.MainWindow

The main window of the application, containing the Account List.
상속: BaseWindow
파일 보기 프로젝트 열기: PaulStovell/trial-balance 1 사용 예제들

공개 메소드들

메소드 설명
MainWindow ( Workbook workbook ) : System

Constructor.

비공개 메소드들

메소드 설명
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.

메소드 상세

MainWindow() 공개 메소드

Constructor.
public MainWindow ( Workbook workbook ) : System
workbook Workbook
리턴 System