Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="S010"/> class.
        /// </summary>
        /// <param name="data">The data.</param>
        public S010(TszTestLoader data)
        {
            InitializeComponent();

            this.conditionData = TSConditionData.GetInstance();
            this.conditionData.書籍インストール先 = TSConstants.runMode.pc;

            this.dataTest = data;

            this.InitForm();
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the S038 class.
        /// </summary>
        public S044(int mode, TszTestLoader data)
        {
            InitializeComponent();
            Mode = mode;
            if (this.Mode == ModeZ)
            {
                lblMainTitle.Content = "「Z会作成済のテストを利用する」";
                lblSubTitle.Content = "利用するZ会作成済テストを一覧から選択してください。その後、「表示」または「保存」ボタンを押してください。";
            }
            else
            {
                lblMainTitle.Content = "「書籍の本文データを利用する」";
                lblSubTitle.Content = "利用する書籍の本文データを一覧から選択してください。その後、「表示」または「保存」ボタンを押してください。";
            }

            dataTest = data;

            InitForm();
        }
Пример #3
0
        /// <summary>
        /// Shows the S0044.
        /// </summary>
        /// <param name="data">The data.</param>
        private void ShowS044(TszTestLoader data)
        {
            var mode = this.s00902.rdoModeZ.IsChecked == true ? 1 : 2;

            this.s044 = new S044(mode, data);
            tabControl.Items.Clear();
            tabControl.Items.Add(new DXTabItem { Content = this.s044 });

            btnDisplay.Visibility = Visibility.Visible;
            btnSave.Visibility = Visibility.Visible;
            btnNext.Visibility = Visibility.Hidden;
            btnReturns044.Visibility = Visibility.Visible;
            btnReturn.Visibility = Visibility.Hidden;
        }
Пример #4
0
        /// <summary>
        /// Shows the S0044.
        /// </summary>
        /// <param name="data">The data.</param>
        private void ShowS010(TszTestLoader data)
        {
            this.s010 = new S010(data);
            tabControl.Items.Clear();
            tabControl.Items.Add(new DXTabItem { Content = this.s010 });

            btnDisplay.Visibility = Visibility.Hidden;
            btnSave.Visibility = Visibility.Hidden;
            btnNext.Visibility = Visibility.Hidden;
            btnReturns044.Visibility = Visibility.Hidden;
            btnReturn.Visibility = Visibility.Visible;
            btnQuote.Visibility = Visibility.Visible;
            btnReturn.IsEnabled = true;
            BtnChooseBook.IsEnabled = true;
        }
Пример #5
0
        /// <summary>
        /// BTNs the next click.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The instance containing the event data.</param>
        private void BtnNextClick(object sender, RoutedEventArgs e)
        {
            // Read condition Data of selected book
            this.ReadConditionFile();

            // Read all data of selected book
            this.tszTestLoader = new TszTestLoader(this.conditionData.科目, this.conditionData.書籍コード, this.conditionData.書籍バージョン);

            if (this.mode == this.modeS044)
            {
                // 3.9. Click button Next 次へ
                // Push all data of selected book
                this.ShowS044(this.tszTestLoader);
            }
            else
            {
                // 4.9. Click button Next 次へ
                // Push all data of selected book
                this.ShowS010(this.tszTestLoader);
            }
        }