private void button1_addstation_Click(object sender, EventArgs e) { string Location = textBox1_addStation.Text.ToString(); string Name = textBox2_addstation.Text.ToString(); if (textBox1_addStation.Text.Length == 0 || textBox2_addstation.Text.Length == 0) { MessageBox.Show("Please, Enter the Station's Location and Name"); return; } controllerObj.AddStation(Location, Name); RefreshStationsList(); //Refreshes the lists below to allow usasge of newly created stations MessageBox.Show("Done Successfuly!" + newLine + "Location is: " + Location + " and " + "Name is: " + Name); }