private void cmdGetBakPath_Click_1(object sender, EventArgs e) { if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { tBackupPath.Text = FolderBrowserDialog1.SelectedPath; } }
private void button1_Click(object sender, EventArgs e) { if (FolderBrowserDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { textBox1.Text = FolderBrowserDialog1.SelectedPath; } }
private void BrowseForElmaDir(object sender, EventArgs e) { FolderBrowserDialog1.Description = "Browse for Elasto Mania directory"; if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { if (Directory.Exists(FolderBrowserDialog1.SelectedPath + "\\Lev")) { LevTextBox.Text = FolderBrowserDialog1.SelectedPath + "\\Lev"; Global.AppSettings.General.LevelDirectory = LevTextBox.Text; _levelDirectoryChanged = true; } if (Directory.Exists(FolderBrowserDialog1.SelectedPath + "\\Rec")) { RecTextBox.Text = FolderBrowserDialog1.SelectedPath + "\\Rec"; Global.AppSettings.General.ReplayDirectory = RecTextBox.Text; } if (Directory.Exists(FolderBrowserDialog1.SelectedPath + "\\Lgr")) { LGRTextBox.Text = FolderBrowserDialog1.SelectedPath + "\\Lgr"; Global.AppSettings.General.LgrDirectory = LGRTextBox.Text; UpdateLgrDirsIfEmpty(); } } }
private void Button6_Click(object sender, EventArgs e) { if (FolderBrowserDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { saveAndLoadFolder.Text = FolderBrowserDialog1.SelectedPath; } }
string Welke_map() { string wm = Padn(""); FolderBrowserDialog1.ShowDialog(); wm = FolderBrowserDialog1.SelectedPath; return(wm); }
private void txtDuongDan_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { FolderBrowserDialog1.Description = "Chọn đường dẫn tới ổ D, E (trừ ổ hệ thống)"; if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { txtDuongDan.EditValue = FolderBrowserDialog1.SelectedPath.ToString(); } }
private void BtnSelectSource_Click(object sender, EventArgs e) { if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { TxtSourcePath.Text = FolderBrowserDialog1.SelectedPath; sourceDir = FolderBrowserDialog1.SelectedPath; } }
private void FolderButton_Click(object sender, EventArgs e) { if (FolderBrowserDialog1.ShowDialog(this) == DialogResult.OK) { FolderTextBox.Text = FolderBrowserDialog1.SelectedPath; WeHaveUnappliedChanges(); } }
private void btnSelectDest_Click(object sender, EventArgs e) { if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { TxtDestPath.Text = FolderBrowserDialog1.SelectedPath; destDir = FolderBrowserDialog1.SelectedPath; } }
/// <summary> /// ディレクトリパスを入手 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Click_SelectDir(object sender, EventArgs e) { DialogResult dialogResult = FolderBrowserDialog1.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) { Directory_TextBox.Text = FolderBrowserDialog1.SelectedPath; } }
public object fol(TextBox txt) { //On Error Resume Next VBConversions Warning: On Error Resume Next not supported in C# FolderBrowserDialog1.SelectedPath = ""; FolderBrowserDialog1.ShowDialog(); if (FolderBrowserDialog1.SelectedPath != "") { txt.Text = FolderBrowserDialog1.SelectedPath; } return null; }
private void Button2_Click(object sender, EventArgs e) { FolderBrowserDialog1.Description = "Select the folder where you want to place the files turned into Sims3Packs..."; if (txtDestinationFolder.Text != "") { FolderBrowserDialog1.SelectedPath = txtDestinationFolder.Text; } FolderBrowserDialog1.ShowDialog(); if (FolderBrowserDialog1.SelectedPath != "") { txtDestinationFolder.Text = FolderBrowserDialog1.SelectedPath; } }
private void BrowseReplayFolder(object sender, EventArgs e) { if (Directory.Exists(RecTextBox.Text)) { FolderBrowserDialog1.SelectedPath = RecTextBox.Text; } FolderBrowserDialog1.Description = "Browse for replay directory"; if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { RecTextBox.Text = FolderBrowserDialog1.SelectedPath + "\\"; Global.AppSettings.General.ReplayDirectory = RecTextBox.Text; } }
private void Button1_Click(object sender, EventArgs e) { FolderBrowserDialog1.Description = "Select the folder that contains your package files..."; if (txtSourceFolder.Text != "") { FolderBrowserDialog1.SelectedPath = txtSourceFolder.Text; } FolderBrowserDialog1.ShowDialog(); if (FolderBrowserDialog1.SelectedPath != "") { txtSourceFolder.Text = FolderBrowserDialog1.SelectedPath; } }
private void BrowseLgrFolder(object sender, EventArgs e) { if (Directory.Exists(LGRTextBox.Text)) { FolderBrowserDialog1.SelectedPath = LGRTextBox.Text; } FolderBrowserDialog1.Description = "Browse for LGR directory"; if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { LGRTextBox.Text = FolderBrowserDialog1.SelectedPath + "\\"; Global.AppSettings.General.LgrDirectory = LGRTextBox.Text; UpdateLgrDirsIfEmpty(); } }
private void BrowseLevelFolder(object sender, EventArgs e) { if (Directory.Exists(LevTextBox.Text)) { FolderBrowserDialog1.SelectedPath = LevTextBox.Text; } FolderBrowserDialog1.Description = "Browse for level directory"; if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { LevTextBox.Text = FolderBrowserDialog1.SelectedPath + "\\"; Global.AppSettings.General.LevelDirectory = LevTextBox.Text; _levelDirectoryChanged = true; } }
private void cmdBrowse_Click(object sender, EventArgs e) { FolderBrowserDialog1.Reset(); FolderBrowserDialog1.Description = "Select the folder for the Inputs"; FolderBrowserDialog1.SelectedPath = txtPathSelected.Text; FolderBrowserDialog1.ShowNewFolderButton = false; DialogResult FolderDialogResult = FolderBrowserDialog1.ShowDialog(); if (FolderDialogResult == System.Windows.Forms.DialogResult.OK) { txtPathSelected.Text = FolderBrowserDialog1.SelectedPath; } FolderBrowserDialog1.Dispose(); }
private void btnSetGSCLocation_Click(object sender, EventArgs e) { //Set the folder browser dialogue properties { FolderBrowserDialog1.Description = "Select the base directory of the GSC catalogue"; FolderBrowserDialog1.RootFolder = Environment.SpecialFolder.MyComputer; FolderBrowserDialog1.ShowNewFolderButton = false; } if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { Properties.Settings.Default.GSC_Location = FolderBrowserDialog1.SelectedPath; txtCSGLocation.Text = Properties.Settings.Default.GSC_Location; } }
private void btnBrowse_Click(System.Object sender, System.EventArgs e) { // Erase Main.aFiles lbFiles.Items.Clear(); Main.iNumberOfFilesToProcess = 0; FolderBrowserDialog1.SelectedPath = Main.sDocumentsFolder; FolderBrowserDialog1.Description = "Document folder containing files to process"; FolderBrowserDialog1.ShowDialog(); Main.sDocumentsFolder = FolderBrowserDialog1.SelectedPath; getFilesToPutInList(); displayFiles(); tbTotalNumberOfInputFilesToProcess.Text = lbFiles.Items.Count.ToString(); main.writeIniFile(); }
private void btnSelectFolder_Click(object sender, EventArgs e) { FolderBrowserDialog1.ShowNewFolderButton = false; if (txtStartingFolder.Text.Length > 0) { FolderBrowserDialog1.SelectedPath = txtStartingFolder.Text; } if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { txtStartingFolder.Text = FolderBrowserDialog1.SelectedPath; } }
private void btnSetFileLocation_Click(object sender, EventArgs e) { //Set the folder browser dialogue properties { FolderBrowserDialog1.Description = "Select the location for saving image files"; //FolderBrowserDialog1.ShowNewFolderButton = false; } if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { strFileLocation = FolderBrowserDialog1.SelectedPath; txtFileLocation.Text = strFileLocation; Properties.Settings.Default.strImgRunFileLocation = strFileLocation; } }
/// <summary> /// Function to open Folder browser dialog /// </summary> private void BrowseButton_Click(object sender, EventArgs e) { try { if (FolderBrowserDialog1.ShowDialog() == DialogResult.OK) { ItemListBox.Items.Add(FolderBrowserDialog1.SelectedPath); } } catch (Exception ex) { log.Error(ex, "BrowseButton_Click"); } }
private void AltSaveNowLocBrowseButton_Click(object sender, EventArgs e) { if (Directory.Exists(AltSaveNowLocTextBox.Text)) { FolderBrowserDialog1.SelectedPath = AltSaveNowLocTextBox.Text; } DialogResult result = FolderBrowserDialog1.ShowDialog(); if (!(result == DialogResult.Cancel || result == DialogResult.Abort)) { if (!string.IsNullOrEmpty(FolderBrowserDialog1.SelectedPath)) { AltSaveNowLocTextBox.Text = FolderBrowserDialog1.SelectedPath; } } }
private void Browse(TextBox obj) { if (Directory.Exists(obj.Text)) { FolderBrowserDialog1.SelectedPath = obj.Text; } DialogResult result = FolderBrowserDialog1.ShowDialog(); if ((result != DialogResult.Cancel || result == DialogResult.Abort)) { if (!string.IsNullOrEmpty(FolderBrowserDialog1.SelectedPath)) { lock (accessLock) { obj.Text = FolderBrowserDialog1.SelectedPath; } } } }
private void dlallBTN_Click(System.Object sender, System.EventArgs e) { if (availableshsh.Items.Item(0) == "None") { return; } FolderBrowserDialog1.ShowDialog(); if (string.IsNullOrEmpty(FolderBrowserDialog1.SelectedPath)) { return; } else { Label2.Text = "Downloading Blob(s)..."; Center_Label(Label2); spinny.Visible = true; availableshsh.Visible = false; dlblobBTN.Visible = false; dlallBTN.Visible = false; Delay(2); //Download ALL foreach (object blob_loopVariable in availableshsh.Items) { blob = blob_loopVariable; string Check = "http://iacqua.ih8sn0w.com/req.php?ecid=" + ECID + "&ios=" + blob.ToString().Replace(" ", "%20"); Uri CheckURI = new Uri(Check); dynamic clientCheck = new System.Net.WebClient(); //Headers.Add("user-agent", "iacqua/1.0-452") clientCheck.Headers.Add("user-agent", "iacqua/1.0-452"); clientCheck.DownloadFileAsync(CheckURI, FolderBrowserDialog1.SelectedPath + "\\" + ECID + "_" + blob.ToString() + "_cache.ifaith"); while (!(clientCheck.IsBusy == false)) { Delay(0.5); } } spinny.Visible = false; Label2.Text = "Available Blobs:"; Center_Label(Label2); availableshsh.Visible = true; dlallBTN.Visible = true; dlblobBTN.Visible = true; Interaction.MsgBox("SHSH Blob(s) downloaded!", MsgBoxStyle.Information); } }
private void MoveOrCopy(object sender, EventArgs e) { if (ObjectList.SelectedObjects.Count == 0) { Utils.ShowError(NoReplaysSelected); return; } var move = sender.Equals(MoveToToolStripMenuItem); FolderBrowserDialog1.Description = move ? "Move to..." : "Copy to..."; if (FolderBrowserDialog1.ShowDialog() != DialogResult.OK) { return; } foreach (var replay in TypedList.SelectedObjects) { try { var dest = Path.Combine(FolderBrowserDialog1.SelectedPath, replay.FileName); if (move) { FileSystem.MoveFile(replay.Path, dest, true); replay.Path = dest; } else { FileSystem.CopyFile(replay.Path, dest, true); } } catch (FileNotFoundException ex) { Utils.ShowError(ex.Message); } } }
void Button1_Click(object sender, System.EventArgs e) { FolderBrowserDialog1.ShowDialog(); Timer1.Enabled = true; }