static ToolBar() { jQuery.OnDocumentReady(delegate() { jQuery.Select("#beginning") .Plugin<ButtonObject>() .Button(new ButtonOptions(ButtonOption.Text, false, ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-seek-start"))); jQuery.Select("#rewind") .Plugin<ButtonObject>() .Button(new ButtonOptions(ButtonOption.Text, false, ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-seek-prev"))); jQuery.Select("#play") .Plugin<ButtonObject>() .Button(new ButtonOptions(ButtonOption.Text, false, ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-play"))) .Click(new jQueryEventHandler(delegate(jQueryEvent e) { ButtonOptions options; if (jQuery.This.GetText() == "play") { options = new ButtonOptions(ButtonOption.Label, "pause", ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-pause")); } else { options = new ButtonOptions(ButtonOption.Label, "play", ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-play")); } jQuery.This .Plugin<ButtonObject>() .Button(ButtonMethod.Option, options); })); jQuery.Select("#stop") .Plugin<ButtonObject>() .Button(new ButtonOptions(ButtonOption.Text, false, ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-stop"))) .Click(new jQueryEventHandler(delegate(jQueryEvent e) { jQuery.Select("#play") .Plugin<ButtonObject>() .Button(ButtonMethod.Option, new ButtonOptions(ButtonOption.Label, "play", ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-play"))); })); jQuery.Select("#forward") .Plugin<ButtonObject>() .Button(new ButtonOptions(ButtonOption.Text, false, ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-seek-nex"))); jQuery.Select("#end") .Plugin<ButtonObject>() .Button(new ButtonOptions(ButtonOption.Text, false, ButtonOption.Icons, new ButtonOptions("primary", "ui-icon-seek-end"))); jQuery.Select("#shuffle") .Plugin<ButtonObject>() .Button(); jQuery.Select("#repeat") .Plugin<ButtonSetObject>() .ButtonSet(); }); }
public static ButtonObject Button(this jQueryObject q, ButtonOptions options) { return null; }
public ButtonObject Button(ButtonOptions options) { return null; }
public ButtonObject Button(ButtonOptions options) { return(null); }
public static ButtonObject Button(this jQueryObject q, ButtonOptions options) { return(null); }