Exemplo n.º 1
0
        private void button7_Click_1(object sender, EventArgs e)
        {
            if (type == 1)
            {
                hide();
                richTextBox2.Show();
                this.ClientSize = new Size(546, 392);

                IPAddress[] ips = Dns.GetHostAddresses(richTextBox1.Text);
                richTextBox2.Clear();
                foreach (var ip in ips)
                {
                    richTextBox2.Text += ip.ToString() + "\n";
                }
            }
            else if (type == 2)
            {
                hide();
                dataGridView1.Show();
                this.ClientSize = new Size(546, 392);
                Ping      p  = new Ping();
                PingReply pr = p.Send(richTextBox1.Text);
                dataGridView1.Rows.Clear();
                dataGridView1.Rows.Add("Address", pr.Address);
                dataGridView1.Rows.Add("Buffer", pr.Buffer);
                dataGridView1.Rows.Add("Status", pr.Status);
                dataGridView1.Rows.Add("Nodes", pr.Options.Ttl);
            }
            else if (type == 3)
            {
                WebClient wc      = new WebClient();
                byte[]    con     = wc.DownloadData("https://" + richTextBox1.Text);
                string    content = ASCIIEncoding.Default.GetString(con);
                file1     go      = new file1(content);
                go.Show();
            }
        }
Exemplo n.º 2
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            file1 go = new file1("");

            go.Show();
        }
Exemplo n.º 3
0
        private void label10_Click(object sender, EventArgs e)
        {
            file1 go = new file1("");

            go.Show();
        }