internal static void ShowDialogOnFirstRun()
 {
     if (!AppSettings.Instance.Keyboard.IsEulaAccepted)
     {
         var eulaWindow = new EulaWindow();
         eulaWindow.ShowDialog();
     }
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            GeoWatcher.PositionChanged += GeoWatcher_PositionChanged;
            GeoWatcher.Start(false);

            ShowSettings = new RelayCommand(OnShowSettings);

            IKeyboardApplicationEnvironment environment = KeyboardApplicationEnvironment.Create(this);

            _host = environment.Host;

            InitializeComponent();

            EulaWindow.ShowDialogOnFirstRun();
        }