public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
// ExStart:ChangeGanttBarsColorGradient
Project project = new Project(dataDir + "Project2.mpp");
SaveOptions options = new XamlOptions();
options.UseGradientBrush = false;
project.Save(dataDir + "ChangeGanttBarsColorGradient_Solid_out.xaml", options);
options.UseGradientBrush = true;
project.Save(dataDir + "ChangeGanttBarsColorGradient_Gradient_out.xaml", options);
// ExEnd:ChangeGanttBarsColorGradient
}
}