本文整理汇总了C#中PokerDetailsView.DoCreateRow方法的典型用法代码示例。如果您正苦于以下问题:C# PokerDetailsView.DoCreateRow方法的具体用法?C# PokerDetailsView.DoCreateRow怎么用?C# PokerDetailsView.DoCreateRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PokerDetailsView
的用法示例。
在下文中一共展示了PokerDetailsView.DoCreateRow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DetailsView_CreateRow
public void DetailsView_CreateRow ()
{
PokerDetailsView dv = new PokerDetailsView ();
DetailsViewRow row = dv.DoCreateRow (1, DataControlRowType.DataRow, DataControlRowState.Alternate);
Assert.AreEqual (1, row.RowIndex, "rowIndex1");
Assert.AreEqual (DataControlRowType.DataRow, row.RowType, "RowType1");
Assert.AreEqual (DataControlRowState.Alternate, row.RowState, "RowState1");
row = dv.DoCreateRow (2, DataControlRowType.Header, DataControlRowState.Insert);
Assert.AreEqual (2, row.RowIndex, "rowIndex2");
Assert.AreEqual (DataControlRowType.Header , row.RowType, "RowType2");
Assert.AreEqual (DataControlRowState.Insert , row.RowState, "RowState2");
row = dv.DoCreateRow (3, DataControlRowType.EmptyDataRow , DataControlRowState.Selected );
Assert.AreEqual (3, row.RowIndex, "rowIndex3");
Assert.AreEqual (DataControlRowType.EmptyDataRow , row.RowType, "RowType3");
Assert.AreEqual (DataControlRowState.Selected , row.RowState, "RowState3");
DetailsViewPagerRow pagerRow = (DetailsViewPagerRow )dv.DoCreateRow (5, DataControlRowType.Pager , DataControlRowState.Edit );
Assert.AreEqual (5, pagerRow.RowIndex, "rowIndex4");
Assert.AreEqual (DataControlRowType.Pager, pagerRow.RowType, "RowType4");
Assert.AreEqual (DataControlRowState.Edit, pagerRow.RowState, "RowState4");
}