コード例 #1
0
ファイル: SetAlarmPage.xaml.cs プロジェクト: hx215267863/src
        private void HeaderButton_Click(object sender, RoutedEventArgs e)
        {
            string str = (string)(sender as Button).Tag;

            if (!(str == "1"))
            {
                if (!(str == "2"))
                {
                }
                else
                {
                    BasePage basesetAlarmPage = new AlarmAddFieldPage();
                    this.detailPage.Navigate(basesetAlarmPage);
                    this.header.Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/IFactory.UI;component/Assets/tab_alarm2.png", UriKind.Absolute)));
                }
            }
            else
            {
                BasePage basesetAlarmPage = new AlarmAddRulePage();
                this.detailPage.Navigate(basesetAlarmPage);
                this.header.Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/IFactory.UI;component/Assets/tab_alarm1.png", UriKind.Absolute)));
            }
        }
コード例 #2
0
ファイル: SetAlarmPage.xaml.cs プロジェクト: hx215267863/src
        private void Page_Loaded(object sender, RoutedEventArgs e)
        {
            BasePage basesetAlarmPage = new AlarmAddRulePage();

            this.detailPage.Navigate(basesetAlarmPage);
        }