Пример #1
0
        /**
         *  @brief  起動処理
         *  @param[in]  object      sender
         *  @param[in]  EventArgs   e
         *  @return     void
         */
        private void Form1_Load(object sender, EventArgs e)
        {
            ChangeState(IdleState.getInstance());   // 起動時 Idle状態へ

            closingFlag = false;                    // Closing中Flagクリア

            // EventQueue生成
            myEvQ = new MyEventQueue();
            myEvQ.InitProc();

            // スレッド起動
            myThreadDelegate = new ThreadStart(ThreadFunction);
            myThread         = new Thread(myThreadDelegate);
            myThread.Start();
        }
Пример #2
0
        /**
         *  @brief  起動処理
         *  @param[in]  object      sender
         *  @param[in]  EventArgs   e
         *  @return     void
         */
        private void Form1_Load(object sender, EventArgs e)
        {
            ChangeState(IdleState.getInstance());   // 起動時 Idle状態へ

            closingFlag = false;                    // Closing中Flagクリア

            // EventQueue生成
            myEvQ = new MyEventQueue();
            myEvQ.InitProc();

            // スレッド起動
            myThreadDelegate = new ThreadStart(ThreadFunction);
            myThread = new Thread(myThreadDelegate);
            myThread.Start();
        }