Guest User

Untitled

a guest
Sep 30th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace Блокнот
  12. {
  13. public partial class fSearch : Form
  14. {
  15. public fSearch()
  16. {
  17. InitializeComponent();
  18. }
  19. private void btCancel_Click(object sender, EventArgs e)
  20. {
  21. this.Close();
  22. }
  23. private void tbString_TextChanged(object sender, EventArgs e)
  24. {
  25. fMain fMa = new fMain();
  26. Textt.findText = tbString.Text;
  27. fMa.Search();
  28. Textt.count = 0;
  29. lblCount.Text = Textt.count.ToString() + "/" + Textt.allCount.ToString();
  30. }
  31. private void btSearchNext_Click_1(object sender, EventArgs e)
  32. {
  33. fMain fMa = new fMain();
  34. Textt.count++;
  35. if (Textt.count > Textt.allCount)
  36. {
  37. Textt.count = 1;
  38. }
  39. lblCount.Text = Textt.count.ToString() + "/" + Textt.allCount.ToString();
  40. fMa.Selection();
  41. }
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment