Exemplo n.º 1
0
        public FileBrowser()
        {
            this.InitializeComponent();

            // Hub is only supported in Portrait orientation
            DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait;

            this.NavigationCacheMode = NavigationCacheMode.Required;

            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            engine = new YubiCryptEngine(typeof(App).GetTypeInfo().Assembly);
        }
Exemplo n.º 2
0
 public MainWindow()
 {
     InitializeComponent();
     _engine = new YubiCryptEngine(typeof(MainWindow).Assembly);
 }