예제 #1
0
        public FlingSolver2(FlingBoard fling)
        {
            this.m_fling = fling;
            this.m_acceptedMoveList = new List<FlingMove>();

            this.m_worker = new BackgroundWorker();
            this.m_worker.WorkerReportsProgress = true;
            this.m_worker.WorkerSupportsCancellation = true;
            this.m_worker.DoWork += new DoWorkEventHandler(m_worker_DoWork);
            this.m_worker.ProgressChanged += new ProgressChangedEventHandler(m_worker_ProgressChanged);
            this.m_worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(m_worker_RunWorkerCompleted);
        }
예제 #2
0
        public Form1()
        {
            InitializeComponent();

            listView1.Columns.Add("StartBall", 100);
            listView1.Columns.Add("Direction", 100);
            listView1.Columns.Add("HitBall", 100);
            listView1.Columns.Add("Related", 100);

            this.m_fling = new FlingBoard(panel1);
            this.m_fling.StartNewGame();
        }