private void editSendValue() { CustomSelfDrawPanel.CSDButton clickedControl = (CustomSelfDrawPanel.CSDButton)base.ClickedControl; int num = 0xfc; switch (clickedControl.Data) { case 1: this.currentTrack = this.peasantsTrack; break; case 2: this.currentTrack = this.archerTrack; num += 40; break; case 3: this.currentTrack = this.pikemanTrack; num += 80; break; case 4: this.currentTrack = this.swordsmanTrack; num += 120; break; case 5: this.currentTrack = this.catapultTrack; num += 160; break; } InterfaceMgr.Instance.setFloatingValueSentDelegate(new InterfaceMgr.FloatingValueSent(this.setTrackCB)); Point point = InterfaceMgr.Instance.ParentForm.PointToScreen(new Point(base.Location.X + 680, base.Location.Y + num)); FloatingInput.open(point.X, point.Y, this.currentTrack.Value, this.currentTrack.Max, InterfaceMgr.Instance.ParentForm); }
private void editSendValue() { CustomSelfDrawPanel.CSDButton clickedControl = (CustomSelfDrawPanel.CSDButton) base.ClickedControl; int num = 0xfc; switch (clickedControl.Data) { case 1: this.currentTrack = this.peasantsTrack; break; case 2: this.currentTrack = this.archerTrack; num += 40; break; case 3: this.currentTrack = this.pikemanTrack; num += 80; break; case 4: this.currentTrack = this.swordsmanTrack; num += 120; break; case 5: this.currentTrack = this.catapultTrack; num += 160; break; } InterfaceMgr.Instance.setFloatingValueSentDelegate(new InterfaceMgr.FloatingValueSent(this.setTrackCB)); Point point = InterfaceMgr.Instance.ParentForm.PointToScreen(new Point(base.Location.X + 680, base.Location.Y + num)); FloatingInput.open(point.X, point.Y, this.currentTrack.Value, this.currentTrack.Max, InterfaceMgr.Instance.ParentForm); }