示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (Results == null)
            {
                Results = FindAll();
            }
            else
            {
                act--;

                if (act < 0)
                {
                    act = 0;
                }
            }

            if (Results != null)
            {
                FindResultsForm rf = ef.rfs;

                rf.HighlightLine(act, Color.Blue);

                UpdateButtons();
            }
        }
示例#2
0
        private void button7_Click(object sender, EventArgs e)
        {
            if (Results == null)
            {
                Results = FindAll();
            }
            else
            {
                //FindAll();
                act++;
            }

            if (Results != null)
            {
                FindResultsForm rf = ef.rfs;

                rf.HighlightLine(act, Color.Blue);

                UpdateButtons();
            }

            //if (Results.Count <= 0)
            //{
            //    button3.Enabled = false;
            //    button7.Enabled = false;

            //}
            //else
            //{
            //    if (act >= Results.Count)
            //    {
            //        act = Results.Count - 1;
            //        button7.Enabled = false;
            //        //if (act <= 0)
            //        //    button3.Enabled = false;
            //    }
            //    else button7.Enabled = true;
            //    if (act < 0)
            //    {
            //        act = 0;
            //        button3.Enabled = false;
            //    }
            //    else button3.Enabled = true;
            //}
        }