本文整理汇总了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 = "";
}
示例2: OnBlur
private void OnBlur(DomEvent e)
{
if (GetDate() == null)
{
this.view.TextBox.Value = "";
}
}
示例3: OnContainerKeyDown
private void OnContainerKeyDown(DomEvent e)
{
if (e.KeyCode == (int) Key.Esc)
{
EventChosen(null);
}
}
示例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");
// }
// )
// );
//}
}
)
);
}
示例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");
}
)
);
}
示例6: OnKeyDown
private void OnKeyDown(DomEvent e)
{
if ("ABCDEFGHIJKLMNOPQRSTUVWXYZ,.;#[]".IndexOf(String.FromCharCode(e.KeyCode)) > -1)
{
e.PreventDefault();
}
}
示例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();
}
示例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);
}
示例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 = "";
}
}
示例10: HandleClick
public static void HandleClick(AnchorElement anchor, DomEvent evt, AjaxOptions ajaxOptions) {
evt.PreventDefault();
MvcHelpers.AsyncRequest(anchor.Href,
"post",
"",
anchor,
ajaxOptions);
}
示例11: OnFocus
public void OnFocus(DomEvent ev)
{
Window.ClearTimeout(timeoutId);
if (el.Value == watermark)
{
el.ClassName = "";
el.Value = "";
}
}
示例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);
}
示例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");
}
}
示例14: advancedCheckBoxClicked
private void advancedCheckBoxClicked(DomEvent e)
{
// don't e.PreventDefault();
Login.WhenLoggedIn(
new Action(
delegate()
{
view.AddThreadAdvancedPanel.Style.Display = view.AddThreadAdvancedCheckBox.Checked ? "" : "none";
}
)
);
}
示例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;
}
}
}