Esempio n. 1
0
        public SudokuPanel()
        {
            InitializeComponent();
            Model = new Sudoku();

            m_typeView = E_TYPE_VIEW.MESSAGE;
            m_freezSelection = true;
            m_messageTitre = "Game Over";
            m_message = "Me im winner";
            m_timer = new System.Windows.Forms.Timer();
            m_timer.Tick += new EventHandler(timer_Tick);
            m_timer.Interval = 1000;
            m_timer.Stop();
        }
Esempio n. 2
0
 void timer_Tick(object sender, EventArgs e)
 {
     if (m_countStart <= 1)
     {
         m_typeView = E_TYPE_VIEW.SUDUKU;
         m_timer.Stop();
         m_freezSelection = false;
     }else{
         m_countStart--;
     }
     this.Invalidate();
 }
Esempio n. 3
0
        public void viewStart()
        {
            m_timer.Stop();
            m_countStart = 3;
            m_typeView = E_TYPE_VIEW.START;
            m_freezSelection = true;

            this.Invalidate();

            m_timer.Start();
        }
Esempio n. 4
0
 public void viewSudoku()
 {
     m_timer.Stop();
     m_typeView = E_TYPE_VIEW.SUDUKU;
     m_freezSelection = false;
     this.Invalidate();
 }
Esempio n. 5
0
        public void viewMessage(string titre, string msg)
        {
            m_timer.Stop();
            m_typeView = E_TYPE_VIEW.MESSAGE;
            m_messageTitre = titre;
            m_message = msg;
            m_freezSelection = true;

            this.Invalidate();
        }