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(); }
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(); }
public void viewStart() { m_timer.Stop(); m_countStart = 3; m_typeView = E_TYPE_VIEW.START; m_freezSelection = true; this.Invalidate(); m_timer.Start(); }
public void viewSudoku() { m_timer.Stop(); m_typeView = E_TYPE_VIEW.SUDUKU; m_freezSelection = false; this.Invalidate(); }
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(); }