当前位置: 首页>>代码示例>>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;未经允许,请勿转载。