public static void ReleaseTesting()
        {
            string[] names =
            {
                "Microsoft ADO NET Entity Framework Step by Step 2013.pdf",
                "1L.jpg",
                "cvoverview-110607125849-phpapp02.pdf",
                "OUT__100__percent.png",
                //     "SW_DVD5_Office_Professional_Plus_2013_W32_Russian_MLF_X18-55179.ISO",
                "procc.bmp",
                "Thru.jpg",
                "Новый текстовый документ (Новый).txt"
            };
            // for my pc
            NetworkSender ns = new NetworkSender("172.16.1.24");

            foreach (string next in names)
            {
                ns.SendFile("/test/" + next);
            }

            // for server
            //NetworkSender ns = new NetworkSender("172.16.16.8");
            //foreach (string next in names)
            //    ns.SendFile("/ais/test_data/" + next);
        }
        public static void UploadFile(string pathToFile)
        {
            NetworkSender ns = new NetworkSender(_serverIP);

            ns.NeedToWriteToConsole = true;
            ns.NeedToWriteLog       = false;

            if (_pathToLogFileSender != null)
            {
                ns.PathToLogFile = _pathToLogFileSender;
            }
            ns.SendFile(pathToFile);
        }
        public static void UploadFile(string pathToFile)
        {
            NetworkSender ns = new NetworkSender(_serverIP);

            ns.NeedToWriteToConsole = true;
            ns.NeedToWriteLog = false;

             if (_pathToLogFileSender != null)
                 ns.PathToLogFile = _pathToLogFileSender;
             ns.SendFile(pathToFile);
        }
        public static void ReleaseTesting()
        {
            string[] names =
            {
                "Microsoft ADO NET Entity Framework Step by Step 2013.pdf",
                "1L.jpg",
                "cvoverview-110607125849-phpapp02.pdf",
                "OUT__100__percent.png",
               //     "SW_DVD5_Office_Professional_Plus_2013_W32_Russian_MLF_X18-55179.ISO",
                "procc.bmp",
                "Thru.jpg",
                "Новый текстовый документ (Новый).txt"
            };
            // for my pc
            NetworkSender ns = new NetworkSender("172.16.1.24");
            foreach (string next in names)
                ns.SendFile("/test/" + next);

            // for server
            //NetworkSender ns = new NetworkSender("172.16.16.8");
            //foreach (string next in names)
            //    ns.SendFile("/ais/test_data/" + next);
        }
 private void SendFileToClient(string fileName, string clientIP)
 {
     NetworkSender ns = new NetworkSender(clientIP);
     ns.SendFile(_fileStorageFolder + "/" + fileName);
 }
        private void SendFileToClient(string fileName, string clientIP)
        {
            NetworkSender ns = new NetworkSender(clientIP);

            ns.SendFile(_fileStorageFolder + "/" + fileName);
        }