Ejemplo 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();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 设置查询控件的属性
        /// </summary>
        /// <param name="find">查询控件的实例</param>
        public void SetFindControlInfo(FindForm find)
        {
            find.DalCollection = Dal;//设置客户数据的数据访问函数库
            find.PageViewID    = FindPageViewID;

            //Response.Write(PageViewMeta.ColumnCount);

            //find.UserOnlineInfo = MyUser; MyUser.GetUserColumnIDs(ModuleID, "3", DalMetadata);
        }
Ejemplo n.º 3
0
        public void ExecFind()
        {
            string selt = CurrentSyntaxEditor.SelectedText;

            if (selt != string.Empty)
            {
                FindForm.tbTextToFind.Text = selt;
            }
            FindForm.Show();
        }
Ejemplo n.º 4
0
        private void OpenFindForm()
        {
            if (!_stringtablesLoaded || FindFormOpen)
            {
                return;
            }

            var findForm = new FindForm(this);

            findForm.Show();
        }
Ejemplo n.º 5
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));
        }
Ejemplo n.º 6
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);
     }
 }
Ejemplo n.º 7
0
        public override void Execute(TextBoxControl editor)
        {
            if (_dlgFind == null)
            {
                _dlgFind = new FindForm(editor);
            }

            if (!_dlgFind.Visible)
            {
                _dlgFind.Show();
            }

            //TextLocation homeLocation = editor.GetLineHomeInfo(editor.Caret.Line);
            //if (homeLocation != TextLocation.Empty)
            //{
            //    editor.Caret.Position = homeLocation;
            //    editor.Caret.UpdateCaretPosition();
            //    if (editor.HorizontalScroll.Value != 0 && editor.HorizontalScroll.Visible)
            //    {
            //        editor.HorizontalScroll.Value = 0;
            //        editor.PerformLayout();
            //    }
            //}
        }
Ejemplo n.º 8
0
 public void ExecFindNext()
 {
     FindForm.FindNext();
 }
Ejemplo n.º 9
0
        public void ShowFindDialog()
        {
            FindForm _f = new FindForm(rtf);

            _f.Show();
        }
		/*
				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);
					}
				}
			}
		}
Ejemplo n.º 11
0
        private void 찾기ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FindForm findForm = new FindForm(CurrentTB);

            findForm.ShowDialog();
        }
Ejemplo n.º 12
0
 private void findToolStripMenuItem_Click(object sender, EventArgs e)
 {
     findform = new ResxEditor.FindForm();
     findform.OnFindPressed += f_OnFindPressed;
     findform.Show(this);
 }
Ejemplo n.º 13
0
 public override void Execute(TextArea textArea)
 {
     FindForm.ShowFor(Control, false);
 }
Ejemplo n.º 14
0
 public override void Execute(TextArea textArea)
 {
     FindForm.FindNext(true, false, string.Format("Search text «{0}» not found.", FindForm.LookFor));
 }