SampleApp.MainForm.locatePointButton_Click C# (CSharp) Method

locatePointButton_Click() private method

private locatePointButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void locatePointButton_Click(object sender, EventArgs e)
        {
            pictureBox.Capture = true;

            Button sourceButton = (Button)sender;
            pointIndexToLocate = int.Parse((string)sourceButton.Tag);

            pointPreviousValue = imagePoints[pointIndexToLocate];
            imagePoints[pointIndexToLocate] = emptyPoint;

            statusLabel.Text = string.Format("Locate point #{0} in the image ...", pointIndexToLocate + 1);
            pictureBox.Invalidate();
        }
MainForm