Client aus Registry entfernt
This commit is contained in:
@@ -145,17 +145,6 @@ namespace DaSaSo.ViewModel
|
|||||||
|
|
||||||
private async void LadeRegistry()
|
private async void LadeRegistry()
|
||||||
{
|
{
|
||||||
int clientid = Convert.ToInt32((string)registry.GetValue("lastclient", "-1"));
|
|
||||||
if (clientid == -1)
|
|
||||||
return;
|
|
||||||
Client lastClient = await _clientDataService.Get(clientid);
|
|
||||||
if (lastClient == null)
|
|
||||||
{
|
|
||||||
SaveInRegistry("lastclient", "-1");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_actualProject.SetClient(lastClient);
|
|
||||||
|
|
||||||
int projectid = Convert.ToInt32((string)registry.GetValue("lastproject", "-1"));
|
int projectid = Convert.ToInt32((string)registry.GetValue("lastproject", "-1"));
|
||||||
if (projectid == -1)
|
if (projectid == -1)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -61,8 +61,6 @@
|
|||||||
<controls:MainWindowNavigationBar Grid.Column="0" Grid.Row="0"/>
|
<controls:MainWindowNavigationBar Grid.Column="0" Grid.Row="0"/>
|
||||||
<ContentControl Grid.Column="1" Grid.Row="0" Content="{Binding CurrentViewModel}" />
|
<ContentControl Grid.Column="1" Grid.Row="0" Content="{Binding CurrentViewModel}" />
|
||||||
<StatusBar FontSize="20" Grid.Row="1" Grid.ColumnSpan="2">
|
<StatusBar FontSize="20" Grid.Row="1" Grid.ColumnSpan="2">
|
||||||
<StatusBarItem FontSize="20" Content="{Binding ClientName}" />
|
|
||||||
<Separator />
|
|
||||||
<StatusBarItem FontSize="20" Content="{Binding Projektnummer}" />
|
<StatusBarItem FontSize="20" Content="{Binding Projektnummer}" />
|
||||||
<Separator />
|
<Separator />
|
||||||
<StatusBarItem FontSize="20" Content="{Binding Buildingsitename}" />
|
<StatusBarItem FontSize="20" Content="{Binding Buildingsitename}" />
|
||||||
|
|||||||
Reference in New Issue
Block a user