Aspose.Tasks.Examples.CSharp.WorkingWithProjects.ReadHeaderFooterInfo.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);

            // Create project and project info instances
            Project project = new Project(dataDir + "Blank2010.mpp");
            PageInfo info = project.DefaultView.PageInfo;

            Console.WriteLine("Page data cannot be null : {0} ", !info.Equals(null));

            if (info != null)
            {                
                AssertHeaderFooterCorrect(info);
                AssertPageSettingsCorrect(info);
                AssertPageViewSettingsCorrect(info);
                AssertMarginsCorrect(info);
                AssertLegendCorrect(info);
            }
         
        }