private void StartAlgorithem() { if (Data.StartHome == null) { MessageBox.Show("Start home not selected!"); } else if (Data.DestinationHome == null) { MessageBox.Show("Destination home not selected!"); } else { IDS ids = new IDS(); ids.Start(); if (ids.Answer == null) { MessageBox.Show("There is no answer for this solution!"); } else { ShowPath(ids.Answer); } } }