Пример #1
0
        void File_Insert(object sender, DragEventArgs e)


        {
            e.Effect = DragDropEffects.Copy;
            var files = (string[])e.Data.GetData(DataFormats.FileDrop);

            string[] full_path = files[0].Split('\\');



            Label l1 = new Label();

            l1.Width     = 185;
            l1.Height    = 15;
            l1.Top       = 4;
            l1.Left      = 4;
            l1.BackColor = Color.Transparent;
            l1.ForeColor = Color.RoyalBlue;
            l1.Text      = full_path[full_path.Length - 1];
            l1.Font      = new Font("Cambria", 9, FontStyle.Italic);
            l1.Visible   = true;

            //   panel3.Enabled = true;
            panel3.Controls.Add(l1);


            String resp = req.wifi_info_api("1", "2", "32:23:23:23:23:23", "4");


            MessageBox.Show(resp);
        }