示例#1
0
        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);
            }
        }
示例#2
0
 protected void onRowChecked(CheckIndexEventArgs e)
 {
     if (mRowChecked != null)
         mRowChecked.Invoke(this, e);
 }
示例#3
0
        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);
            }
        }