public SaveAs ( string newPath, ProtoCore runtimeCore, bool isBackup = false ) : bool | ||
newPath | string | The path to save to |
runtimeCore | ProtoCore | The |
isBackup | bool | Indicates whether saved workspace is backup or not. If it's not backup, /// we should add it to recent files. Otherwise leave it. |
return | bool |
public virtual bool SaveAs(string newPath, ProtoCore.RuntimeCore runtimeCore, bool isBackup = false)
{
if (String.IsNullOrEmpty(newPath)) return false;
Log(String.Format(Resources.SavingInProgress, newPath));
try
{
if (SaveInternal(newPath, runtimeCore) && !isBackup)
OnWorkspaceSaved();
}
catch (Exception ex)
{
//Log(ex);
Log(ex.Message);
Log(ex.StackTrace);
Debug.WriteLine(ex.Message + " : " + ex.StackTrace);
throw (ex);
}
return true;
}