Esempio n. 1
0
        private void 過去に作成した問題を全てクリアするCToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (HistoryDataUtils.getHistories().Length == 0)
            {
                MessageBox.Show(
                    "過去に作成した問題はありません。",
                    "続行できません",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Warning
                    );
                return;
            }
            if (MessageBox.Show(
                    "過去に作成した問題を全てクリアします。\n宜しいですか?",
                    "確認",
                    MessageBoxButtons.OKCancel,
                    MessageBoxIcon.Warning
                    ) == DialogResult.OK
                )
            {
                HistoryDataUtils.clearHistories();

                MessageBox.Show(
                    "クリアしました。",
                    "情報",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Information
                    );
            }
        }
Esempio n. 2
0
        private void HistoryWin_Shown(object sender, EventArgs e)
        {
            mainSheet_init();

            {
                HistoryData[] histories = HistoryDataUtils.getHistories();

                mainSheet.RowCount = histories.Length;

                for (int index = 0; index < histories.Length; index++)
                {
                    mainSheet_setRow(index, histories[index]);
                }
                mainSheet.Rows[0].Selected = true;
            }
        }
Esempio n. 3
0
        private void 履歴RToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (HistoryDataUtils.getHistories().Length == 0)
            {
                MessageBox.Show(
                    "過去に作成した問題はありません。",
                    "続行できません",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Warning
                    );
                return;
            }
            this.Visible = false;

            using (HistoryWin f = new HistoryWin())
            {
                f.ShowDialog();
            }
            this.Visible = true;             // restore

            GC.Collect();
        }