Im Tätigkeiten können nun die LV Positionen
ausgewählt werden
This commit is contained in:
@@ -23,6 +23,8 @@ namespace KanSan.ViewModel
|
||||
private Projekt _selectedProjekt;
|
||||
private Baustelle _selectedBaustelle;
|
||||
private Sewer _selectedObjekt;
|
||||
|
||||
public static Baustelle Baustelle;
|
||||
|
||||
|
||||
public string ApplicationTitle
|
||||
@@ -90,6 +92,7 @@ namespace KanSan.ViewModel
|
||||
if (_selectedBaustelle.GuidNr.Equals(value.GuidNr)) return;
|
||||
}
|
||||
_selectedBaustelle = value;
|
||||
MainWindowViewModel.Baustelle = value;
|
||||
SaveInRegistry("LastBaustelle", value.GuidNr.ToString());
|
||||
OnPropertyChanged();
|
||||
}
|
||||
@@ -153,7 +156,11 @@ namespace KanSan.ViewModel
|
||||
if (baustellenGuid != null)
|
||||
{
|
||||
IEnumerable<Baustelle> loadedBaustelle = unitOfWork.BaustelleRepository.Get(x => x.GuidNr.Equals(baustellenGuid));
|
||||
if (loadedBaustelle.Count() == 1) _selectedBaustelle = loadedBaustelle.First();
|
||||
if (loadedBaustelle.Count() == 1)
|
||||
{
|
||||
_selectedBaustelle = loadedBaustelle.First();
|
||||
MainWindowViewModel.Baustelle = _selectedBaustelle;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user