Exemple #1
0
        private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
        {
            FindPanel myUserControl = new FindPanel();

            myCustomTaskPane       = Globals.ThisAddIn.CustomTaskPanes.Add(myUserControl, "Find and Replace");
            myCustomTaskPane.Width = 320;
            Globals.ThisAddIn.Application.DocumentChange += Application_DocumentChange;
        }
 private void replace_Click(object sender, EventArgs e)
 {
     FindPanel.replace(findBox.Text, replaceBox.Text, checkBoxCase.Checked);
 }
 private void findNext_Click(object sender, EventArgs e)
 {
     FindPanel.findNext(findBox.Text, checkBoxCase.Checked);
 }