Archive for January, 2011

Posted by kent at 22 January 2011

Category: Dev, Tip

Tags: , , ,

This code will open Explorer and select the file or folder given.

static void openInExplorer(string path)
{
    string cmd = "explorer.exe";
    string arg = "/select " + path;
    Process.Start(cmd, arg);
}
VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
Share

Posted by kent at 3 January 2011

Category: Dev

Tags: , , , , ,

static public List<foldersRow> getParentFolders(foldersRow parent)
{
    return (from p in m_Fildb.folders.Where( _p => _p.parent_folder_id == parent.folder_id) select p).ToList();
}

This returns a strongly typed List of type foldersRow.

VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
Share