• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# UI.DomEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



DomEvent类属于Sys.UI命名空间,在下文中一共展示了DomEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: ItemMouseEnterHandler

		private void ItemMouseEnterHandler(DomEvent e)
		{
			DOMElement el = e.Target;
			while (el.ParentNode != container)
			{
				el = el.ParentNode;
			}
			for (int i=0;i<container.ChildNodes.Length;i++)
			{
				if (container.ChildNodes[i] == el)
				{
					IndexOfCurrentlyHighlightedItem = i;
					return;
				}
			}
		}
开发者ID:davelondon,项目名称:dontstayin,代码行数:16,代码来源:PopupMenu.cs


示例17: OnAddClick

		private void OnAddClick(DomEvent e)
		{
			int[] brands = new int[]{};
			if (view.uiBrand.Value.Length > 0)
			{
				brands[0] = int.ParseInvariant(view.uiBrand.Value);
			}
			Service.AddEvent(
					view.uiCal.GetDate(),
					view.uiVenueGetter.GetVenue().k,
					view.uiEventName.Text,
					view.uiSummary.Value,
					brands,
					AddEventSuccess,
					Trace.WebServiceFailure,
					null,
					5000);
			e.PreventDefault();
		}
开发者ID:davelondon,项目名称:dontstayin,代码行数:19,代码来源:Controller.cs


示例18: photoClick

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

			for (int i = 0; i < cells.Length; i++)
			{
				//                                  Image  Div(?)     TableCell
				if (cells[i] == (TableCellElement)e.Target.ParentNode.ParentNode)
				{
					SelectedIndex = i;
					break;
				}
			}

			highlightCell();

			if (OnChangePhoto != null)
				OnChangePhoto(this, new IntEventArgs(SelectedIndex));

		}
开发者ID:davelondon,项目名称:dontstayin,代码行数:20,代码来源:Controller.cs


示例19: KeyDown

		protected void KeyDown(DomEvent e)
		{
			if (e.KeyCode == (int)Key.Right)
			{
				if (OnArrowKeyPress != null)
					OnArrowKeyPress(this, EventArgs.Empty);
				if (OnPhotoNextClick != null)
					OnPhotoNextClick(this, EventArgs.Empty);
				e.PreventDefault();
			}
			else if (e.KeyCode == (int)Key.Left)
			{
				if (OnArrowKeyPress != null)
					OnArrowKeyPress(this, EventArgs.Empty); 
				if (OnPhotoPrevClick != null)
					OnPhotoPrevClick(this, EventArgs.Empty);
				e.PreventDefault();
			}
			//else if (e.KeyCode == (int)Key.Up)
			//{
			//    if (OnArrowKeyPress != null)
			//        OnArrowKeyPress(this, EventArgs.Empty);
			//    if (OnPhotoUpClick != null)
			//        OnPhotoUpClick(this, EventArgs.Empty);
			//    e.PreventDefault();
			//}
			//else if (e.KeyCode == (int)Key.Down)
			//{
			//    if (OnArrowKeyPress != null)
			//        OnArrowKeyPress(this, EventArgs.Empty);
			//    if (OnPhotoDownClick != null)
			//        OnPhotoDownClick(this, EventArgs.Empty);
			//    e.PreventDefault();
			//}
			else
			{
				NonArrowKeyDown(e);
			}
		}
开发者ID:davelondon,项目名称:dontstayin,代码行数:39,代码来源:PhotoBrowsingUsingKeysControl.cs


示例20: HandleSubmit

        public static void HandleSubmit(FormElement form, DomEvent evt, AjaxOptions ajaxOptions) {
            evt.PreventDefault();

            // run validation
            ArrayList validationCallbacks = (ArrayList)Type.GetField(form, "validationCallbacks");
            if (validationCallbacks != null) {
                for (int i = 0; i < validationCallbacks.Length; i++) {
                    ValidationCallback callback = (ValidationCallback)validationCallbacks[i];
                    if (!callback()) {
                        return; // bail out since validation failed
                    }
                }
            }

            string body = MvcHelpers.SerializeForm(form);
            MvcHelpers.AsyncRequest(form.Action, 
                                    form.Method ?? "post",
                                    body,
                                    form,
                                    ajaxOptions);

        }
开发者ID:adrianvallejo,项目名称:MVC3_Source,代码行数:22,代码来源:AsyncForm.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# System.Action类代码示例发布时间:2022-05-26
下一篇:
C# DataRequests.DataObjectSimpleQueryRequest类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap