public static void HireClickOkayEvent(object obj, EventArgs args) { int parsed = -1; if (hireTextEntry.Text != "") { int.TryParse(hireTextEntry.Text, out parsed); } if (parsed != -1) { playerOps.HireTroops(Convert.ToInt32(hireTextEntry.Text), client); var armies = playerOps.ArmyStatus(client); ProfileClickEvent(obj, args); } hireWindow.Destroy(); }
public ProtoMessage Hire(string amount) { return(_playerOps.HireTroops(Convert.ToInt32(amount), _testClient)); }