Exemplo n.º 1
0
        //********************************************************************************************
        //*********************************************************************************************
        //**********************************************************************************************
        //********************************************************************************************
        //*********************************************************************************************
        //**********************************************************************************************
        //********************************************************************************************
        //*********************************************************************************************
        //**********************************************************************************************

        private async void listUsers0_Drop(object sender, DragEventArgs e)
        {
            if (pathbox0.IsEnabled == true)
            {
                TransmitingFiles transmiting = new TransmitingFiles();
                transmiting.OnCompleteList += transmiting.CalculatingPathForTransmitting;

                await Task.Run(() => transmiting.ChekingAndLoadingFiles
                               (
                                   listUsers0, listUsers1, pathbox1, pathbox0, LabelIp1, LabelIp0, this, tcpServer
                               ));
            }
        }
Exemplo n.º 2
0
        private async void listUsers1_Drop(object sender, DragEventArgs e)
        {
            //object name = e.Data.GetData("System.Windows.Controls.SelectedItemCollection");\
            if (pathbox1.IsEnabled == true)
            {
                TransmitingFiles transmiting = new TransmitingFiles();
                transmiting.OnCompleteList += transmiting.CalculatingPathForTransmitting;

                await Task.Run(() => transmiting.ChekingAndLoadingFiles
                               (
                                   listUsers1, listUsers0, pathbox0, pathbox1, LabelIp0, LabelIp1, this, tcpServer
                               ));
            }
        }