private void ClearButton_Click(object sender, RoutedEventArgs e) { stringtoRepeat = ""; str.Clear(); MoveLetters.SetIntArrToNum(Arr, 1); counter = 10; }
public MainPage() { this.InitializeComponent(); dtimer.Tick += Dtimer_Tick; dtimer.Interval = TimeSpan.FromMilliseconds(1); _ = new Board(rectangle, inside, row, col, solidBlack, solidBorderBlack, sizeOfRect); dtimer.Start(); MoveLetters.SetIntArrToNum(Arr, 0); InputStringToDisplay.Focus(FocusState.Pointer); }
/// <summary> /// sends black color of button to text color /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Repeat_Checked(object sender, RoutedEventArgs e) { str.Clear(); stringtoRepeat = ""; if (!MoveLetters.CheckForZero(Arr)) { MoveLetters.SetIntArrToNum(Arr, 1); } counter = 10; /*MoveLetters.SetIntArrToNum(Arr, 0);*/ }
private void Clear() { stringtoRepeat = ""; str.Clear(); MoveLetters.SetIntArrToNum(Arr, 0); }