當前位置: 首頁>>代碼示例>>C#>>正文


C# UI.DomEvent類代碼示例

本文整理匯總了C#中Sys.UI.DomEvent的典型用法代碼示例。如果您正苦於以下問題:C# DomEvent類的具體用法?C# DomEvent怎麽用?C# DomEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DomEvent類屬於Sys.UI命名空間,在下文中一共展示了DomEvent類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: addTagButtonClick

		private void addTagButtonClick(DomEvent e)
		{
			e.PreventDefault();

			addTag(view.uiTagAutoSuggest.Text);
			view.uiTagAutoSuggest.Text = "";
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:7,代碼來源:Controller.cs

示例2: OnBlur

		private void OnBlur(DomEvent e)
		{
			if (GetDate() == null)
			{
				this.view.TextBox.Value = "";
			}
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:7,代碼來源:Controller.cs

示例3: OnContainerKeyDown

		private void OnContainerKeyDown(DomEvent e)
		{
			if (e.KeyCode == (int) Key.Esc)
			{
				EventChosen(null);
			}
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:7,代碼來源:Controller.cs

示例4: button2Click

		public void button2Click(DomEvent e)
		{
			e.PreventDefault();

			FB.api(
				F.d("method", "fql.query", "query", "SELECT type, created_time FROM page_fan WHERE page_id=\"18658586341\" AND uid=\"" + CurrentFacebookUID + "\""),
				new Response(
					delegate(Dictionary likeFqlResponse)
					{

						debug(U.toString(likeFqlResponse));

						//if (U.exists(likeFqlResponse, "/value/type"))
						//{
						//    JQueryAPI.JQuery(View.ConnectDialog).dialog("close");
						//}
						//else
						//{
						//    changePanel("View.Connect_LikeButtonPanel");
						//    FB.Event.subscribe(
						//        "edge.create",
						//        new Response(
						//            delegate(Dictionary edgeCreateResponse)
						//            {
						//                JQueryAPI.JQuery(View.ConnectDialog).dialog("close");
						//            }
						//        )
						//    );
						//}
					}
				)
			);

			
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:35,代碼來源:Controller.cs

示例5: button1Click

		public void button1Click(DomEvent e)
		{
			e.PreventDefault();
			debug("click!");

			FB.getLoginStatus(
				new Response(
					delegate(Dictionary statusResponse)
					{
						updateCurrentFacebookLoginStatus(statusResponse);
					}
				)
			);

			FB.Event.subscribe(
				"edge.create",
				new Response(
					delegate(Dictionary edgeCreateResponse)
					{
						debug("edge.create");
					}
				)
			);

		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:25,代碼來源:Controller.cs

示例6: OnKeyDown

		private void OnKeyDown(DomEvent e)
		{
			if ("ABCDEFGHIJKLMNOPQRSTUVWXYZ,.;#[]".IndexOf(String.FromCharCode(e.KeyCode)) > -1)
			{
				e.PreventDefault();
			}
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:7,代碼來源:Controller.cs

示例7: OnAddNearbyClick

		private void OnAddNearbyClick(DomEvent e)
		{
			try
			{
				Service.GetSurroundingPlaces
					(
					int.ParseInvariant(this.view.uiRadiusPlaceAutoComplete.Value),
					int.ParseInvariant(this.view.uiNumberOfSurroundingTownsDropDown.Value),
					delegate(PlaceStub[] result, object context, string name)
					{
						for (int i = 0; i < result.Length; i++)
						{
							this.view.uiPlacesMultiSelector.AddItem(result[i].name, result[i].k.ToString());
						}
						this.view.uiRadiusPlaceAutoComplete.Clear();
					},
					Trace.WebServiceFailure,
					null,
					5000
					);
				
			}catch(Exception)
			{
				
			}
			e.PreventDefault();
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:27,代碼來源:Controller.cs

示例8: OnMouseDown

		private void OnMouseDown(DomEvent e)
		{
			EventCreatorController.Instance.ShowPopup(
				this.EventInfo == null ? null : this.EventInfo.date,
				this.EventInfo == null ? null : this.EventInfo.venueInfo,
				this.EventInfo == null ? null : this.EventInfo.name,
				OnEventCreated);
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:8,代碼來源:Controller.cs

示例9: OnKeyDown

		private void OnKeyDown(DomEvent e)
		{
			if ((Key)e.KeyCode == Key.Backspace || (Key)e.KeyCode == Key.Del)
			{
				this.EventInfo = null;
				this.view.uiEventDisplayDiv.InnerHTML = "";
			}
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:8,代碼來源:Controller.cs

示例10: HandleClick

 public static void HandleClick(AnchorElement anchor, DomEvent evt, AjaxOptions ajaxOptions) {
     evt.PreventDefault();
     MvcHelpers.AsyncRequest(anchor.Href,
                             "post",
                             "",
                             anchor,
                             ajaxOptions);
 }
開發者ID:sanyaade-mobiledev,項目名稱:ASP.NET-Mvc-2,代碼行數:8,代碼來源:AsyncHyperlink.cs

示例11: OnFocus

		public void OnFocus(DomEvent ev)
		{
			Window.ClearTimeout(timeoutId);
			if (el.Value == watermark)
			{
				el.ClassName = "";
				el.Value = "";
			}
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:9,代碼來源:WatermarkExtender.cs

示例12: HandleSubmit

        public static void HandleSubmit(FormElement form, DomEvent evt, AjaxOptions ajaxOptions) {
            evt.PreventDefault();
            string body = MvcHelpers.SerializeForm(form);
            MvcHelpers.AsyncRequest(form.Action, 
                                    form.Method ?? "post",
                                    body,
                                    form,
                                    ajaxOptions);

        }
開發者ID:sanyaade-mobiledev,項目名稱:ASP.NET-Mvc-2,代碼行數:10,代碼來源:AsyncForm.cs

示例13: AutoCompleteQueryGroupClick

		private void AutoCompleteQueryGroupClick(DomEvent e)
		{
			if (this.view.uiJustBuddiesRadio.Checked)
			{
				this.view.uiBuddyMultiSelector.HtmlAutoComplete.SetWebMethod("GetBuddies");
			}
			else
			{
				this.view.uiBuddyMultiSelector.HtmlAutoComplete.SetWebMethod("GetBuddiesThenUsrs");
			}
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:11,代碼來源:Controller.cs

示例14: advancedCheckBoxClicked

		private void advancedCheckBoxClicked(DomEvent e)
		{
			// don't e.PreventDefault();
			Login.WhenLoggedIn(
				new Action(
					delegate()
					{
						view.AddThreadAdvancedPanel.Style.Display = view.AddThreadAdvancedCheckBox.Checked ? "" : "none";
					}
				)
			);
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:12,代碼來源:Controller.cs

示例15: galleryChanged

		void galleryChanged(DomEvent e)
		{
			for (int i = 0; i < view.uiCurrentGallery.ChildNodes.Length; i++)
			{
				if (((OptionElement)view.uiCurrentGallery.ChildNodes[i]).Selected)
				{
					int galleryK = int.ParseInvariant(((OptionElement)view.uiCurrentGallery.ChildNodes[i]).Value);
					((EventPhotoProvider)PhotoProvider).setGallery(galleryK);
					view.uiPhotoControl.IsGallerySelectedChanged(galleryK > 0);
					view.uiPhotoBrowser.SelectedIndex = 0;
					PhotoBrowser.PaginationControl.CurrentPage = 1;
				}
			}
		}
開發者ID:davelondon,項目名稱:dontstayin,代碼行數:14,代碼來源:Controller.cs


注:本文中的Sys.UI.DomEvent類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。