Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace Блокнот
- {
- public partial class fSearch : Form
- {
- public fSearch()
- {
- InitializeComponent();
- }
- string separator = "/";
- private void btCancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void tbString_TextChanged(object sender, EventArgs e)
- {
- fMain fMa = new fMain();
- Textt.findText = tbString.Text;
- fMa.Search();
- Textt.count = 0;
- lblCount.Text = Textt.count.ToString() + separator + Textt.allCount.ToString();
- }
- private void btSearchNext_MouseUp(object sender, MouseEventArgs e)
- {
- fMain fMa = new fMain();
- //fMa.Activate();
- fMa.Selection();
- }
- private void btSearchNext_Click_1(object sender, EventArgs e)
- {
- Textt.count++;
- if (Textt.count > Textt.allCount)
- {
- Textt.count = 1;
- }
- lblCount.Text = Textt.count.ToString() + separator + Textt.allCount.ToString();
- }
- }
- }
Add Comment
Please, Sign In to add comment