public SafeDisplayViewModel() { _currentWindow = Application.Current.Windows.OfType <MetroWindow>().LastOrDefault(); _safeAddDialog = new SafeAddDialog(); _statementSuggestions = _safeServ.GetStatementSuggetions(); Load(); }