public void OnNextButtonClick() { MWindow.Previous.IsEnabled = true; MWindow.Initial.IsEnabled = true; stepNumber++; DrawObj.StepNumber = stepNumber; DrawObj.DrawNext(stepNumber); if (stepNumber == StepCount - 1) { MWindow.Next.IsEnabled = false; MWindow.Final.IsEnabled = false; } MWindow.TextBoxStepNumber.Text = stepNumber.ToString(); }
public override void OnWindowSizeChanged() { if (DrawObj != null) { if (stepNumber == 0 && StepCount != 0) { DrawObj.DrawInitial(); } else if (stepNumber == StepCount - 1 && StepCount != 0) { DrawObj.DrawFinal(); } else { DrawObj.DrawInitial(); for (int i = 0; i <= stepNumber; ++i) { DrawObj.DrawNext(i); } } } }