I have a List<> and INT and i want to use the INT to point wich index in the List<> should be updating now but couldnt make it to work good
<p>In the top Form1 level i have: </p>

<pre><code>List&lt;float&gt; cyclicSelectedIndex = new List&lt;float&gt;(2);
int currentCyclicIndex;
</code></pre>

<p>In the constructor i have:</p>

<pre><code>currentCyclicIndex = 0;
</code></pre>

<p>And this is the mouse down event where i have the selectedIndex when clicking on a point:</p>

<pre><code>private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left) {
        label1.Text = e.X.ToString();
        label2.Text = e.Y.ToString();
        label1.Visible = true;
        label2.Visible = true;
        label3.Visible = true;
        label4.Visible = true;
        // find the index that is closest to the current mouse location
        MinDist = float.MaxValue;

        for (idx = 0; idx &lt; Point_X.Count; ++idx) {
            float dx = Point_X[idx] - e.X;
            float dy = Point_Y[idx] - e.Y;
            float dist = (float)Math.Sqrt(dx * dx + dy * dy);

            if (dist &lt; MinDist) {
                MinDist = dist;
                selectedIndex = idx;
            }
        }

        if (MinDist &lt; 5) {
            mouseMove = true;
            OriginalX = Point_X[(int)selectedIndex];
            OriginalY = Point_Y[(int)selectedIndex];
        }
    }
} 
</code></pre>

<p>I want in the mouse down event in cyclic way logic to add the selectedIndex to the List according the INT variable pointing.</p>

<p>Once the int is 0 and once its 1. And each time it will contain or point at another selectedIndex number wich meaning i clicked on two different points.</p>

<p>So if i click on one point it will add the point selectedIndex to the cyclic List at index 0 using the INT variable.</p>

<p>And then if i click on any other point it will add the other point selectedIndex to to index 1 in the cyclic List using the INT variable.</p>

<p>The idea is to make a cyclic List so when i click a two points it will not delete the last index but will puse the last one so once i click a point it will add the selectedIndex to index 0 clicked on another point it will add the selectedIndex to index 0 and move the other index to 1 and so on. Cyclic.</p>

<p>** I need to make something in the mouse down event to add some code and make that when i click on a point like now and the i have the selectedIndex so if i click after it on another point i will have a new variable iwth the other clicked point index for example: selectedIndex1</p>

<p>And then i want in the mouse down event to use the int variable to add to the List&lt;> each time the last selectedIndex or selectedIndex1 to the place in the List using the int.</p>

<p>**</p>
