//Base Task Load. void BaseThread() { //Initiate Task. ttt = new FormRefrigtz(false); ttt.Sec.ShowDialog(); ttt.ShowDialog(); Process.GetCurrentProcess().Kill(); }
public bool Load(bool FOUND, bool Quantum, FormRefrigtz Curent, ref bool LoadTree, bool MovementsAStarGreedyHuristicFound, bool IInoreSelfObjects, bool UsePenaltyRegardMechnisam, bool BestMovments, bool PredictHuristic, bool OnlySelf, bool AStarGreedyHuristic, bool ArrangmentsChanged) { DrawManagement(FOUND, UsePenaltyRegardMechnisam, AStarGreedyHuristic); bool DrawDrawen = false; //Load Middle Targets. try { if (File.Exists(FormRefrigtz.AllDrawKindString)) { if (FormRefrigtz.MovmentsNumber >= 0) { if (!Quantum) { GalleryStudio.RefregizMemmory tr = new GalleryStudio.RefregizMemmory(MovementsAStarGreedyHuristicFound, IInoreSelfObjects, UsePenaltyRegardMechnisam, BestMovments, PredictHuristic, OnlySelf, AStarGreedyHuristic, ArrangmentsChanged); t = (RefrigtzDLL.AllDraw)tr.Load(Quantum, FormRefrigtz.OrderPlate); if (t != null) { Curent.Draw = t; LoadTree = true; Curent.Draw = Curent.RootFound(); 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(MovementsAStarGreedyHuristicFound, IInoreSelfObjects, UsePenaltyRegardMechnisam, BestMovments, PredictHuristic, OnlySelf, AStarGreedyHuristic, ArrangmentsChanged); tt = (QuantumRefrigiz.AllDraw)tr.LoadQ(Quantum, FormRefrigtz.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(FormRefrigtz.AllDrawKindString); } } catch (Exception t) { Log(t); } return(DrawDrawen); }
//Constructor public ThingsConverter(bool Arrangments, int i, int j, Color a, int[,] Tab, int Ord, bool TB, int Cur, ref FormRefrigtz THI) { //Initite Global Variables with Local Parameter. THIS = THI; ArrangmentsChanged = Arrangments; Row = i; Column = j; color = a; Order = Ord; Current = Cur; }
//base Task Load. void baseThread() { Object O = new Object(); lock (O) { //Initiate Task. ttt = new FormRefrigtz(false); ttt.Sec.ShowDialog(); ttt.ShowDialog(); Process.GetCurrentProcess().Kill(); } }
public virtual void Clone(ref DrawSoldier AA, ref FormRefrigtz THIS) { throw new System.NotImplementedException(); }
public DrawSoldier(Single i, Single j, Color a, IEnumerable <int> Tab, int Ord, bool TB, int Cur, ref FormRefrigtz THIS) { }
public bool Save(bool FOUND, bool Quantum, FormRefrigtz Curent, ref bool LoadTree, bool MovementsAStarGreedyHuristicFound, bool IInoreSelfObjects, bool UsePenaltyRegardMechnisam, bool BestMovments, bool PredictHuristic, bool OnlySelf, bool AStarGreedyHuristic, bool ArrangmentsChanged) { /*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 && AStarGreedyHuristic) * AllDrawKind = 4; * else * if ((!UsePenaltyRegardMechnisam) && AStarGreedyHuristic) * AllDrawKind = 3; * if (UsePenaltyRegardMechnisam && (!AStarGreedyHuristic)) * AllDrawKind = 2; * if ((!UsePenaltyRegardMechnisam) && (!AStarGreedyHuristic)) * AllDrawKind = 1; * //Set Configuration To True for some unknown reason!. * //UpdateConfigurationTableVal = true; * SetAllDrawKindString(); */ try { if (!File.Exists(AllDrawKindString)) { GalleryStudio.RefregizMemmory rt = new GalleryStudio.RefregizMemmory(MovementsAStarGreedyHuristicFound, IInoreSelfObjects, UsePenaltyRegardMechnisam, BestMovments, PredictHuristic, OnlySelf, AStarGreedyHuristic, ArrangmentsChanged ); if (!Quantum) { if (Curent.Draw != null) { Curent.Draw = Curent.RootFound(); rt.AllDrawCurrentAccess = Curent.Draw; rt.RewriteAllDraw(FormRefrigtz.OrderPlate); RefrigtzDLL.AllDraw.DrawTable = false; Curent.SetBoxText("\r\nSaved Completed."); Curent.RefreshBoxText(); //PictureBoxRefrigtz.SendToBack(); //PictureBoxTimerGray.SendToBack(); //PictureBoxTimerBrown.SendToBack(); //MessageBox.Show("Saved Completed."); } } else { if (Curent.DrawQ != null) { Curent.DrawQ = Curent.RootFoundQ(); rt.AllDrawCurrentAccessQ = Curent.DrawQ; rt.RewriteAllDrawQ(FormRefrigtz.OrderPlate); QuantumRefrigiz.AllDraw.DrawTable = false; Curent.SetBoxText("\r\nSaved Completed."); Curent.RefreshBoxText(); //PictureBoxRefrigtz.SendToBack(); //PictureBoxTimerGray.SendToBack(); //PictureBoxTimerBrown.SendToBack(); //MessageBox.Show("Saved Completed."); } } } else if (File.Exists(AllDrawKindString)) { //DrawManagement(FOUND, UsePenaltyRegardMechnisam, AStarGreedyHuristic); File.Delete(FormRefrigtz.AllDrawKindString); GalleryStudio.RefregizMemmory rt = new GalleryStudio.RefregizMemmory(MovementsAStarGreedyHuristicFound, IInoreSelfObjects, UsePenaltyRegardMechnisam, BestMovments, PredictHuristic, OnlySelf, AStarGreedyHuristic, ArrangmentsChanged ); //"Universal Root Founding"; if (Curent.Draw != null) { Curent.Draw = Curent.RootFound(); rt.AllDrawCurrentAccess = Curent.Draw; rt.RewriteAllDraw(FormRefrigtz.OrderPlate); RefrigtzDLL.AllDraw.DrawTable = false; Curent.SetBoxText("\r\nSaved Completed."); Curent.RefreshBoxText(); //PictureBoxRefrigtz.SendToBack(); //PictureBoxTimerGray.SendToBack(); //PictureBoxTimerBrown.SendToBack(); //MessageBox.Show("Saved Completed."); } //DrawManagement(FOUND, UsePenaltyRegardMechnisam, AStarGreedyHuristic); } return(true); } catch (Exception t) { Log(t); return(false); } }
public virtual void Clone(ref ThinkingChess AA, ref FormRefrigtz THIS) { throw new System.NotImplementedException(); }
public ThinkingChess(int i, int j, Color a, IEnumerable <int> Tab, int Ma, int Ord, bool ThinkingBeg, int CurA, int ThingN, ref FormRefrigtz TH) { }
public AllDraw(ref FormRefrigtz th) { }
public ChessPerdict(ref FormRefrigtz Th) { }