當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。