-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettingsPage.xaml.cs
35 lines (31 loc) · 976 Bytes
/
SettingsPage.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Microsoft.Phone.Tasks;
using OneStop.ViewModels;
namespace OneStop
{
public partial class SettingsPage : PhoneApplicationPage
{
public SettingsPage()
{
InitializeComponent();
DataContext = App.ViewModel.Settings;
}
private void mBtnShowPrivacyPolicy_Click(object sender, RoutedEventArgs e)
{
(DataContext as SettingsViewModel).ShowPrivacyPolicy = !(DataContext as SettingsViewModel).ShowPrivacyPolicy;
}
private void mBtnRateAndReview_Click(object sender, RoutedEventArgs e)
{
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
}
}