1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| using System;
| using System.Windows.Forms;
|
| namespace LB_VisionControls
| {
| public partial class GoToForm : Form
| {
| public int SelectedLineNumber { get; set; }
| public int TotalLineCount { get; set; }
|
| public GoToForm()
| {
| InitializeComponent();
| }
|
| protected override void OnLoad(EventArgs e)
| {
| base.OnLoad(e);
| this.label.Text = String.Format("Line number (1 - {0}):", this.TotalLineCount);
| this.textBox.DataBindings.Add("Text", this, "SelectedLineNumber", true, DataSourceUpdateMode.OnPropertyChanged);
| }
| }
| }
|
|