Ejemplo n.º 1
0
        private void AddLibPath_Click(object sender, EventArgs e)
        {
            string?libraryPath = WindowsUtility.SelectFolder(this, "Add Library Path", null);

            if (libraryPath.IsNotEmpty())
            {
                this.AppendOption("/lib:", libraryPath);
            }
        }
Ejemplo n.º 2
0
        private void GetDirectory(TextBox edit, string title)
        {
            string selectedFolder = WindowsUtility.SelectFolder(this, title, edit.Text);

            if (!string.IsNullOrEmpty(selectedFolder))
            {
                edit.Text = selectedFolder;
            }
        }
Ejemplo n.º 3
0
        private void SelectLogFolderClicked(object sender, RoutedEventArgs e)
        {
            string folder = WindowsUtility.SelectFolder(this, "Select Log Folder", this.LogFolder);

            if (!string.IsNullOrEmpty(folder))
            {
                this.logFolder.Text = folder;
            }
        }
Ejemplo n.º 4
0
        private void ChoosePath_Click(object sender, System.EventArgs e)
        {
            string selectedPath = WindowsUtility.SelectFolder(this, "Select a directory or drive:", null);

            if (!string.IsNullOrEmpty(selectedPath))
            {
                this.PopulateTree(selectedPath);
            }
        }
Ejemplo n.º 5
0
        private void SelectWorkingDirectory_Click(object sender, EventArgs e)
        {
            string initialFolder  = Manager.ExpandVariables(this.edtWorkingDirectory.Text);
            string?selectedFolder = WindowsUtility.SelectFolder(this, "Select Working Directory", initialFolder);

            if (selectedFolder.IsNotEmpty())
            {
                this.edtWorkingDirectory.Text = Manager.CollapseVariables(selectedFolder);
            }
        }