Beispiel #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();
            }
        }
Beispiel #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);
        }