Exemple #1
0
 private void ShowPoints()
 {
     if (canvasMain.Children.Contains(ctrlNumberPoints) == true)
         canvasMain.Children.Remove(ctrlNumberPoints);
     ctrlNumberPoints = new MapNumbersToImages(GlobalVariables.Points, Constants.YellowNumber, 30, 30, true);
     ctrlNumberPoints.SetValue(Canvas.LeftProperty, (double)176);
     ctrlNumberPoints.SetValue(Canvas.TopProperty, (double)257);
     canvasMain.Children.Add(ctrlNumberPoints);
 }
Exemple #2
0
 private void ShowPoints(int _points)
 {
     if (canvasMain.Children.Contains(ctrlNumberPoints) == true)
         canvasMain.Children.Remove(ctrlNumberPoints);
     ctrlNumberPoints = new MapNumbersToImages(_points, Constants.BoldYellowNumber, 15, 15, true);
     ctrlNumberPoints.SetValue(Canvas.LeftProperty, (double)460);
     ctrlNumberPoints.SetValue(Canvas.TopProperty, (double)454);
     canvasMain.Children.Add(ctrlNumberPoints);
 }
Exemple #3
0
 private void ShowLevel(int _level)
 {
     if (canvasMain.Children.Contains(ctrlNumberLevel) == true)
         canvasMain.Children.Remove(ctrlNumberLevel);
     ctrlNumberLevel = new MapNumbersToImages(_level, Constants.PinkNumber, 20, 20, true);
     ctrlNumberLevel.SetValue(Canvas.LeftProperty, (double)512);
     ctrlNumberLevel.SetValue(Canvas.TopProperty, (double)21);
     canvasMain.Children.Add(ctrlNumberLevel);
 }