internal static void ShowDialogOnFirstRun()
 {
     if (!AppSettings.Instance.Keyboard.IsEulaAccepted)
     {
         var eulaWindow = new EulaWindow();
         eulaWindow.ShowDialog();
     }
 }
Example #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();
        }