public void TestInitialize() { _path = ".\\TestLog.log"; VtmLogger.SetLoggingLevel(TraceLevel.Verbose); _log = VtmLoggerFactory.GetInstance(_path); //_log = VTMLoggerFactory.getInstance(); }
public ErrorViewModel(Exception ex, IVtmLogger logger, EErrorButtons buttonSet) : this(buttonSet) { if (logger != null) { logger.Error(ex); } }
private void _changeMonitor() { Screen screen; try { screen = Screen.AllScreens[Monitor]; } catch (IndexOutOfRangeException e) { // Ausweichen auf den Hauptbildschirm screen = Screen.PrimaryScreen; Monitor = 0; IVtmLogger logger = VtmLoggerFactory.GetInstance(); logger.Warning(e.Message); } Window MainWindow = System.Windows.Application.Current.MainWindow; MainWindow.WindowState = WindowState.Normal; MainWindow.Top = screen.WorkingArea.Top; MainWindow.Left = screen.WorkingArea.Left; MainWindow.WindowState = WindowState.Maximized; MainWindow.WindowStyle = WindowStyle.None; }