Exemple #1
0
        private void button_SelectTree_Click(object sender, EventArgs e)
        {
            var picker = new FormTreeSelect
            {
                Text = "Select encrypt root folder"
            };

            using (picker)
            {
                if (picker.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                if (picker.SelectedItem == null)
                {
                    return;
                }

                textBox_SearchFolder.Text = picker.SelectedItem.FullPath;
            }
        }
Exemple #2
0
        private void button_Upload_Click(object sender, EventArgs e)
        {
            button_Upload.Enabled = false;
            try
            {
                var items = listBox_LocalOnly.SelectedItems;
                if (items.Count == 0)
                {
                    return;
                }

                var tree = new FormTreeSelect();
                if (tree.ShowDialog() != DialogResult.OK)
                {
                    return;
                }

                TSviewCloudPlugin.ItemControl.UploadFilesMultiFolder(tree.SelectedItem, items.Cast <FormMatch.MatchItem>().Select(x => x.local.path));
            }
            finally
            {
                button_Upload.Enabled = true;
            }
        }