private void frmTool_Load(object sender, EventArgs e) { //Icon //Icon= new Icon(GetType(),"clop.ico"); //Show Show(); //Enable double buffering to avoid flickering SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true); UpdateStyles(); ClpDraw = new WinClopDraw(this); Clp = new ClopWar(ClpDraw); ClpCPU = new ClopCPU(Clp); ClpDraw.showtext = false; ClpDraw.showavail = false; ClpDraw.showcursor = false; ClpDraw.dispclopleft = false; Clp.AutoRedraw = false; //LoadStrat(); fightThread = new Thread(DoFight); //Start! Clp.RedFirst = true; }
private void frmMain_Load(object sender, System.EventArgs e) { //Show this.Show(); //Enable double buffering to avoid flickering this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw, true); this.UpdateStyles(); ClpDraw = new WinClopDraw(this); Clp = new ClopWar(ClpDraw); ClpCPU = new ClopCPU(Clp); LoadStrat(); loaded = true; //Max difficulty menuDifficultyImpossible_Click(null, null); //Start! Clp.RedFirst = true; OpponentHuman = false; Clp.ResetGame(); CheckGame(); }