private void button1_Click(object sender, EventArgs e) { if(interval == 1) { Timer.Enabled = true; Timer.Start(); RouteTimer.Enabled = true; RouteTimer.Start(); } double[] data = getData(Area.Text.ToLower()); if (data[0] == -1) MessageBox.Show("Area Not Found. Make sure you have write correct spellings"); else { Address.Add(new City(House.Text + " , " + Area.Text, data[0], data[1])); Input.Text = Input.Text + House.Text + " , " + Area.Text + "\n"; } House.Text = null; Area.Text = null; }
private void button7_Click(object sender, EventArgs e) { Timer.Start(); RouteTimer.Start(); }