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(); } }
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; //} }
private void button8_Click(object sender, EventArgs e) { int bc = comboBox2.SelectedIndex; string s = comboBox1.Text; if (BB != bc || patterns != s) { results = FindAll(); } else if (bc == 2) { AvalonDocument doc = ef.scr.GetActiveDocument(); string filename = doc.FileName; if (filename != filenamedoc) { results = FindAll(); } else { results = Results; } } else { results = Results; } if (results == null) { return; } Results = results; FindResultsForm rf = ef.rfs; if (radioButton2.Checked == true) { rf = ef.rfs2; } if (rf == null) { return; } if (rf.results == null) { rf.results = new ArrayList(); } if (checkBox9.Checked == false) { rf.ClearLog(); } //string bb = ""; rf.AddOrUpdateOutputs(s); foreach (string b in results) { rf.LogLine(b); } if (checkBox9.Checked == true) { rf.results.AddRange(results); } else { rf.results = results; } rf.text = comboBox1.Text; UpdateButtons(); }