Added tooltips to the text fields. Refactored code in MainWindow.cs.