/// <summary> /// Gets new Save As file name via common dialog /// </summary> /// <returns></returns> private string getNewFileName() { SaveFileDialog m_saveFileDialog = new SaveFileDialog(); m_saveFileDialog.Title = "Save Test Properties"; m_saveFileDialog.InitialDirectory = TestProperties.ExpandString(TestProperties.GetPropertyValueAsString("TestProperties")); m_saveFileDialog.RestoreDirectory = true; m_saveFileDialog.Filter = "Test properties (*.props)|*.props"; m_saveFileDialog.FilterIndex = 1; DialogResult result = m_saveFileDialog.ShowDialog(); return(m_saveFileDialog.FileName); }