public TPMonitorController(ACTTabpageControl actTab) { this.actPlugin = ActGlobals.oFormActMain.PluginGetSelfData(actTab); this.actTab = actTab; this.actTab.ChangeLocation += new ACTTabpageControl.ChangeLocationEventHandler(this.ChangeLocation); this.actTab.ChangeScale += new ACTTabpageControl.ChangeScaleEventHandler(this.ChangeScale); HideJob = new SynchronizedCollection<JOB>(); ActGlobals.oFormActMain.OnLogLineRead += act_OnLogLineRead; isExited = false; PartyMemberInfo = new SynchronizedCollection<Combatant>(); for (int i = 0; i < 8; i++) { PartyMemberInfo.Add(new Combatant()); } normalStyle = new TPViewer(this); normalStyle.Show(); normalStyle.Hide(); allianceStyle = new AllianceStyleViewer(this); allianceStyle.Show(); allianceStyle.Hide(); if (this.IsAllianceStyle) viewer = allianceStyle; else viewer = normalStyle; checkStatus = new Thread(new ThreadStart(CheckProcess)); checkStatus.Name = "Check Status Thread"; checkStatus.Start(); getTP = new Thread(new ThreadStart(GetMemberTP)); getTP.Name = "Get TP Thread"; getTP.Start(); }
public TPMonitorController() { ActGlobals.oFormActMain.OnLogLineRead += act_OnLogLineRead; stoped = false; PartyMemberInfo = new List<PartyMember>(); for (int i = 0; i < 8; i++) { PartyMemberInfo.Add(new PartyMember()); } view = new TPViewer(this); view.Show(); view.Hide(); checkStatus = new Thread(new ThreadStart(CheckProcess)); checkStatus.Name = "Check Status Thread"; checkStatus.Start(); getTP = new Thread(new ThreadStart(GetMemberTP)); getTP.Name = "Get TP Thread"; getTP.Start(); }