Exemplo n.º 1
0
 protected void processWidgetEvent(Object sender, WidgetEventArgs e)
 {
     if (e.Type == SEWidgetEventType.AcceptInteger) {
         if (OnIntegerAccept != null)
             OnIntegerAccept(this, new IntegerAcceptArgs(this, int.Parse(e.Payload)));
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 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));
     }
 }
Exemplo n.º 5
0
 // Handles the "command" event from the client.
 private void ProcessCommandWebEvent(WidgetEventArgs e)
 {
     OnCommand(new CommandEventArgs(e.Data));
 }
Exemplo n.º 6
0
 /// <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);
 }
Exemplo n.º 7
0
 private void Map_WidgetRemoved(object sender, WidgetEventArgs e)
 {
     Unselect(e.Widget);
     UpdateView(ChangeTypes.All);
 }
Exemplo n.º 8
0
 /// <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);
 }
Exemplo n.º 9
0
 /// <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;
 }
Exemplo n.º 10
0
 protected void ProcessWidgetEvent(Object sender, WidgetEventArgs e)
 {
     Console.WriteLine("Type is " + e.Type);
     Console.WriteLine("Payload is " + e.Payload);
 }
Exemplo n.º 11
0
 private void _hScale_WidgetEvent(object o, WidgetEventArgs args)
 {
     GameWidget.GameWidgetOver.HeigthCell = (int)_hScale.Adjustment.Value;
 }
Exemplo n.º 12
0
 /// <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();
 }
Exemplo n.º 13
0
                #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);
        }
Exemplo n.º 14
0
 /// <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);
 }
Exemplo n.º 15
0
 protected void Send(MenuInputButton button)
 {
     ListLayout.InputEvent(WidgetEventArgs.ButtonDown(button));
     ListLayout.InputEvent(WidgetEventArgs.ButtonUp(button));
 }
 void FeatureEnabledCheckBoxToggled(object sender, WidgetEventArgs e)
 {
     changed = true;
 }
Exemplo n.º 17
0
                #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();
        }
Exemplo n.º 18
0
 private void _btn3D_WidgetEvent(object o, WidgetEventArgs args)
 {
     GameWidget.GameWidgetOver.Is3D = _btn3D.Active;
 }