Exemplo n.º 1
0
        private void LaunchFolderChangeDlg()
        {
            FolderChangeDialog dialog = new FolderChangeDialog(path);

            if (dialog.ShowDialog(Program.MainWindow) == DialogResult.OK)
            {
                Folder _selectedFolder = dialog.CurrentFolder;
                path = (_selectedFolder == null ? "" : Folders.AppendPath(_selectedFolder.Path, _selectedFolder.ToString()));
                OnPathChanged();
            }
        }
Exemplo n.º 2
0
        private void LaunchFolderChangeDlg()
        {
            using (var dialog = new FolderChangeDialog(path))
                if (dialog.ShowDialog(Program.MainWindow) == DialogResult.OK)
                {
                    if (!dialog.FolderChanged)
                    {
                        return;
                    }

                    Folder selectedFolder = dialog.CurrentFolder;

                    path = selectedFolder == null
                        ? string.Empty
                        : Folders.AppendPath(selectedFolder.Path, selectedFolder.ToString());

                    OnPathChanged();
                }
        }