Added better error handling + added bulk handling of payable import BOD-152
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
FontFamily="{DynamicResource MaterialDesignFont}"
|
||||
Loaded="Window_Loaded"
|
||||
xmlns:util="clr-namespace:BodyshopPartner.Utils"
|
||||
xmlns:properties="clr-namespace:BodyshopPartner.Properties"
|
||||
Closing="Window_Closing">
|
||||
<Window.DataContext>
|
||||
<vm:MainViewModel />
|
||||
@@ -205,13 +206,17 @@
|
||||
</DataGridTemplateColumn>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<StackPanel Grid.Column="1"
|
||||
Height="Auto">
|
||||
<TextBox Text="{Binding Source={x:Static properties:Settings.Default},
|
||||
Path=QuickBooksFilePath}"
|
||||
materialDesign:HintAssist.Hint="QuickBooks File Path" TextChanged="TextBox_TextChanged"/>
|
||||
<TextBox Height="Auto"
|
||||
Text="{Binding HttpServerLog}"
|
||||
TextWrapping="Wrap"
|
||||
AcceptsReturn="True" />
|
||||
</StackPanel>
|
||||
|
||||
<TextBox Grid.Column="1"
|
||||
Height="Auto"
|
||||
Text="{Binding HttpServerLog}"
|
||||
TextWrapping="Wrap"
|
||||
AcceptsReturn="True"
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
</DockPanel>
|
||||
|
||||
@@ -35,5 +35,11 @@ namespace BodyshopPartner.Views
|
||||
e.Cancel = true ;
|
||||
this.Hide();
|
||||
}
|
||||
|
||||
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.QuickBooksFilePath = ((System.Windows.Controls.TextBox)sender).Text;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user