Look in Microsoft.Win32
namespace
OpenFileDialog openDialog = new OpenFileDialog();
if (openDialog.ShowDialog().Value)
{
..........
}
And the same for SaveFileDialog
SaveFileDialog saveDialog = new SaveFileDialog();
if (saveDialog.ShowDialog().Value)
{
..........
}