コード例 #1
0
 public ArticleViewer()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }
コード例 #2
0
 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
ファイル: FrontPage.xaml.cs プロジェクト: Gluco/AwfulMetro
 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;
 }
コード例 #8
0
 public UserPostHistoryPage()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     _navigationHelper.LoadState += navigationHelper_LoadState;
     _navigationHelper.SaveState += navigationHelper_SaveState;
 }
コード例 #9
0
ファイル: RapSheetView.xaml.cs プロジェクト: KitF/AwfulMetro
 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
ファイル: SearchPage.xaml.cs プロジェクト: Gluco/AwfulMetro
 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
ファイル: ReplyView.xaml.cs プロジェクト: KitF/AwfulMetro
 public ReplyView()
 {
     InitializeComponent();
     _navigationHelper = new NavigationHelper(this);
     PreviousPostsWebView.ScriptNotify += PreviousPostsWebView_ScriptNotify;
     _navigationHelper.LoadState += navigationHelper_LoadState;
     _navigationHelper.SaveState += navigationHelper_SaveState;
 }
コード例 #17
0
ファイル: ThreadPage.xaml.cs プロジェクト: Gluco/AwfulMetro
 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
ファイル: ReplyPage.xaml.cs プロジェクト: Gluco/AwfulMetro
 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;
 }
コード例 #19
0
        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
ファイル: ThreadPage.xaml.cs プロジェクト: llenroc/AwfulMetro
        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
ファイル: SettingsPage.xaml.cs プロジェクト: Gluco/AwfulMetro
 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;
 }