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


C# WebControls.ListViewPoker类代码示例

本文整理汇总了C#中MonoTests.System.Web.UI.WebControls.ListViewPoker的典型用法代码示例。如果您正苦于以下问题:C# ListViewPoker类的具体用法?C# ListViewPoker怎么用?C# ListViewPoker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ListViewPoker类属于MonoTests.System.Web.UI.WebControls命名空间,在下文中一共展示了ListViewPoker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ListView_AccessKey

		public void ListView_AccessKey ()
		{
			var lvp = new ListViewPoker ();
			lvp.AccessKey = String.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例2: ListView_FindPlaceholder

		public void ListView_FindPlaceholder ()
		{
			var lvp = new ListViewPoker ();
			Control control;

			control = lvp.DoFindPlaceholder ("somePlaceholder", lvp);
			Assert.IsTrue (control == null, "#A1");

			control = lvp.DoFindPlaceholder (null, lvp);
			Assert.IsTrue (control == null, "#A2");
			
			control = lvp.DoFindPlaceholder (String.Empty, lvp);
			Assert.IsTrue (control == null, "#A3");

			lvp.LayoutTemplate = new TestTemplate ();
			lvp.DoEnsureLayoutTemplate ();
			control = lvp.DoFindPlaceholder ("TestTemplateControl", lvp);
			Assert.IsFalse (control == null, "#B1");
			Assert.AreEqual ("TestTemplateControl", control.ID, "#B2");
			control = lvp.DoFindPlaceholder ("DoesNotExist", lvp);
			Assert.IsTrue (control == null, "#B3");
			
			lvp = new ListViewPoker ();
			lvp.LayoutTemplate = new DeepTestTemplate ();
			lvp.DoEnsureLayoutTemplate ();
			control = lvp.DoFindPlaceholder ("DeepTestTemplateControl", lvp);
			Assert.IsFalse (control == null, "#C1");
			Assert.AreEqual ("DeepTestTemplateControl", control.ID, "#C2");
			control = lvp.DoFindPlaceholder ("DoesNotExist", lvp);
			Assert.IsTrue (control == null, "#C3");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:31,代码来源:ListViewTest.cs

示例3: DoInstantiateContainerNullCall

		void DoInstantiateContainerNullCall (ListViewItemTemplate whichTemplate)
		{
			var lvp = new ListViewPoker ();
			var template = new TestTemplate ();

			switch (whichTemplate) {
				case ListViewItemTemplate.EmptyData:
					lvp.EmptyDataTemplate = template;
					lvp.DoInstantiateEmptyDataTemplate (null);
					break;

				case ListViewItemTemplate.EmptyItem:
					lvp.EmptyItemTemplate = template;
					lvp.DoInstantiateEmptyItemTemplate (null);
					break;

				case ListViewItemTemplate.GroupSeparator:
					lvp.GroupSeparatorTemplate = template;
					lvp.DoInstantiateGroupSeparatorTemplate (null);
					break;

				case ListViewItemTemplate.Group:
					lvp.GroupTemplate = template;
					lvp.DoInstantiateGroupTemplate (null);
					break;

				case ListViewItemTemplate.InsertItem:
					lvp.InsertItemTemplate = template;
					lvp.DoInstantiateInsertItemTemplate (null);
					break;

				case ListViewItemTemplate.ItemSeparator:
					lvp.ItemSeparatorTemplate = template;
					lvp.DoInstantiateItemSeparatorTemplate (null);
					break;
					
				case ListViewItemTemplate.Item:
					lvp.ItemTemplate = template;
					lvp.DoInstantiateItemTemplate (null, 0);
					break;
					
				case ListViewItemTemplate.EditItem:
					lvp.EditItemTemplate = template;
					lvp.ItemTemplate = template;
					lvp.DoInstantiateItemTemplate (null, 0);
					break;
					
				case ListViewItemTemplate.AlternatingItem:
					lvp.AlternatingItemTemplate = template;
					lvp.ItemTemplate = template;
					lvp.DoInstantiateItemTemplate (null, 0);
					break;
					
				case ListViewItemTemplate.SelectedItem:
					lvp.SelectedItemTemplate = template;
					lvp.ItemTemplate = template;
					lvp.DoInstantiateItemTemplate (null, 0);
					break;

				default:
					throw new NotSupportedException ("Unsupported ListView item type.");
			}
		}
开发者ID:Profit0004,项目名称:mono,代码行数:63,代码来源:ListViewTest.cs

示例4: ListView_CreateInsertItem_NoInsertItemTemplate

		public void ListView_CreateInsertItem_NoInsertItemTemplate ()
		{
			var lvp = new ListViewPoker ();
			ListViewItem item = lvp.DoCreateInsertItem ();
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例5: ListView_CreateItem

		public void ListView_CreateItem ()
		{
			var events = new EventRecorder ();
			var lvp = new ListViewPoker (events);
			ListViewItem item;

			item = lvp.DoCreateItem (ListViewItemType.DataItem);
			Assert.IsFalse (item == null, "#A1");
			Assert.AreEqual (ListViewItemType.DataItem, item.ItemType, "#A2");
			Assert.AreEqual (typeof (ListViewItem), item.GetType (), "#A3");

			Assert.AreEqual (0, events.Count, "#B1");
			
			item = lvp.DoCreateItem (ListViewItemType.InsertItem);
			Assert.IsFalse (item == null, "#C1");
			Assert.AreEqual (ListViewItemType.InsertItem, item.ItemType, "#C2");
			Assert.AreEqual (typeof (ListViewItem), item.GetType (), "#C3");

			item = lvp.DoCreateItem (ListViewItemType.EmptyItem);
			Assert.IsFalse (item == null, "#D1");
			Assert.AreEqual (ListViewItemType.EmptyItem, item.ItemType, "#D2");
			Assert.AreEqual (typeof (ListViewItem), item.GetType (), "#D3");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:23,代码来源:ListViewTest.cs

示例6: ListView_CreateControlStyle

		public void ListView_CreateControlStyle ()
		{
			var lvp = new ListViewPoker ();
			lvp.DoCreateControlStyle ();
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例7: ListView_CreateDataSourceSelectArguments

		public void ListView_CreateDataSourceSelectArguments ()
		{
			var lvp = new ListViewPoker ();
			DataSourceSelectArguments args = lvp.DoCreateDataSourceSelectArguments ();

			Assert.IsTrue (args != null, "#A1");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:7,代码来源:ListViewTest.cs

示例8: ListView_Height

		public void ListView_Height ()
		{
			var lvp = new ListViewPoker ();
			lvp.Height = Unit.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例9: ListView_ToolTip

		public void ListView_ToolTip ()
		{
			var lvp = new ListViewPoker ();
			lvp.ToolTip = String.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例10: ListView_Font

		public void ListView_Font ()
		{
			var lvp = new ListViewPoker ();
			lvp.Font.Bold = true;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例11: ListView_ForeColor

		public void ListView_ForeColor ()
		{
			var lvp = new ListViewPoker ();
			lvp.ForeColor = Color.White;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例12: ListView_CssClass

		public void ListView_CssClass ()
		{
			var lvp = new ListViewPoker ();
			lvp.CssClass = String.Empty;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例13: ListView_BorderStyle

		public void ListView_BorderStyle ()
		{
			var lvp = new ListViewPoker ();
			lvp.BorderStyle = BorderStyle.NotSet;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例14: ListView_BorderColor

		public void ListView_BorderColor ()
		{
			var lvp = new ListViewPoker ();
			lvp.BorderColor = Color.White;
		}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:ListViewTest.cs

示例15: ListView_AddControlToContainer_NullContainer

		public void ListView_AddControlToContainer_NullContainer ()
		{
			var lvp = new ListViewPoker ();
			Control container = new Control ();
			Control control = new Control ();
			control.ID = "TestControl";
			
			lvp.DoAddControlToContainer (control, null, 0);
			Assert.AreEqual (0, container.Controls.Count, "#A2");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:10,代码来源:ListViewTest.cs


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