/// <summary> /// Event handler, which just passes the event on, if possible. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public virtual void OnCheckBoxChanged(object sender, CheckBoxChangedEventArgs e) { CheckDisposed(); if (CheckBoxChanged != null) { CheckBoxChanged(sender, e); } }
void m_rbv_CheckBoxChanged(object sender, CheckBoxChangedEventArgs e) { CheckAddBtnEnabling(); }
void sentences_CheckBoxChanged(object sender, CheckBoxChangedEventArgs e) { if (m_respellUndoaction != null) { // We're displaying a Preview, and need to update things. if (e.HvosChanged.Length == 1) { // Single check box clicked, update with PropChanged var hvo = e.HvosChanged[0]; // We only consider it 'checked' if both checked AND enabled. bool itemChecked = GetItemChecked(hvo); if (m_respellUndoaction != null) m_respellUndoaction.UpdatePreview(hvo, itemChecked); } else { // Update the status of items foreach (var hvo in e.HvosChanged) if (GetItemChecked(hvo)) m_respellUndoaction.AddOccurrence(hvo); else m_respellUndoaction.RemoveOccurrence(hvo); // the regenerate all the previews. m_respellUndoaction.UpdatePreviews(true); } } SetEnabledState(); }
void m_currentBrowseView_CheckBoxChanged(object sender, CheckBoxChangedEventArgs e) { CheckAssignBtnEnabling(); }
private void ExtendedDataGridView1_cellCheckedChanged(object sender, CheckBoxChangedEventArgs e) { ExtendedDataGridView1[1, e.rowIndex].ReadOnly = e.newValue; //Debugger.Break(); }
void sentences_CheckBoxChanged(object sender, CheckBoxChangedEventArgs e) { if (m_respellUndoaction != null) { // We're displaying a Preview, and need to update things. if (e.HvosChanged.Length == 1) { // Single check box clicked, update with PropChanged int hvo = e.HvosChanged[0]; // We only consider it 'checked' if both checked AND enabled. bool itemChecked = m_sourceSentences.BrowseViewer.IsItemChecked(hvo) && m_cache.GetIntProperty(hvo, m_sourceSentences.BrowseViewer.PreviewEnabledTag) == 1; if (m_respellUndoaction != null) m_respellUndoaction.UpdatePreview(hvo, itemChecked); } else { m_respellUndoaction.UpdatePreviews(); } } SetEnabledState(); }
/// <summary> /// Event handler, which just passes the event on, if possible. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public virtual void OnCheckBoxChanged(object sender, CheckBoxChangedEventArgs e) { CheckDisposed(); if (CheckBoxChanged != null) CheckBoxChanged(sender, e); }