FECipherVit.HistoryChecker.button_Push_Click C# (CSharp) Method

button_Push_Click() private method

private button_Push_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void button_Push_Click(object sender, EventArgs e)
        {
            if (listBox.SelectedIndex >= 0 && listBox.SelectedIndex < Historys.Count)
            {
                string temp = listBox.Items[listBox.SelectedIndex].ToString();
                int pos = temp.IndexOf(" ");
                string name = temp.Substring(0, pos);
                Owner.msgProcessor.SendSecret("PushHistory", new List<string>() { name, Historys[listBox.SelectedIndex].toString() }, "");
            }
        }