Exemplo n.º 1
0
        private void sendPMToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmInputBox ip = new frmInputBox();

            if (ip.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                new frmPMs(PMs.ToArray(), 3, lvUsers.SelectedItems[0].Text, ip.Result, Connection, Username).Show();
            }
        }
Exemplo n.º 2
0
        private void labelActivate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmInputBox input = new frmInputBox {
                Text = "Activation", lblText = { Text = "Activation code:" }
            };

            if (input.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            byte[] data = Packer.Serialize((byte)ClientPacket.AuthCode, input.Result);
            Connection.Send(data);
        }