private void HandleAfterCheck(object sender, CheckBoxEventArgs e)
 {
     if (IsStartupPane)
     {
         Core.ResourceAP.RunUniqueJob(new MethodInvoker(SaveInfoStores));
     }
 }
示例#2
0
 /// <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;
     });
 }
示例#3
0
 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;
     }
 }
示例#4
0
    private void InvokeCheckboxStatusChanged()
    {
        var handler = CheckboxStatusChanged;
        if (handler == null) {
            return;
        }

        var e = new CheckBoxEventArgs(this);
        CheckboxStatusChanged(this, e);
    }
示例#5
0
 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);
     }
 }
示例#6
0
 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);
     }
 }
示例#8
0
 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;
 }
示例#9
0
文件: DeletersPane.cs 项目: mo5h/omeo
        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);
            }
        }
示例#10
0
文件: DeletersPane.cs 项目: mo5h/omeo
        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);
            }
        }
示例#11
0
        /// <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
 }
示例#13
0
 private void _checkColumn_AfterCheck(object sender, CheckBoxEventArgs e)
 {
     NextPredicate(IsValidForm());
 }
 private void onBindChanged(CheckBoxEventArgs args)
 {
     _shouldBindAreaToCharacter = args.Checked;
     stop();
 }
示例#15
0
 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;
         }
     }
 }
示例#16
0
 private void _checkColumn_AfterCheck(object sender, CheckBoxEventArgs e)
 {
     NextPredicate(AnyItemChecked());
 }
示例#17
0
        private void HandleAfterCheck(object sender, CheckBoxEventArgs e)
        {
            PropertyTypeTag tag = (PropertyTypeTag)e.Item;

            UpdateCheckboxColumns(tag, (e.NewState == CheckBoxState.Checked));
        }
示例#18
0
 /// <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;
 }