예제 #1
0
 public ArticleViewer()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
 public NewPrivateMessagePage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #3
0
 public NewThreadView()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #4
0
 public MainForumsPage()
 {
     InitializeComponent();
     NavigationHelper = new NavigationHelper(this);
     NavigationHelper.LoadState += navigationHelper_LoadState;
     this.SizeChanged += MainForumsPage_SizeChanged;
 }
예제 #5
0
 public FrontPage()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     _navigationHelper.LoadState += navigationHelper_LoadState;
     _navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #6
0
        public SettingsPage()
        {
            this.InitializeComponent();
            _localSettings = ApplicationData.Current.LocalSettings;
            if (_localSettings.Values.ContainsKey(Constants.BOOKMARK_BACKGROUND))
            {
                BookmarkLiveTiles.IsOn = (bool)_localSettings.Values[Constants.BOOKMARK_BACKGROUND];
            }
            if (_localSettings.Values.ContainsKey(Constants.BOOKMARK_STARTUP))
            {
                LoadBookmarksOnLoadSwitch.IsOn = (bool)_localSettings.Values[Constants.BOOKMARK_STARTUP];
            }

            if (_localSettings.Values.ContainsKey(Constants.AUTO_REFRESH))
            {
                AutoReloadSwitch.IsOn = (bool)_localSettings.Values[Constants.AUTO_REFRESH];
            }

            if (_localSettings.Values.ContainsKey(Constants.DARK_MODE))
            {
                DarkLightThemeSwitch.IsOn = (bool) _localSettings.Values[Constants.DARK_MODE];
            }
            else
            {
                // If the mode was never set, it's automatically true unless the user actually sets it to false.
                DarkLightThemeSwitch.IsOn = true;
            }
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
예제 #7
0
 public PrivateMessageView()
 {
     InitializeComponent();
     navigationHelper = new NavigationHelper(this);
     navigationHelper.LoadState += navigationHelper_LoadState;
     navigationHelper.SaveState += navigationHelper_SaveState;
 }
 public UserPostHistoryPage()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     _navigationHelper.LoadState += navigationHelper_LoadState;
     _navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #9
0
 public RapSheetView()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     _navigationHelper.LoadState += navigationHelper_LoadState;
     _navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #10
0
 public RapSheetView()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     RapSheetWebView.ScriptNotify += WebView_ScriptNotify;
     _navigationHelper.LoadState += navigationHelper_LoadState;
     _navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #11
0
 public SearchPage()
 {
     this.InitializeComponent();
     _vm = (ForumSearchPageViewModel) DataContext;
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
     this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
 }
예제 #12
0
        public VoiceHandlePage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
예제 #13
0
        public ThreadListPage()
        {
            this.InitializeComponent();

            this._navigationHelper = new NavigationHelper(this);
            this._navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this._navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
예제 #14
0
 public EditReplyPage()
 {
     InitializeComponent();
     navigationHelper = new NavigationHelper(this);
     PreviewLastPostWebView.ScriptNotify += PreviousPostsWebView_ScriptNotify;
     navigationHelper.LoadState += navigationHelper_LoadState;
     navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #15
0
 public MainForumsPage()
 {
     this.InitializeComponent();
     this.NavigationCacheMode = NavigationCacheMode.Enabled;
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
     this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
 }
예제 #16
0
 public ReplyView()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     PreviousPostsWebView.ScriptNotify += PreviousPostsWebView_ScriptNotify;
     _navigationHelper.LoadState += navigationHelper_LoadState;
     _navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #17
0
 public ThreadPage()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     ThreadFullView.ScriptNotify += WebView_ScriptNotify;
     ThreadSnapView.ScriptNotify += WebView_ScriptNotify;
     _navigationHelper.LoadState += navigationHelper_LoadState;
     _navigationHelper.SaveState += navigationHelper_SaveState;
 }
예제 #18
0
 public ReplyPage()
 {
     this.InitializeComponent();
     _vm = (ReplyViewModel) DataContext;
     this.navigationHelper = new NavigationHelper(this);
     ThreadWebView.ScriptNotify += ThreadWebView_ScriptNotify;
     this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
     this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
 }
        public PrivateMessageViewPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            PrivateMessageWebView.ScriptNotify += WebView_ScriptNotify;
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
예제 #20
0
        public ThreadPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            ThreadWebView.ScriptNotify += WebView_ScriptNotify;
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
        }
예제 #21
0
 public SettingsPage()
 {
     this.InitializeComponent();
     _localSettings = ApplicationData.Current.LocalSettings;
     if (_localSettings.Values.ContainsKey(Constants.BOOKMARK_BACKGROUND))
     {
         BookmarkLiveTiles.IsOn = (bool)_localSettings.Values[Constants.BOOKMARK_BACKGROUND];
     }
     if (_localSettings.Values.ContainsKey(Constants.BOOKMARK_STARTUP))
     {
         LoadBookmarksOnLoadSwitch.IsOn = (bool)_localSettings.Values[Constants.BOOKMARK_STARTUP];
     }
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
     this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
 }
예제 #22
0
 public UserProfileView()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     _navigationHelper.LoadState += navigationHelper_LoadState;
 }
예제 #23
-1
 public MainForumsPage()
 {
     DefaultViewModel = new ObservableDictionary();
     InitializeComponent();
     NavigationHelper = new NavigationHelper(this);
     NavigationHelper.LoadState += navigationHelper_LoadState;
 }