Esther invited the king and Haman to a party.... and then invited them to another party, at which she finally told Achashveirosh that Haman's plot was against her own people. The reason why she didn't tell the king at the first party is because she knew how to do "Hamten" - "Wait."