当前位置: 首页>>代码示例>>C#>>正文


C# PokerDetailsView.DoCreateAutoGeneratedRows方法代码示例

本文整理汇总了C#中PokerDetailsView.DoCreateAutoGeneratedRows方法的典型用法代码示例。如果您正苦于以下问题:C# PokerDetailsView.DoCreateAutoGeneratedRows方法的具体用法?C# PokerDetailsView.DoCreateAutoGeneratedRows怎么用?C# PokerDetailsView.DoCreateAutoGeneratedRows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PokerDetailsView的用法示例。


在下文中一共展示了PokerDetailsView.DoCreateAutoGeneratedRows方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DetailsView_CreateAutoGeneratedRows_Ex2

		public void DetailsView_CreateAutoGeneratedRows_Ex2 () {
			PokerDetailsView dv = new PokerDetailsView ();
			ICollection col = dv.DoCreateAutoGeneratedRows (new Object ());
		}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:4,代码来源:DetailsViewTest.cs

示例2: DetailsView_CreateAutoGeneratedRows

		public void DetailsView_CreateAutoGeneratedRows ()
		{
			PokerDetailsView dv = new PokerDetailsView ();			
			DataTable ds = TableObject.CreateDataTable ();
			dv.DataSource = ds;
			dv.DataBind ();			
			ICollection col = dv.DoCreateAutoGeneratedRows (dv.DataItem);
			Assert.AreEqual (typeof(ArrayList),col.GetType (),"CreateAutoGeneratedRowsType");
			Assert.AreEqual (3, col.Count , "CreateAutoGeneratedRowsCount");
			Assert.AreEqual (typeof (AutoGeneratedField), ((ArrayList) col)[0].GetType (), "AutoGeneratedRowType");
			Assert.AreEqual ("ID", ((ArrayList) col)[0].ToString (), "AutoGeneratedRowName1");
			Assert.AreEqual ("FName", ((AutoGeneratedField)((ArrayList) col)[1]).HeaderText, "AutoGeneratedRowName2");
			Assert.AreEqual ("LName", ((AutoGeneratedField) ((ArrayList) col)[2]).SortExpression , "AutoGeneratedRowName3");
			
		}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:15,代码来源:DetailsViewTest.cs

示例3: DetailsView_CreateAutoGeneratedRows2

		public void DetailsView_CreateAutoGeneratedRows2 ()
		{
			PokerDetailsView dv = new PokerDetailsView ();
			ICollection col = dv.DoCreateAutoGeneratedRows (new TestObject ());

			Assert.AreEqual (typeof (ArrayList), col.GetType (), "CreateAutoGeneratedRowsType");
			Assert.AreEqual (4, col.Count, "CreateAutoGeneratedRowsCount");
			Assert.AreEqual (typeof (AutoGeneratedField), ((ArrayList) col) [0].GetType (), "AutoGeneratedRowType");

			Assert.IsFalse (((AutoGeneratedField) ((ArrayList) col) [0]).ReadOnly, "AutoGeneratedRowReadOnly1");
			Assert.IsFalse (((AutoGeneratedField) ((ArrayList) col) [1]).ReadOnly, "AutoGeneratedRowReadOnly2");
			Assert.IsFalse (((AutoGeneratedField) ((ArrayList) col) [2]).ReadOnly, "AutoGeneratedRowReadOnly2");
			Assert.IsFalse (((AutoGeneratedField) ((ArrayList) col) [3]).ReadOnly, "AutoGeneratedRowReadOnly3");

			col = dv.DoCreateAutoGeneratedRows ("aaa");
			Assert.AreEqual (1, col.Count, "CreateAutoGeneratedRowsCount - IsBindableType");

			col = dv.DoCreateAutoGeneratedRows (null);
			Assert.AreEqual (null, col, "null");
		}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:20,代码来源:DetailsViewTest.cs


注:本文中的PokerDetailsView.DoCreateAutoGeneratedRows方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。