Esempio n. 1
0
 /// <summary>
 /// Open and find box and position it and initialize it
 /// </summary>
 private void OpenFindBox()
 {
     if (findBox == null)
     {
         findBox = new FindBox(dataBox);
         findBox.Disposed += new EventHandler(findBox_Disposed);
         findBox.Location = new Point(this.Left + this.Width / 2, this.Top + this.Height / 2);
     }
     findBox.Show();
     findBox.Focus();
 }
Esempio n. 2
0
 /// <summary>
 /// Dispose of the find box
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An EventArgs that contains no event data.</param>
 private void findBox_Disposed(object sender, EventArgs e)
 {
     findBox = null;
 }