Smrf.NodeXL.ExcelTemplate.ConvertNodeXLWorkbookDialog.OtherToConvertedWorkbook C# (CSharp) Method

OtherToConvertedWorkbook() protected method

protected OtherToConvertedWorkbook ( String sOtherWorkbookFile ) : String
sOtherWorkbookFile String
return String
    OtherToConvertedWorkbook
    (
        String sOtherWorkbookFile
    )
    {
        AssertValid();

        if (
            String.IsNullOrEmpty(sOtherWorkbookFile)
            ||
            !File.Exists(sOtherWorkbookFile)
            )
        {
            return (String.Empty);
        }

        return (
            Path.Combine(
                Path.GetDirectoryName(sOtherWorkbookFile),
                Path.GetFileNameWithoutExtension(sOtherWorkbookFile)
                    + "-Copy"
                )
            + Path.GetExtension(sOtherWorkbookFile)
            );
    }