private void button5_Click(object sender, EventArgs e) { // Show them the loading box. loadProject lp = new loadProject(); lp.Show(); // Get us a new FolderBrowserDialog CommonOpenFileDialog fb = new CommonOpenFileDialog(); fb.IsFolderPicker = true; fb.Title = "Please select the directory that WAMP resides in."; fb.EnsurePathExists = true; CommonFileDialogResult rs = fb.ShowDialog(); if (rs == CommonFileDialogResult.Cancel) { return; } // Get the path. string dir = fb.FileName; wampPath.Text = dir; }
public static void bootstrapLoad(string dir) { // Show a loadProject dialog. loadProject lp = new loadProject(); lp.Show(); // Load the project. bool stat = lp.openProjDir(dir); // Check the status. if (stat == false) MessageBox.Show("An error occured while loading the project.", "Loading project", MessageBoxButtons.OK, MessageBoxIcon.Error); // Close the loadProject dialog. lp.Close(); }
public static void bootstrapLoad(string dir) { // Show a loadProject dialog. loadProject lp = new loadProject(); lp.Show(); // Load the project. bool stat = lp.openProjDir(dir); // Check the status. if (stat == false) { MessageBox.Show("An error occured while loading the project.", "Loading project", MessageBoxButtons.OK, MessageBoxIcon.Error); } // Close the loadProject dialog. lp.Close(); }
private void button5_Click(object sender, EventArgs e) { // Show them the loading box. loadProject lp = new loadProject(); lp.Show(); // Get us a new FolderBrowserDialog CommonOpenFileDialog fb = new CommonOpenFileDialog(); fb.IsFolderPicker = true; fb.Title = "Please select the directory that WAMP resides in."; fb.EnsurePathExists = true; CommonFileDialogResult rs = fb.ShowDialog(); if (rs == CommonFileDialogResult.Cancel) return; // Get the path. string dir = fb.FileName; wampPath.Text = dir; }