mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Adds browse button for Office configuration file
Implements the click handler for the browse button associated with the Office configuration XML file path. This change enables users to select the configuration file via a file dialog, automatically populating the path into the text field and improving usability.
This commit is contained in:
@@ -553,6 +553,16 @@ function Register-EventHandlers {
|
||||
}
|
||||
})
|
||||
|
||||
$State.Controls.btnBrowseOfficeConfigXMLFile.Add_Click({
|
||||
param($eventSource, $routedEventArgs)
|
||||
$window = [System.Windows.Window]::GetWindow($eventSource)
|
||||
$localState = $window.Tag
|
||||
$selectedPath = Invoke-BrowseAction -Type 'OpenFile' -Title "Select Office Configuration XML File" -Filter "XML files (*.xml)|*.xml"
|
||||
if ($selectedPath) {
|
||||
$localState.Controls.txtOfficeConfigXMLFilePath.Text = $selectedPath
|
||||
}
|
||||
})
|
||||
|
||||
$State.Controls.chkInstallOffice.Add_Checked({
|
||||
param($eventSource, $routedEventArgs)
|
||||
$window = [System.Windows.Window]::GetWindow($eventSource)
|
||||
|
||||
Reference in New Issue
Block a user