protected void processWidgetEvent(Object sender, WidgetEventArgs e) { if (e.Type == SEWidgetEventType.AcceptInteger) { if (OnIntegerAccept != null) OnIntegerAccept(this, new IntegerAcceptArgs(this, int.Parse(e.Payload))); } }
protected void ProcessWidgetEvent(Object sender, WidgetEventArgs e) { if (e.Type == SEWidgetEventType.AcceptIndex) { int index = int.Parse(e.Payload); SEListItem item = (SEListItem) items[index]; item.Select(this); } }
protected void ProcessWidgetEvent(Object sender, WidgetEventArgs e) { if (e.Type == SEWidgetEventType.AcceptBoolean) { Console.WriteLine(e.Payload); if (OnAcceptBoolean != null) OnAcceptBoolean(this, new BooleanAcceptArgs(this, (e.Payload.Equals("1") ? true : false))); } }
protected void ProcessWidgetEvent(Object sender, WidgetEventArgs e) { if (e.Type == SEWidgetEventType.AcceptString) { // Remove " at beginning and end String load = e.Payload.Substring(1, e.Payload.Length - 2); if (OnStringAccept != null) OnStringAccept(this, new StringAcceptArgs(this, load)); } }
// Handles the "command" event from the client. private void ProcessCommandWebEvent(WidgetEventArgs e) { OnCommand(new CommandEventArgs(e.Data)); }
/// <summary> /// Fires the <see cref="E:Wisej.Web.Control.PolymerEvent" /> event. /// </summary> /// <param name="e">A <see cref="T:Wisej.Web.WidgetEventArgs" /> that contains the event data. </param> protected virtual void OnPolymerEvent(WidgetEventArgs e) { ((WidgetEventHandler)base.Events[nameof(PolymerEvent)])?.Invoke(this, e); }
private void Map_WidgetRemoved(object sender, WidgetEventArgs e) { Unselect(e.Widget); UpdateView(ChangeTypes.All); }
/// <summary> /// User clicked on a widget with the mouse /// </summary> /// <param name="sender">event sender</param> /// <param name="e">event args</param> private void widget_EvtMouseClicked(object sender, WidgetEventArgs e) { actuateWidget(e.SourceWidget.Name); }
/// <summary> /// Some setting changed. Set the dirty flag to indicate this /// </summary> /// <param name="sender">event sender</param> /// <param name="e">event args</param> private void widget_EvtValueChanged(object sender, WidgetEventArgs e) { _isDirty = true; }
protected void ProcessWidgetEvent(Object sender, WidgetEventArgs e) { Console.WriteLine("Type is " + e.Type); Console.WriteLine("Payload is " + e.Payload); }
private void _hScale_WidgetEvent(object o, WidgetEventArgs args) { GameWidget.GameWidgetOver.HeigthCell = (int)_hScale.Adjustment.Value; }
/// <summary> /// Triggered when the toggle button is actuated. Flip state /// and notify /// </summary> /// <param name="sender">event sender</param> /// <param name="e">event args</param> private void CheckBoxWidget_EvtActuated(object sender, WidgetEventArgs e) { SetToggleState(!_toggleState); notifyValueChanged(); }
#pragma warning restore 0169 //Disabling warning 0169 because this code will be called at //runtime with glade. #pragma warning disable 0169 private void OnWindowEvent(object sender, WidgetEventArgs args) { reloadToolButton.Sensitive = (measures != null); }
/// <summary> /// Handles clicks on the TagCloud /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void widgetTagCloud_WidgetEvent(object sender, WidgetEventArgs e) { AlertBox.Show("clicked on " + e.Data.url + ": " + e.Data.text); }
protected void Send(MenuInputButton button) { ListLayout.InputEvent(WidgetEventArgs.ButtonDown(button)); ListLayout.InputEvent(WidgetEventArgs.ButtonUp(button)); }
void FeatureEnabledCheckBoxToggled(object sender, WidgetEventArgs e) { changed = true; }
#pragma warning restore 0169 //Disabling warning 0169 because this code will be called at //runtime with glade. #pragma warning disable 0169 private void OnVBoxEvent(object sender, WidgetEventArgs args) { okButton.Sensitive = ValidateUpperLimit(); }
private void _btn3D_WidgetEvent(object o, WidgetEventArgs args) { GameWidget.GameWidgetOver.Is3D = _btn3D.Active; }