本文整理汇总了C#中Status.getCode方法的典型用法代码示例。如果您正苦于以下问题:C# Status.getCode方法的具体用法?C# Status.getCode怎么用?C# Status.getCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Status
的用法示例。
在下文中一共展示了Status.getCode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Format
public void Format(AreaTree areaTree)
{
Status status = new Status(Status.OK);
this.layoutMasterSet.resetPageMasters();
int firstAvailPageNumber = 0;
do
{
firstAvailPageNumber = this.root.getRunningPageNumberCounter();
bool tempIsFirstPage = false;
if (thisIsFirstPage)
{
tempIsFirstPage = thisIsFirstPage;
if (pageNumberType == AUTO)
{
this.currentPageNumber =
this.root.getRunningPageNumberCounter();
}
else if (pageNumberType == AUTO_ODD)
{
this.currentPageNumber =
this.root.getRunningPageNumberCounter();
if (this.currentPageNumber % 2 == 1)
{
this.currentPageNumber++;
}
}
else if (pageNumberType == AUTO_EVEN)
{
this.currentPageNumber =
this.root.getRunningPageNumberCounter();
if (this.currentPageNumber % 2 == 0)
{
this.currentPageNumber++;
}
}
thisIsFirstPage = false;
}
this.currentPageNumber++;
bool isEmptyPage = false;
if ((status.getCode() == Status.FORCE_PAGE_BREAK_EVEN)
&& ((currentPageNumber % 2) == 1))
{
isEmptyPage = true;
}
else if ((status.getCode() == Status.FORCE_PAGE_BREAK_ODD)
&& ((currentPageNumber % 2) == 0))
{
isEmptyPage = true;
}
else
{
isEmptyPage = false;
}
currentPage = MakePage(areaTree, firstAvailPageNumber,
tempIsFirstPage, isEmptyPage);
currentPage.setNumber(this.currentPageNumber);
string formattedPageNumber =
pageNumberGenerator.makeFormattedPageNumber(this.currentPageNumber);
currentPage.setFormattedNumber(formattedPageNumber);
this.root.setRunningPageNumberCounter(this.currentPageNumber);
FonetDriver.ActiveDriver.FireFonetInfo(
"[" + currentPageNumber + "]");
if ((status.getCode() == Status.FORCE_PAGE_BREAK_EVEN)
&& ((currentPageNumber % 2) == 1)) { }
else if ((status.getCode() == Status.FORCE_PAGE_BREAK_ODD)
&& ((currentPageNumber % 2) == 0)) { }
else
{
BodyAreaContainer bodyArea = currentPage.getBody();
bodyArea.setIDReferences(areaTree.getIDReferences());
Flow.Flow flow = GetCurrentFlow(RegionBody.REGION_CLASS);
if (flow == null)
{
FonetDriver.ActiveDriver.FireFonetError(
"No flow found for region-body in page-master '" + currentPageMasterName + "'");
break;
}
else
{
status = flow.Layout(bodyArea);
}
}
currentPage.setPageSequence(this);
FormatStaticContent(areaTree);
areaTree.addPage(currentPage);
this.pageCount++;
//.........这里部分代码省略.........