public static string Show(string Text) { MsgBox = new SaveBox(); MsgBox.YourProperty.Text = Text; MsgBox.ShowDialog(); return(MsgBox.YourName.Text); } // trả về chuỗi văn bản của thuộc tính con vật và trả về tên người dùng nhập
} //lấy vị trí của con vật trong mảng private void endGame() { var name = SaveBox.Show(string.Format("{0}", getYourProperty(getYourAnimalIndex()))); saveScore(name); firstClick = true; gameStart(); } //xử lí khi kết thúc game