Example #1
0
        private void button3rdAlgorithm_Click(object sender, EventArgs e)
        {
            string from = checkedListBoxFrom.SelectedItem.ToString();
            string to   = checkedListBoxTo.SelectedItem.ToString();

            richTextBox1.Text = Builder.NoStairsPath(from, to);
            if (Builder.Result == $"No path without stairs from {from} to {to} found.\nTry another way.")
            {
                Builder.Result    = "";
                richTextBox1.Text = Builder.FindPathWithLift(from, to);
            }
            richTextBox2.Text = Builder.Result;
        }