Beispiel #1
0
        /*
         * /// <summary>
         * /// 发送文件线程
         * /// </summary>
         * private void SendThread(Socket socket)
         * {
         *  bool ret = Server.SendFile(socket, "C:/123.bmp");   //clientSocketList[0]改以及路径没错
         *
         *  if (ret)
         *  {
         *      SendMessage(MSG_SEND_SUCCEED, "发送文件成功");
         *  }
         *  else
         *  {
         *      SendMessage(MSG_SEND_FAIL, "发送文件失败");
         *  }
         *
         *
         * }
         */

        private void Form1_Load(object sender, EventArgs e)
        {
            //填充IP

            string[] s = MyServer.GetLocalIPs();
            foreach (string st in s)
            {
                comboBox1.Items.Add(st);
                if (st.StartsWith("210") || st.StartsWith("10"))
                {
                    comboBox1.Text = st;
                }
            }


            //player.URL = "D:/亲爱的那不是爱情.mp3";
            //player.close();
            player.enableContextMenu           = false;
            player.Ctlcontrols.currentPosition = 0.4;
            //DataBase.Open();

            //player.settings.autoStart = true;

            player.settings.volume = 20;
        }