Aspose.Tasks.Examples.CSharp.WorkingWithCurrencies.SetCurrencyCodes.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:SetCurrencyCodes
            // Create new project and set currency code
            Project project1 = new Project();            
            project1.Set(Prj.CurrencyCode, "USD");
            // ExEnd:SetCurrencyCodes

            // Save project as XML
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
            project1.Save(dataDir + "project_CurrencyCodes_out.xml", SaveFileFormat.XML);
        }
    }
SetCurrencyCodes