コード例 #1
0
ファイル: Form1.cs プロジェクト: Hirutsu/PathFindingInGraph
 //выстраивание пути для ViewResults
 void pathFinder_SearchFinished(object sender, SearchHandlerArgs args)
 {
     if (args.IsFinded)
     {
         setData(args.Path);
     }
     else
     {
         setData(new List <Cell> {
             nullCell
         });
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: instinct1995/PathFinding
        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);
        }