Beispiel #1
0
        private void connectMenu_Click(object sender, EventArgs e)
        {
            if (DlgSetting.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            P2P.Opening();

            menuStrip.Items.Insert(menuStrip.Items.IndexOf(connectMenu), disconnectMenu);
            menuStrip.Items.Remove(connectMenu);

            refreshMenu.Enabled = true;

            P2P.Refresh();
        }
Beispiel #2
0
        private void peerList_SelectedIndexChanged(object sender, EventArgs e)
        {
            timerSetData.Start();

            var peerName = peerList.GetItemText(peerList.SelectedItem);

            if (peerName == "Пиры не найдены!")
            {
                return;
            }

            var peerData = AllPeerData.GetPeerData(peerName);

            if (peerData == "_Please_Update_Peer_")
            {
                P2P.Refresh();
                //return;
            }
            else
            {
                peerDataBox.Text = peerData;
            }
        }
Beispiel #3
0
 private void refresh_Click(object sender, EventArgs e)
 {
     timerSetData.Stop();
     P2P.Refresh();
 }