public void newFileButton_Click(object sender, EventArgs e)
{
if (mSelectedNode != null)
{
string path = mSelectedNode.Tag != null ? JsonHelper.NormalizeSystemPath(mSelectedNode.Tag.ToString()) : null;
if (path != null)
{
saveEffectsFileDialog.InitialDirectory = System.IO.Path.GetDirectoryName(path);
}
}
else
{
saveEffectsFileDialog.InitialDirectory = System.IO.Path.GetFullPath(ModuleDataManager.GetInstance().ModsDirectoryPath);
}
saveEffectsFileDialog.ShowDialog();
saveEffectsFileDialog.RestoreDirectory = true;
}