private void RowChecked(object sender, CheckIndexEventArgs e) { if (prevCheckedIndex < 0) return; if (prevCheckedIndex != e.CheckedIndex) { this.custListViewImage1.Checked(prevCheckedIndex, false); prevCheckedIndex = e.CheckedIndex; this.custListViewImage1.Checked(prevCheckedIndex, true); } else { this.custListViewImage1.Checked(prevCheckedIndex, true); } }
protected void onRowChecked(CheckIndexEventArgs e) { if (mRowChecked != null) mRowChecked.Invoke(this, e); }
public void RowChecked(object sender, CheckIndexEventArgs e) { if (prevCheckedIndex < 0) return; if (prevCheckedIndex != e.CheckedIndex) { this.custListViewImage1.Checked(prevCheckedIndex, false); prevCheckedIndex = e.CheckedIndex; this.custListViewImage1.Checked(prevCheckedIndex, true); powerLevel = minPower + prevCheckedIndex * 5; //System.Console.WriteLine("powerLevel" + powerLevel); } else { this.custListViewImage1.Checked(prevCheckedIndex, true); } }