Example #1
0
 /// <summary>Called when user checks an item.</summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="ItemCheckedEventArgs"/> instance containing the event data.</param>
 private void OnItemChecked(object sender, ItemCheckedEventArgs e)
 {
     if (DisabledSeriesChanged != null)
     {
         DisabledSeriesChanged.Invoke(this, new EventArgs());
     }
 }
Example #2
0
        /// <summary>Called when user checks an item.</summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="ItemCheckedEventArgs"/> instance containing the event data.</param>
        private void OnItemChecked(object sender, ToggledArgs e)
        {
            TreeIter iter;

            if (listModel.GetIter(out iter, new TreePath(e.Path)))
            {
                bool old = (bool)listModel.GetValue(iter, 0);
                listModel.SetValue(iter, 0, !old);
            }
            if (DisabledSeriesChanged != null)
            {
                DisabledSeriesChanged.Invoke(this, new EventArgs());
            }
        }