private void ButtonSend_Click(object sender, EventArgs e) { ClientPacket msg = null; if (RadioChangeBankSlot.Checked) { msg = new CpChangeBankSlotOverflow(); } if (RadioHotbarChange.Checked) { msg = new CpHotbarChangeOverflow(); } if (RadioHotbarUse.Checked) { msg = new CpHotbarUseOverflow(); } if (RadioLogin.Checked) { msg = new CpLogin("elementum", "elementum", true); } if (RadioSwapInv.Checked) { msg = new CpSwapInventoryOverflow(); } msg.SendToAll(); }
private void RadioChangeBankSlot_CheckedChanged(object sender, EventArgs e) { var msg = new CpChangeBankSlotOverflow(); LabelLog.Text = "Packet Size: " + msg.Size + " Bytes"; }