示例#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)));
     }
 }
示例#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);
     }
 }
示例#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));
     }
 }
示例#5
0
 // Handles the "command" event from the client.
 private void ProcessCommandWebEvent(WidgetEventArgs e)
 {
     OnCommand(new CommandEventArgs(e.Data));
 }
示例#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);
 }
示例#7
0
 private void Map_WidgetRemoved(object sender, WidgetEventArgs e)
 {
     Unselect(e.Widget);
     UpdateView(ChangeTypes.All);
 }
示例#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);
 }
示例#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;
 }
 protected void ProcessWidgetEvent(Object sender, WidgetEventArgs e)
 {
     Console.WriteLine("Type is " + e.Type);
     Console.WriteLine("Payload is " + e.Payload);
 }
示例#11
0
 private void _hScale_WidgetEvent(object o, WidgetEventArgs args)
 {
     GameWidget.GameWidgetOver.HeigthCell = (int)_hScale.Adjustment.Value;
 }
示例#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();
 }
示例#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);
        }
示例#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);
 }
 protected void Send(MenuInputButton button)
 {
     ListLayout.InputEvent(WidgetEventArgs.ButtonDown(button));
     ListLayout.InputEvent(WidgetEventArgs.ButtonUp(button));
 }
 void FeatureEnabledCheckBoxToggled(object sender, WidgetEventArgs e)
 {
     changed = true;
 }
示例#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();
        }
示例#18
0
 private void _btn3D_WidgetEvent(object o, WidgetEventArgs args)
 {
     GameWidget.GameWidgetOver.Is3D = _btn3D.Active;
 }