public bool Save(bool FOUND, bool Quantum, HybridizerRefrigitzForm Curent, ref bool LoadTree, bool MovementsAStarGreedyHeuristicFound, bool IInoreSelfObjects, bool UsePenaltyRegardMechnisam, bool BestMovments, bool PredictHeuristic, bool OnlySelf, bool AStarGreedyHeuristic, bool ArrangmentsChanged) { Object OO = new Object(); lock (OO) { //System.Threading.Thread ttt = new System.Threading.Thread(new System.Threading.ThreadStart(Wait)); //ttt.Start(); //ttt.Join(); /*if (!Quantum) * { * while (Curent.Draw.AStarGreedyString != null) * Curent.Draw = Curent.Draw.AStarGreedyString; * } * else * { * while (Curent.DrawQ.AStarGreedyString != null) * Curent.DrawQ = Curent.DrawQ.AStarGreedyString; * } * if (UsePenaltyRegardMechnisam && AStarGreedyHeuristic) * AllDrawKind = 4; * else * if ((!UsePenaltyRegardMechnisam) && AStarGreedyHeuristic) * AllDrawKind = 3; * if (UsePenaltyRegardMechnisam && (!AStarGreedyHeuristic)) * AllDrawKind = 2; * if ((!UsePenaltyRegardMechnisam) && (!AStarGreedyHeuristic)) * AllDrawKind = 1; * //Set Configuration To True for some unknown reason!. * //UpdateConfigurationTableVal = true; * SetAllDrawKindString(); */ try { HybridizerRefrigitz.AllDraw Stote = Curent.Draw; if (!File.Exists(AllDrawKindString)) { #pragma warning disable CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. #pragma warning disable CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. GalleryStudio.RefregizMemmory rt = new GalleryStudio.RefregizMemmory(MovementsAStarGreedyHeuristicFound, IInoreSelfObjects, UsePenaltyRegardMechnisam, BestMovments, PredictHeuristic, OnlySelf, AStarGreedyHeuristic, ArrangmentsChanged #pragma warning restore CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. #pragma warning restore CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. ); //if (!Quantum) { if (Curent.Draw != null) { Curent.Draw = Curent.RootFound(); rt.AllDrawCurrentAccess = Curent.Draw; rt.RewriteAllDraw(AllDraw.OrderPlate); HybridizerRefrigitz.AllDraw.DrawTable = false; //.SetBoxText("\r\nSaved Completed."); //Curent.RefreshBoxText(); //PictureBoxHybridizerRefrigitz.SendToBack(); //PictureBoxTimerWHITE.SendToBack(); //PictureBoxTimerBLACK.SendToBack(); Console.WriteLine("Saved Completed."); } } /*else { * if (Curent.DrawQ != null) * { * Curent.DrawQ = Curent.RootFoundQ(); * rt.AllDrawCurrentAccessQ = Curent.DrawQ; * rt.RewriteAllDrawQ(HybridizerRefrigitzForm.OrderPlate); * QuantumRefrigiz.AllDraw.DrawTable = false; * //Curent.SetBoxText("\r\nSaved Completed."); * // Curent.RefreshBoxText(); * //PictureBoxHybridizerRefrigitz.SendToBack(); * //PictureBoxTimerWHITE.SendToBack(); * //PictureBoxTimerBLACK.SendToBack(); * Console.WriteLine("Saved Completed."); * } */ } else if (File.Exists(AllDrawKindString)) { //DrawManagement(FOUND, UsePenaltyRegardMechnisam, AStarGreedyHeuristic); File.Delete(HybridizerRefrigitzForm.AllDrawKindString); #pragma warning disable CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. #pragma warning disable CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. GalleryStudio.RefregizMemmory rt = new GalleryStudio.RefregizMemmory(MovementsAStarGreedyHeuristicFound, IInoreSelfObjects, UsePenaltyRegardMechnisam, BestMovments, PredictHeuristic, OnlySelf, AStarGreedyHeuristic, ArrangmentsChanged #pragma warning restore CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. #pragma warning restore CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. ); //"Universal Root Founding"; if (Curent.Draw != null) { Curent.Draw = Curent.RootFound(); rt.AllDrawCurrentAccess = Curent.Draw; rt.RewriteAllDraw(AllDraw.OrderPlate); HybridizerRefrigitz.AllDraw.DrawTable = false; // Curent.SetBoxText("\r\nSaved Completed."); // Curent.RefreshBoxText(); //PictureBoxHybridizerRefrigitz.SendToBack(); //PictureBoxTimerWHITE.SendToBack(); //PictureBoxTimerBLACK.SendToBack(); Console.WriteLine("Saved Completed."); } //DrawManagement(FOUND, UsePenaltyRegardMechnisam, AStarGreedyHeuristic); } Curent.Draw = Stote; return(true); #pragma warning disable CS0162 // Unreachable code detected return(true); #pragma warning restore CS0162 // Unreachable code detected } catch (Exception t) { Log(t); return(false); } } }
public bool Load(bool FOUND, bool Quantum, HybridizerRefrigitzForm Curent, ref bool LoadTree, bool MovementsAStarGreedyHeuristicFound, bool IInoreSelfObjects, bool UsePenaltyRegardMechnisam, bool BestMovments, bool PredictHeuristic, bool OnlySelf, bool AStarGreedyHeuristic, bool ArrangmentsChanged) { Object OO = new Object(); lock (OO) { DrawManagement(FOUND, UsePenaltyRegardMechnisam, AStarGreedyHeuristic); bool DrawDrawen = false; //Load Middle Targets. try { if (File.Exists(HybridizerRefrigitzForm.AllDrawKindString)) { if (HybridizerRefrigitzForm.MovmentsNumber >= 0) { //if (!Quantum) { #pragma warning disable CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. #pragma warning disable CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. GalleryStudio.RefregizMemmory tr = new GalleryStudio.RefregizMemmory(MovementsAStarGreedyHeuristicFound, IInoreSelfObjects, UsePenaltyRegardMechnisam, BestMovments, PredictHeuristic, OnlySelf, AStarGreedyHeuristic, ArrangmentsChanged); #pragma warning restore CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. #pragma warning restore CS0436 // The type 'RefregizMemmory' in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs' conflicts with the imported type 'RefregizMemmory' in 'GalleryStudio, Version=6.0.0.14, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'G:\'Personal'_'Files'\Refregitz\PortableChess\Chess\RefregizMemmory.cs'. t = (HybridizerRefrigitz.AllDraw)tr.Load(Quantum, AllDraw.OrderPlate); if (t != null) { Curent.Draw = t; LoadTree = true; Curent.Draw = Curent.RootFound(); //Curent.Draw.UpdateLoseAndWinDepenOfKind(Curent.Draw.OrderP); t = Curent.Draw; //Curent.SetDrawFounding(ref FOUND, ref THIS, false); DrawDrawen = true; //System.Windows.Forms.MessageBox.Show("Load Completed."); } } /*else * { * GalleryStudio.RefregizMemmory tr = new GalleryStudio.RefregizMemmory(MovementsAStarGreedyHeuristicFound, IInoreSelfObjects, UsePenaltyRegardMechnisam, BestMovments, PredictHeuristic, OnlySelf, AStarGreedyHeuristic, ArrangmentsChanged); * tt =(QuantumRefrigiz.AllDraw) tr.LoadQ(Quantum, HybridizerRefrigitzForm.OrderPlate); * if (t != null) * { * * Curent.DrawQ = tt; * * LoadTree = true; * * * Curent.DrawQ = Curent.RootFoundQ(); * * tt = Curent.DrawQ; * * DrawDrawen = true; * * //System.Windows.Forms.MessageBox.Show("Load Completed."); * } * }*/ } File.Delete(HybridizerRefrigitzForm.AllDrawKindString); } } catch (Exception t) { Log(t); } //System.Threading.Thread ttt = new System.Threading.Thread(new System.Threading.ThreadStart(Wait)); //ttt.Start(); //ttt.Join(); return(DrawDrawen); } }