예제 #1
0
 public static FindDialog GetFindDialog(FindReplaceModel findReplaceModel, ITextEditor textEditor, IMessageDisplayService messageManager)
 {
     if (FindDialog.findDialog == null)
     {
         FindDialog.findDialog = new FindDialog(findReplaceModel, textEditor, messageManager);
     }
     return(FindDialog.findDialog);
 }
예제 #2
0
 private FindDialog(FindReplaceModel findReplaceModel, ITextEditor textEditor, IMessageDisplayService messageManager)
 {
     this.textEditor       = textEditor;
     this.messageManager   = messageManager;
     this.findReplaceModel = findReplaceModel;
     this.DialogContent    = (UIElement)Microsoft.Expression.Code.FileTable.GetElement("UserInterface\\FindDialog.xaml");
     this.Title            = StringTable.FindDialogTitle;
     this.SizeToContent    = SizeToContent.WidthAndHeight;
     this.DataContext      = (object)this;
     this.findNextCommand  = new DelegateCommand(new DelegateCommand.SimpleEventHandler(this.OnFindNext));
     this.FindText         = this.FindText;
 }