예제 #1
0
 public void ShowDialog(FindDialogContext context)
 {
     this.Show();
     this.TextBoxFind.Text = context.FixedDocumentViewer.GetSelectedText();
     this.findDialogViewModel = new FindDialogViewModel(context);
     this.DataContext = this.findDialogViewModel;
     this.TextBoxFind.Focus();
 }
예제 #2
0
 public void ShowDialog(FindDialogContext context)
 {
     this.Show();
     this.TextBoxFind.Text    = context.FixedDocumentViewer.GetSelectedText();
     this.findDialogViewModel = new FindDialogViewModel(context);
     this.DataContext         = this.findDialogViewModel;
     this.TextBoxFind.Focus();
 }
예제 #3
0
        internal FindTextDlg(Form ownerForm, FindDialogContext context)
        {
            InitializeComponent();
            this.context = context;

            this.Owner = ownerForm;

            this.settings = FindTextSettings.LoadFromFile(Path.Combine(Globals.UserDataDir, "FindText.xml"), XmlSerializableFileCorruptedAction.ShowDialogAndLoadDefaults);

            this.LoadRecentTexts();

            this.findWhatCombo.Text = this.settings.FindWhat;
            //Note: FindIn is loaded for each different logfile
            this.useRegExCheckBox.Checked      = this.settings.UseRegEx;
            this.caseSensitiveCheckBox.Checked = this.settings.CaseSensitive;
            this.dockedCheckBox.Checked        = this.settings.Docked;
        }
 public FindDialogViewModel(FindDialogContext context)
 {
     this.textSearchOptions   = new TextSearchOptions(false, false, false);
     this.findNextCommand     = new FindNextCommand(context.FixedDocumentViewer, this.TextSearchOptions);
     this.findPreviousCommand = new FindPreviousCommand(context.FixedDocumentViewer, this.TextSearchOptions);
 }
예제 #5
0
 public void ShowDialog(FindDialogContext context)
 {
 public FindDialogViewModel(FindDialogContext context)
 {
     this.textSearchOptions = new TextSearchOptions(false, false, false);
     this.findNextCommand = new FindNextCommand(context.FixedDocumentViewer, this.TextSearchOptions);
     this.findPreviousCommand = new FindPreviousCommand(context.FixedDocumentViewer, this.TextSearchOptions);
 }