Esempio n. 1
0
        internal void OnFaceChanged(FaceChangedEventArgs e)
        {
            switch (e.FaceState)
            {
            case FaceStates.HAPPY:
                btnNewGame.Image = Properties.Resources.Smiley;
                break;

            case FaceStates.SAD:
                btnNewGame.Image = Properties.Resources.NotSmiley;
                break;

            case FaceStates.WORRIED:
                btnNewGame.Image = Properties.Resources.Duckface;
                break;
            }
        }
Esempio n. 2
0
 public void OnFaceChanged(FaceChangedEventArgs e)
 {
     FaceChanged?.Invoke(e);
 }
Esempio n. 3
0
 private MouseEventHandler OnFaceChanged(FaceChangedEventArgs e)
 {
     Minesweeper.Game.OnFaceChanged(e);
     return(null);
 }