예제 #1
0
        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;
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        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;
        }