//выстраивание пути для ViewResults void pathFinder_SearchFinished(object sender, SearchHandlerArgs args) { if (args.IsFinded) { setData(args.Path); } else { setData(new List <Cell> { nullCell }); } }
void pathFinder_SearchFinished(object sender, SearchHandlerArgs args) { if (!Run_btn.Enabled) { SetButtonCondition(Run_btn, true); } if (args.IsFinded) { SetButtonCondition(Pause_btn, false); SetButtonCondition(Stop_btn, false); setData(args.Path); } else { setData(new List <Cell> { nullCell }); } Console.WriteLine(args.message); setStatus(Status.Stopped); }