Esempio n. 1
0
 public void Dispose()
 {
     AddFolder?.Dispose();
     BrowseFolder?.Dispose();
     Folder?.Dispose();
     OpenedFolder?.Dispose();
 }
Esempio n. 2
0
 private void BrowseButton_Click(object sender, EventArgs e)
 {
     BrowseFolder.SelectedPath = WorkingDirectoryInput.Text;
     if (BrowseFolder.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         WorkingDirectoryInput.Text = BrowseFolder.SelectedPath;
     }
 }
Esempio n. 3
0
        private void ButtonBrowse_Click(object sender, EventArgs e)
        {
            BrowseFolder.Description = "Select the place where your site will be stored:";

            BrowseFolder.SelectedPath = wwwFolder.Text;
            if (BrowseFolder.ShowDialog() == DialogResult.OK)
            {
                wwwFolder.Text = BrowseFolder.SelectedPath;
            }
        }
Esempio n. 4
0
 private void starButton2_ClickButton(object sender, EventArgs e)
 {
     BrowseFolder.ShowDialog();
     foreach (var f in new System.IO.DirectoryInfo(BrowseFolder.SelectedPath).GetFiles())
     {
         var nf = new VFile();
         nf.FullPath = f.FullName;
         Files.Add(nf);
     }
     SyncUI();
 }
Esempio n. 5
0
        private void browseWorkingDirectory_Click(object sender, EventArgs e)
        {
            Button  browseButton     = (Button)sender;
            TextBox directoryTextBox = (TextBox)browseButton.Tag;

            BrowseFolder.SelectedPath = directoryTextBox.Text;

            if (BrowseFolder.ShowDialog() == DialogResult.OK)
            {
                directoryTextBox.Text = BrowseFolder.SelectedPath;
            }
        }