Exemple #1
0
        private void btnMkAndPrint_Click(object sender, EventArgs e)
        {
            ProblemInfo pi    = Gnd.i.problemInfos[lbKind.SelectedIndex];
            int         level = cmbDifficulty.SelectedIndex;

            Gnd.i.mkAndPrintWinParentWin = this;
            Gnd.i.mkSudokuProc           = new MkSudokuProc(pi, level);

            using (MkAndPrintWin f = new MkAndPrintWin(pi, level))
            {
                f.ShowDialog();
            }
            if (Gnd.i.mkSudokuProc.isEnded() == false)
            {
                CancellableBusyDlg.perform(true, delegate
                {
                    Gnd.i.cancellableBusyDlg.setTitle("問題作成プロセスを停止しています...");
                    Gnd.i.mkSudokuProc.bCancel();
                });
            }
            Gnd.i.mkSudokuProc.Dispose();
            Gnd.i.mkSudokuProc           = null;
            Gnd.i.mkAndPrintWinParentWin = null;

            HistoryDataUtils.trimHistories();

            GC.Collect();
        }
Exemple #2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            HistoryData hd = mainSheet_getRow(getSelectedRow());

            Gnd.i.mkAndPrintWinParentWin = this;
            Gnd.i.mkSudokuProc           = null;   // 2bs

            using (MkAndPrintWin f = new MkAndPrintWin(hd))
            {
                f.ShowDialog();
            }
            GC.Collect();
        }