private void OpenFileFrm_Load(object sender, EventArgs e)
        {
            string pwdResult =
                MFHelper.NormalizeString(
                    MFCommand.ExecuteCommand(
                        Program.Options.Commands.CurrentDirectory, ""));

            selectedFiles_.Clear();

            RefreshContent(pwdResult);
        }
        private bool IsDirectory(string p)
        {
            string fileName = p;

            if (!fileName.StartsWith("/"))
            {
                fileName = currentDirectory_ + "/" + fileName;
            }

            string content =
                MFCommand.ExecuteCommand(Program.Options.Commands.StatFiletype,
                                         fileName);

            return(content.Equals("directory"));
        }
        private void RefreshContent(string directory)
        {
            Cursor oldCursor = this.Cursor;

            this.Cursor = Cursors.WaitCursor;

            currentDirectory_ = directory;
            UpdateCurrentDirectory();

            string content =
                MFCommand.ExecuteCommand(Program.Options.Commands.ListFiles,
                                         currentDirectory_);

            ParseContent(content);

            this.Cursor = oldCursor;
        }