Exemplo 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);
            }
        }
Exemplo 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;
            }
        }
Exemplo 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;
            }
        }
Exemplo 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);
            }
        }
Exemplo 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);
            }
        }