private void btnNewFloder_Click(object sender, EventArgs e)
        {
            FSTypingDialog dlg = new FSTypingDialog();
            dlg.Owner = this;
            dlg.Text = "New Folder";

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                newFolderName = dlg.InputText;

                FileManager fm = new FileManager(Program.fsConnect);
                fm.CreateDir(dlg.InputText, tbUrl.Text, new FileSyncAPIRequest.FileSyncRequestCompletedHandler(CreateDirFinish));
            }
        }
Exemplo n.º 2
0
        private void RenametoolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems != null && listView1.SelectedItems.Count > 0)
            {
                ListViewItem item = listView1.SelectedItems[0];
                FileMeta meta = item.Tag as FileMeta;

                FSTypingDialog dlg = new FSTypingDialog();
                dlg.InputText = meta.filename;

                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    FileManager fm = new FileManager(Program.fsConnect);
                    fm.Rename(meta.FilePath, meta.filename, dlg.InputText, new FileSyncAPIRequest.FileSyncRequestCompletedHandler(RenameFinish));
                }
            }
        }