CalculateX and Y private int methods and has worked before trying to get ButtonPress method introduced
? private int CalculateX(int index)
? ? ? ? {
? ? ? ? ? ? return (index - 1) % 4;
? ? ? ? }
?
? ? ? ? private int CalculateY(int index)
? ? ? ? {
? ? ? ? ? ? return (index - 1) / 4;
? ? ? ? }