Exemple #1
0
        public TriggerPage(double pageWidth)
        {
            InitializeComponent();
            Width            = pageWidth;
            _TriggerPage     = this;
            btnMonday.Tag    = DayOfWeek.Monday;
            btnTuesday.Tag   = DayOfWeek.Tuesday;
            btnWednesday.Tag = DayOfWeek.Wednesday;
            btnThursday.Tag  = DayOfWeek.Thursday;
            btnFriday.Tag    = DayOfWeek.Friday;
            btnSaturday.Tag  = DayOfWeek.Saturday;
            btnSunday.Tag    = DayOfWeek.Sunday;

            Loaded += async(sender, args) =>
            {
                UpdateText();

                if (App.Config.HadTriggerWarning)
                {
                    return;
                }
                await CustomMessageBox.Show(App.Text.TriggerWarning);

                App.Config.HadTriggerWarning = true;
                await App.Config.Save();
            };
        }
Exemple #2
0
        public TriggerPage(double pageWidth)
        {
            InitializeComponent();

#if DEBUG
            gridContent.IsEnabled = true;
            gridToAdd.Visibility  = Visibility.Collapsed;
#endif
            Width            = pageWidth;
            _TriggerPage     = this;
            btnMonday.Tag    = DayOfWeek.Monday;
            btnTuesday.Tag   = DayOfWeek.Tuesday;
            btnWednesday.Tag = DayOfWeek.Wednesday;
            btnThursday.Tag  = DayOfWeek.Thursday;
            btnFriday.Tag    = DayOfWeek.Friday;
            btnSaturday.Tag  = DayOfWeek.Saturday;
            btnSunday.Tag    = DayOfWeek.Sunday;
        }