SelectFolder() static public method

static public SelectFolder ( ) : string
return string
Ejemplo n.º 1
0
 /// <summary>
 ///     Handles Button Clicks in the Cells for Browse/Delete/Add
 /// </summary>
 /// <param name="sender">Grid Form</param>
 /// <param name="e">DataGridViewCell Event Arguments</param>
 private void DGV_PackageRoot_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex < 0 || e.RowIndex < 0)
     {
         return;
     }
     if (DGV_PackageRoot.Columns[e.ColumnIndex].Name == "PackageRootBrowseButton")
     {
         string PathFolder = FilePicker.SelectFolder();
         if (PathFolder.Length > 1)
         {
             DGV_PackageRoot.Rows[e.RowIndex].Cells["PackageRootPath"].Value = PathFolder;
         }
         return;
     }
     if (DGV_PackageRoot.Columns[e.ColumnIndex].Name == "PackageRootDeleteButton")
     {
         if (DGV_PackageRoot.Rows.Count == 1)
         {
             MessageBox.Show("You cannot remove all entries from the Package Roots. You must have at least 1");
             return;
         }
         DialogResult result = MessageBox.Show(this, "Are you sure you want to delete this entry?", "Delete Package Root Entry", MessageBoxButtons.YesNo);
         if (result == DialogResult.Yes)
         {
             DGV_PackageRoot.Rows.RemoveAt(e.RowIndex);
         }
     }
     if (DGV_PackageRoot.Columns[e.ColumnIndex].Name == "PackageRootAddButton")
     {
         DGV_PackageRoot.Rows.Add();
     }
 }
Ejemplo n.º 2
0
 private void BTN_DataBackupSavePath_Click(object sender, EventArgs e)
 {
     TB_DataBackupPath.Text = FilePicker.SelectFolder();
     if (TB_DataBackupPath.Text.Length > 0)
     {
         Settings.Global.DataBackup["DataBackupPath"] = TB_DataBackupPath.Text;
     }
 }
Ejemplo n.º 3
0
 private void BTN_ECompileEditPathsScripts_Click(object sender, EventArgs e)
 {
     // We don't set the main TB's Text until Finished button is clicked.
     TB_ECompilePathsEditPolScriptRoot.Text = FilePicker.SelectFolder();
 }
Ejemplo n.º 4
0
 private void BTN_ECompileEditPathsIncludes_Click(object sender, EventArgs e)
 {
     // We don't set the main TB's Text until Finished button is clicked.
     TB_ECompilePathsEditIncludeDirectory.Text = FilePicker.SelectFolder();
 }
Ejemplo n.º 5
0
 private void BTN_MULBrowse_Click(object sender, EventArgs e)
 {
     TB_MULFilePath.Text = FilePicker.SelectFolder();
 }