private void btnDel_Click(object sender, EventArgs e)
        {
            int num   = 0;
            int count = this.lstSelected.SelectedIndices.Count;
            int num2  = this.lstSelected.SelectedIndices[count - 1];

            this.lstUnselected.SelectedItems.Clear();
            while (this.lstSelected.SelectedItems.Count > 0)
            {
                SelectedItemUtils @class = (SelectedItemUtils)this.lstSelected.SelectedItems[0];
                num = this.method_2(@class);
                @class.method_1(-1);
                this.lstUnselected.Items.Insert(num, @class);
                this.lstUnselected.SetSelected(num, true);
                this.lstSelected.Items.RemoveAt(this.lstSelected.SelectedIndices[0]);
            }
            int num3 = num2 - count + 1;

            if (num3 >= this.lstSelected.Items.Count)
            {
                num3 = this.lstSelected.Items.Count - 1;
            }
            this.lstSelected.SelectedIndex = num3;
            this.method_3();
            this.method_4();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            int num   = 0;
            int count = this.lstUnselected.SelectedIndices.Count;
            int num2  = this.lstUnselected.SelectedIndices[count - 1];
            int num3  = 0;

            this.lstSelected.SelectedItems.Clear();
            while (this.lstUnselected.SelectedItems.Count > 0 && this.lstSelected.Items.Count < RxListOneData.CNT_CONTACT_PER_RX_LIST)
            {
                num = this.lstSelected.Items.Count;
                SelectedItemUtils @class = (SelectedItemUtils)this.lstUnselected.SelectedItems[0];
                @class.method_1(num);
                num3 = this.lstSelected.Items.Add(@class);
                this.lstSelected.SetSelected(num3, true);
                this.lstUnselected.Items.RemoveAt(this.lstUnselected.SelectedIndices[0]);
            }
            if (this.lstUnselected.SelectedItems.Count == 0)
            {
                int num4 = num2 - count + 1;
                if (num4 >= this.lstUnselected.Items.Count)
                {
                    num4 = this.lstUnselected.Items.Count - 1;
                }
                this.lstUnselected.SelectedIndex = num4;
            }
            this.method_3();
            this.method_4();
            if (!this.btnAdd.Enabled)
            {
                this.lstSelected.Focus();
            }
        }
		private void btnAdd_Click(object sender, EventArgs e)
		{
			int num = 0;
			int count = this.lstUnselected.SelectedIndices.Count;
			int num2 = this.lstUnselected.SelectedIndices[count - 1];
			this.lstSelected.SelectedItems.Clear();
			while (this.lstUnselected.SelectedItems.Count > 0 && this.lstSelected.Items.Count < 32)
			{
				SelectedItemUtils @class = (SelectedItemUtils)this.lstUnselected.SelectedItems[0];
				@class.method_1(this.lstSelected.Items.Count);
				num = this.lstSelected.Items.Add(@class);
				this.lstSelected.SetSelected(num, true);
				this.lstUnselected.Items.RemoveAt(this.lstUnselected.SelectedIndices[0]);
			}
			if (this.lstUnselected.SelectedItems.Count == 0)
			{
				int num3 = num2 - count + 1;
				if (num3 >= this.lstUnselected.Items.Count)
				{
					num3 = this.lstUnselected.Items.Count - 1;
				}
				this.lstUnselected.SelectedIndex = num3;
			}
			this.method_7();
			this.method_2();
			this.method_4();
			if (!this.btnAdd.Enabled)
			{
				this.lstSelected.Focus();
			}
		}
 private void lstSelected_DoubleClick(object sender, EventArgs e)
 {
     if (this.lstSelected.SelectedItem != null)
     {
         SelectedItemUtils @class   = this.lstSelected.SelectedItem as SelectedItemUtils;
         MainForm          mainForm = base.MdiParent as MainForm;
         if (mainForm != null)
         {
             mainForm.DispChildForm(typeof(ContactForm), @class.Value - 1);
         }
     }
 }
		private int method_6(SelectedItemUtils class14_0)
		{
			int num = 0;
			num = 0;
			while (true)
			{
				if (num < this.lstUnselected.Items.Count)
				{
					SelectedItemUtils @class = (SelectedItemUtils)this.lstUnselected.Items[num];
					if (class14_0.Value < @class.Value)
					{
						break;
					}
					num++;
					continue;
				}
				return num;
			}
			return num;
		}
		private void method_7()
		{
			int num = 0;
			bool flag = false;
			this.lstSelected.BeginUpdate();
			for (num = 0; num < this.lstSelected.Items.Count; num++)
			{
				SelectedItemUtils @class = (SelectedItemUtils)this.lstSelected.Items[num];
				if (@class.method_0() != num)
				{
					@class.method_1(num);
					flag = this.lstSelected.GetSelected(num);
					this.lstSelected.Items[num] = @class;
					if (flag)
					{
						this.lstSelected.SetSelected(num, true);
					}
				}
			}
			this.lstSelected.EndUpdate();
		}