Visual improvements
This commit is contained in:
@@ -42,9 +42,9 @@ namespace DebtMgr.Converters
|
||||
}
|
||||
|
||||
if (doubleValue < 0.001 && doubleValue > -0.001)
|
||||
return new SolidColorBrush(Colors.Green);
|
||||
return new SolidColorBrush(Colors.Black);
|
||||
|
||||
if(doubleValue > 0)
|
||||
if (doubleValue > 0)
|
||||
return new SolidColorBrush(Colors.Green);
|
||||
|
||||
if (doubleValue < 0)
|
||||
|
||||
@@ -34,6 +34,10 @@ namespace DebtMgr.Helper
|
||||
96, // These decides the dpi factors
|
||||
96,// The can be changed when we'll have preview options.
|
||||
PixelFormats.Pbgra32);
|
||||
|
||||
|
||||
|
||||
|
||||
bitmap.Render(uiElement);
|
||||
|
||||
SaveUsingBitmapTargetRenderer(fileName, bitmap, encoder);
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
<MenuItem Header="Add _Charge" Command="{Binding AddChargeContextMenuCommand}" />
|
||||
<MenuItem Header="Add _Deposit" Command="{Binding AddDepositContextMenuCommand}" />
|
||||
<Separator></Separator>
|
||||
<MenuItem Header="_Print" Click="PrintContextMenu_OnClick" IsEnabled="False" />
|
||||
<MenuItem Header="_Print" Click="PrintContextMenu_OnClick" IsEnabled="False"/>
|
||||
</ContextMenu>
|
||||
</ListBox.Resources>
|
||||
<ListBox.ContextMenu>
|
||||
@@ -104,7 +104,7 @@
|
||||
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
|
||||
</StackPanel>
|
||||
|
||||
<Grid Grid.Column="2">
|
||||
<Grid Grid.Column="2" Name="RightPanel">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
|
||||
@@ -108,9 +108,9 @@ namespace DebtMgr.View
|
||||
|
||||
private void PrintContextMenu_OnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
//var targetElement = TransactionHistoryListView;
|
||||
var targetElement = RightPanel;
|
||||
|
||||
//PrintHelper.SaveUsingEncoder("test.png", targetElement);
|
||||
PrintHelper.SaveUsingEncoder("test.png", targetElement);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -517,7 +517,7 @@ namespace DebtMgr.ViewModel
|
||||
// Remember selection
|
||||
var rememberSelection = PersonListViewSelectedItem?.Id;
|
||||
|
||||
var personList = App.Database.GetAllWithChildren<Person>();
|
||||
var personList = App.Database.GetAllWithChildren<Person>().OrderBy(x => x.FirstName).ThenBy(x => x.LastName).ToList();
|
||||
PersonListViewItemSource = personList;
|
||||
|
||||
var overallBalance = personList.Sum(x => x.Total);
|
||||
|
||||
Reference in New Issue
Block a user