Esempio n. 1
0
        private void sendButtonContextual_Click(object sender, RoutedEventArgs e)
        {
            for (int i = 0; i < clientsListView.SelectedItems.Count; i++)
            {
                SendingFileWindow sendingFileWindow = new SendingFileWindow(server, (NamedIPEndPoint)clientsListView.SelectedItems[i], filePath);
            }

            this.Close();
        }
Esempio n. 2
0
        private void sendButton_Click(object sender, RoutedEventArgs e)
        {
            Debug.WriteLine(clientsListView.SelectedItem);

            FolderBrowser fb = new FolderBrowser();

            fb.Description  = "Please select a file or a folder below:";
            fb.IncludeFiles = true;
            fb.NewStyle     = false;
            //fb.InitialDirectory = @"C:\";
            if (fb.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string filePath = fb.SelectedPath;
                Debug.WriteLine("Selected path:" + filePath);

                for (int i = 0; i < clientsListView.SelectedItems.Count; i++)
                {
                    SendingFileWindow sendingFileWindow = new SendingFileWindow(server, (NamedIPEndPoint)clientsListView.SelectedItems[i], filePath);
                }

                this.Close();
            }
        }