示例#1
0
 public void TestInitialize()
 {
     _path = ".\\TestLog.log";
     VtmLogger.SetLoggingLevel(TraceLevel.Verbose);
     _log = VtmLoggerFactory.GetInstance(_path);
     //_log = VTMLoggerFactory.getInstance();
 }
示例#2
0
        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;
        }