Exemplo n.º 1
0
 void tb_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == (Keys.K | Keys.Control))
     {
         //forced show (MinFragmentLength will be ignored)
         (CurrentTB.Tag as TbInfo).popupMenu.Show(true);
         e.Handled = true;
     }
     if (e.KeyData == (Keys.Control | Keys.N))
     {
         CreateTab(null);
     }
     if (e.KeyData == (Keys.Control | Keys.S))
     {
         if (tsFiles.SelectedItem != null)
         {
             Save(tsFiles.SelectedItem);
         }
     }
     if (e.KeyData == (Keys.Control | Keys.F))
     {
         FindForm ff = new FindForm(CurrentTB);
         ff.ShowDialog();
     }
 }
Exemplo n.º 2
0
        private void findToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FindForm find = new FindForm();

            if (find.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }
            string          lName    = find.LastName;
            CustomerService customer = new CustomerService();

            BindingData(customer.GetCustomersByLastName(lName));
        }
Exemplo n.º 3
0
 private void FindBut_Click(object sender, EventArgs e)
 {
     try
     {
         FindForm find = new FindForm(server);
         find.ShowDialog();
         InfoForm info = new InfoForm(find.infoAboutFoundedUsers);
         info.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Внимание!",
                         MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
		/*
				private Font _boldItalicFont;
		*/

		public void Find()
		{
			using (var form = new FindForm())
			{
				form.TextToFind = _findText;

				if (form.ShowDialog(this) == DialogResult.OK)
				{
					_findText = form.TextToFind;
					if (!FindNext())
					{
						XtraMessageBox.Show(
							Resources.SR_ResourceEditorUserControl_Find_TheTextWasNotFound,
							@"Zeta Resource Editor",
							MessageBoxButtons.OK,
							MessageBoxIcon.Information);
					}
				}
			}
		}
Exemplo n.º 5
0
        private void 찾기ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FindForm findForm = new FindForm(CurrentTB);

            findForm.ShowDialog();
        }