Guest User

Untitled

a guest
Sep 25th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 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. string separator = "/";
  20. private void btCancel_Click(object sender, EventArgs e)
  21. {
  22. this.Close();
  23. }
  24. private void tbString_TextChanged(object sender, EventArgs e)
  25. {
  26. fMain fMa = new fMain();
  27. Textt.findText = tbString.Text;
  28. fMa.Search();
  29. Textt.count = 0;
  30. lblCount.Text = Textt.count.ToString() + separator + Textt.allCount.ToString();
  31. }
  32. private void btSearchNext_MouseUp(object sender, MouseEventArgs e)
  33. {
  34. fMain fMa = new fMain();
  35. //fMa.Activate();
  36. fMa.Selection();
  37. }
  38. private void btSearchNext_Click_1(object sender, EventArgs e)
  39. {
  40. Textt.count++;
  41.  
  42. if (Textt.count > Textt.allCount)
  43. {
  44. Textt.count = 1;
  45. }
  46. lblCount.Text = Textt.count.ToString() + separator + Textt.allCount.ToString();
  47. }
  48. }
  49. }
Add Comment
Please, Sign In to add comment