private void HandleAfterCheck(object sender, CheckBoxEventArgs e) { if (IsStartupPane) { Core.ResourceAP.RunUniqueJob(new MethodInvoker(SaveInfoStores)); } }
/// <summary> /// Checkeds the changed. /// </summary> /// <param name="sender">The sender.</param> /// <param name="eventArgs">The event arguments.</param> private void CheckedChanged(object sender, CheckBoxEventArgs eventArgs) { Device.BeginInvokeOnMainThread(() => { Control.Content = Element.Text; Control.IsChecked = eventArgs.Checked; }); }
private void ForwardAfterCheck(object sender, CheckBoxEventArgs e) { if (AfterCheck != null) { ResourceCheckEventArgs args = new ResourceCheckEventArgs((IResource)e.Item, e.OldState, e.NewState); AfterCheck(e, args); e.NewState = args.NewState; } }
private void InvokeCheckboxStatusChanged() { var handler = CheckboxStatusChanged; if (handler == null) { return; } var e = new CheckBoxEventArgs(this); CheckboxStatusChanged(this, e); }
protected override void OnAfterCheck(CheckBoxEventArgs args) { base.OnAfterCheck(args); if (_checkedProperty >= 0) { IResource res = (IResource)args.Item; new ResourceProxy(res).SetPropAsync(_checkedProperty, (args.NewState == CheckBoxState.Checked) ? _checkedSetValue : _checkedUnsetValue); } }
private void listFileTypes_ItemCheck(object sender, CheckBoxEventArgs e) { if (AllItemsChecked(checkFileTypes) && AllItemsChecked(checkMajorTypes) && AllItemsChecked(checkLinkTypes)) { checkAllResourceTypes.Checked = true; } _listLinkTypes.Selection.Clear(); _listResourceTypes.Selection.Clear(); okButton.Enabled = IsValidChecksCombination(); }
protected void chkCheckBox_CheckedChanged(object sender, EventArgs e) { if (CheckChanged != null) { var args = new CheckBoxEventArgs() { ValueOne = this.ValueOne, ValueTwo = this.ValueTwo }; CheckChanged(this, args); } }
private void OnCheckboxStatusChanged(object sender, CheckBoxEventArgs e) { bool flag = e.Checkbox.Checked; foreach(CheckBox cb in radioButtons){ if(cb.Checked) cb.Checked = false; } if(!flag) enableDefaultCheckbox(); else e.Checkbox.Checked = true; }
private void _confirmDeleteColumn_AfterCheck(object sender, CheckBoxEventArgs e) { object item = e.Item; if (e.NewState == CheckBoxState.Checked) { _deleteConfirmedItems.Add(item); } else if (e.NewState == CheckBoxState.Unchecked) { _deleteConfirmedItems.Remove(item); } }
private void _alwaysDeletePermanentlyColumn_AfterCheck(object sender, CheckBoxEventArgs e) { object item = e.Item; if (e.NewState == CheckBoxState.Checked) { _confirmDeleteColumn.SetItemCheckState(item, CheckBoxState.Grayed); } else { _confirmDeleteColumn.SetItemCheckState(item, _deleteConfirmedItems.Contains(item) ? CheckBoxState.Checked : CheckBoxState.Unchecked); } }
/// <summary> /// When the item is checked or unchecked, adds or deletes it from the list /// of checked resources. /// </summary> private void HandleAfterCheck(object sender, CheckBoxEventArgs e) { if (_updatingCheckedResources) { return; } IResource res = (IResource)e.Item; if (e.NewState == CheckBoxState.Checked) { _checkedResources.Add(res.Id); } else { _checkedResources.Remove(res.Id); } }
protected void CustomCheckBox1_OnCheckChanged(object sender, CheckBoxEventArgs e) { var val1 = e.ValueOne; var val2 = e.ValueTwo; //use custom values }
private void _checkColumn_AfterCheck(object sender, CheckBoxEventArgs e) { NextPredicate(IsValidForm()); }
private void onBindChanged(CheckBoxEventArgs args) { _shouldBindAreaToCharacter = args.Checked; stop(); }
private void OnCheckChange(CheckBoxEventArgs e) { if (e.CheckBox.Text == "STOP BUY NEXT TP") { if (e.CheckBox.IsChecked == true) { Buy = false; } else { Buy = true; } } else if (e.CheckBox.Text == "STOP SELL NEXT TP") { if (e.CheckBox.IsChecked == true) { Sell = false; } else { Sell = true; } } else if (e.CheckBox.Text == "STOP BUY") { if (e.CheckBox.IsChecked == true) { _stopBuy = true; } else { _stopBuy = false; } } else if (e.CheckBox.Text == "STOP SELL") { if (e.CheckBox.IsChecked == true) { _stopSell = true; } else { _stopSell = false; } } else if (e.CheckBox.Text == "NEW POS ON BAR") { if (e.CheckBox.IsChecked == true) { _evaluteOnBar = true; } else { _evaluteOnBar = false; } } else if (e.CheckBox.Text == "OPTIMIZE RETRACEMENT") { if (e.CheckBox.IsChecked == true) { _justForSofferenceSide = true; } else { _justForSofferenceSide = false; } } }
private void _checkColumn_AfterCheck(object sender, CheckBoxEventArgs e) { NextPredicate(AnyItemChecked()); }
private void HandleAfterCheck(object sender, CheckBoxEventArgs e) { PropertyTypeTag tag = (PropertyTypeTag)e.Item; UpdateCheckboxColumns(tag, (e.NewState == CheckBoxState.Checked)); }
/// <summary> /// Fired off when the checkbox is either checked, or unchecked. /// This takes the input from the presenter and updates the model. /// </summary> /// <param name="sender">The checkbox itself.</param> /// <param name="e">Event args.</param> private void RememberMeCheckBox_OnCheckChange(object sender, CheckBoxEventArgs e) { Model.RememberMe = rememberMeCheckBox.IsChecked; }