예제 #1
0
        private IWindow GetWindowByType(WindowType type)
        {
            switch (type)
            {
            case WindowType.BarometricPressureHistory:
                return(_windowFactory.CreateBarPressureHistory());

            case WindowType.TemperatureHistory:
                return(_windowFactory.CreateTemperatureHistory());

            case WindowType.UnitSettings:
                return(_windowFactory.CreateUnitSettingsWindow());

            case WindowType.MainWindow:
                return(_windowFactory.CreateMainWindow());

            case WindowType.DateAndTimeSettings:
                return(_windowFactory.CreateDateAndTimeSettingsWindow());
            }
            throw new NotSupportedException();
        }