public ViewModel() { model = new ContextMenu.Main.Model(); ThisProgram.ProgramException += (Exception ex) => { CustomExceptionHandler customExceptionHandler = new CustomExceptionHandler(ex); customExceptionHandler.ShowDialog(); }; ThisProgram.IsExistsEnvironment(); }