private void OnNetworkSettingsRadioButtonGroupSelected(object sender, SelectionArgs e) { this.UpdateUI(false); }
private void SelectionChangedHandler(object sender, SelectionArgs e) { try { this.Event_OnSelectionChanged(this, new OnMathMLSelectionChanged(e.HasSelection)); } catch { } }
private void OnRadioOnOffRadioButtonGrpSelectionChanged(object sender, SelectionArgs e) { if (this.RadioOnOffRadioButtonGrp.State == OnOffRadioButtonState.On) { Logging.LogEvent(TraceModule.SDK, TraceLevel.Info, (object) this, "--> The user pressed the 'WiMAX On' button."); this.RadioOnOffRadioButtonGrp.SelectionChanged -= new CustomRadioButtonGroup.SelectionChangedDelegate(this.OnRadioOnOffRadioButtonGrpSelectionChanged); this.RadioOnOffRadioButtonGrp.State = OnOffRadioButtonState.Off; this.RadioOnOffRadioButtonGrp.Invalidate(); this.RadioOnOffRadioButtonGrp.SelectionChanged += new CustomRadioButtonGroup.SelectionChangedDelegate(this.OnRadioOnOffRadioButtonGrpSelectionChanged); if (!DashboardAndTaskTray.TurnRadioOn()) return; this.RadioOnOffRadioButtonGrp.SelectionChanged -= new CustomRadioButtonGroup.SelectionChangedDelegate(this.OnRadioOnOffRadioButtonGrpSelectionChanged); this.RadioOnOffRadioButtonGrp.State = OnOffRadioButtonState.On; this.RadioOnOffRadioButtonGrp.Invalidate(); this.RadioOnOffRadioButtonGrp.SelectionChanged += new CustomRadioButtonGroup.SelectionChangedDelegate(this.OnRadioOnOffRadioButtonGrpSelectionChanged); } else { if (this.RadioOnOffRadioButtonGrp.State != OnOffRadioButtonState.Off) return; Logging.LogEvent(TraceModule.SDK, TraceLevel.Info, (object) this, "--> The user pressed the 'WiMAX Off' button."); this.RadioOnOffRadioButtonGrp.SelectionChanged -= new CustomRadioButtonGroup.SelectionChangedDelegate(this.OnRadioOnOffRadioButtonGrpSelectionChanged); this.RadioOnOffRadioButtonGrp.State = OnOffRadioButtonState.On; this.RadioOnOffRadioButtonGrp.Invalidate(); this.RadioOnOffRadioButtonGrp.SelectionChanged += new CustomRadioButtonGroup.SelectionChangedDelegate(this.OnRadioOnOffRadioButtonGrpSelectionChanged); if (!DashboardAndTaskTray.TurnRadioOff()) return; this.RadioOnOffRadioButtonGrp.SelectionChanged -= new CustomRadioButtonGroup.SelectionChangedDelegate(this.OnRadioOnOffRadioButtonGrpSelectionChanged); this.RadioOnOffRadioButtonGrp.State = OnOffRadioButtonState.Off; this.RadioOnOffRadioButtonGrp.Invalidate(); this.RadioOnOffRadioButtonGrp.SelectionChanged += new CustomRadioButtonGroup.SelectionChangedDelegate(this.OnRadioOnOffRadioButtonGrpSelectionChanged); } }
public void SetSelection(int start, int end) { var args = new SelectionArgs(start, end); SelectionChangeHandler(this, args); }
private void OnRadioButtonGroupSelectionChanged(object sender, SelectionArgs e) { if (this._updateSaveBtnDelegate != null) this._updateSaveBtnDelegate(); this.UpdateUI(); }