Exemplo n.º 1
0
 private void tsmiCreateDirectory_Click(object sender, EventArgs e)
 {
     using (InputBox ib = new InputBox("Directory name to create"))
     {
         if (ib.ShowDialog() == DialogResult.OK)
         {
             string path = URLHelpers.CombineURL(CurrentFolderPath, ib.InputText);
             dropbox.CreateFolder(path);
             RefreshDirectory();
         }
     }
 }
Exemplo n.º 2
0
 private void tsmiCreateDirectory_Click(object sender, EventArgs e)
 {
     using (InputBox ib = new InputBox {
         Text = "Dropbox - Create directory", Question = "Please enter the name of the directory which should be created:"
     })
     {
         if (ib.ShowDialog() == DialogResult.OK)
         {
             string path = Helpers.CombineURL(CurrentFolderPath, ib.InputText);
             dropbox.CreateFolder(path);
             RefreshDirectory();
         }
     }
 }