コード例 #1
0
        //public void SnoozeButtonSetup()
        //{
        //    snoozeButton = new AppBarButton();
        //    snoozeButton.Icon = new SymbolIcon(Symbol.Mute);
        //    snoozeButton.Name = "btnSnooze";
        //    snoozeButton.Label = "SNOOZE!";
        //    snoozeButton.Click += SnoozeBarButton_Click;
        //    snoozeButton.Foreground = new SolidColorBrush(Colors.Red);

        //}

        public MainPage()
        {
            this.InitializeComponent();
            Settings = new SaveSettings();
            // mainTime.Text = DateTime.Now.ToString("t");
            DispatcherTimerSetup();
            // SnoozeButtonSetup();
            App.AlarmSound = new MediaElement();
        }
コード例 #2
0
 public Settings()
 {
     this.InitializeComponent();
     settings      = new SaveSettings();
     sw24hour.IsOn = settings.Show24Hour;
 }