コード例 #1
0
        /// <summary>
        /// 「現在の日付と時刻」画面の「日」にカーソルが当たっている状態から日付を1日進め、「OK」を押す。
        /// </summary>
        /// <param name="date">現在の日付</param>
        private void IncreaseDateByOneDayCore(DateTime date)
        {
            m_controller.PushUp(50, 50); // 日を変更

            if (date.Day == 1)
            {
                m_controller.PushLeft(50, 50);
                m_controller.PushUp(50, 50); // 月を変更

                if (date.Month == 1)
                {
                    m_controller.PushLeft(50, 50);
                    m_controller.PushUp(50, 50); // 年を変更
                }

                m_controller.PushA(50, 50);

                if (date.Month == 1)
                {
                    m_controller.PushA(50, 50);
                }
            }

            m_controller.PushA(50, 50);
            m_controller.PushA(50, 50);
            m_controller.PushA(50, 50);
            m_controller.PushA(50, 100); // OK
        }
コード例 #2
0
 private void UpButton_Click(object sender, RoutedEventArgs e)
 {
     m_controller.PushUp(50, 50);
 }