コード例 #1
0
        static void Main()
        {
            WorkerThreadClass workerThread = new WorkerThreadClass();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new TowerOfHanoiForm(workerThread));
            workerThread.ReleaseWorkerThread();
        }
コード例 #2
0
 public TowerOfHanoiForm(WorkerThreadClass workerThread)
 {
     InitializeComponent();
     m_controller           = new Controller();
     m_formController       = new FormController(this, m_controller);
     this.m_workerThread    = workerThread;
     drawArea.BackColor     = Color.LightGray;
     polesNumber.Text       = m_defaultTextBoxValue;
     discNumber.Text        = m_defaultTextBoxValue;
     this.MinimumSize       = new Size(838, 517);
     invalidPoleNumber.Text = " ";
     invalidDiscNumber.Text = " ";
 }