Exemple #1
0
        public void Form2Settings(VSFindToolMainFormControl form)
        {
            //Search phrase
            tbPhrase = form.tbPhrase.Text;

            //Find options
            chkWholeWord = form.chkWholeWord.IsChecked == true;
            chkForm      = form.chkForm.IsChecked == true;
            chkCase      = form.chkCase.IsChecked == true;
            chkRegExp    = form.chkRegExp.IsChecked == true;

            //Look in
            rbCurrDoc     = form.rbCurrDoc.IsChecked == true;
            rbOpenDocs    = form.rbOpenDocs.IsChecked == true;
            rbProject     = form.rbProject.IsChecked == true;
            rbSolution    = form.rbSolution.IsChecked == true;
            rbLocation    = form.rbLocation.IsChecked == true;
            rbLastResults = form.rbLastResults.IsChecked == true;
            tbLocation    = form.tbLocation.Text;
            tbfileFilter  = form.cbFileMask.Text;
            chkSubDir     = form.chkSubDir.IsChecked == true;
        }
Exemple #2
0
        public void Settings2Form(VSFindToolMainFormControl form)
        {
            //Search phrase
            form.tbPhrase.Text = tbPhrase;

            //Find options
            form.chkWholeWord.IsChecked = chkWholeWord;
            form.chkForm.IsChecked      = chkForm;
            form.chkCase.IsChecked      = chkCase;
            form.chkRegExp.IsChecked    = chkRegExp;

            //Look in
            form.rbCurrDoc.IsChecked     = rbCurrDoc;
            form.rbOpenDocs.IsChecked    = rbOpenDocs;
            form.rbProject.IsChecked     = rbProject;
            form.rbSolution.IsChecked    = rbSolution;
            form.rbLocation.IsChecked    = rbLocation;
            form.rbLastResults.IsChecked = rbLastResults;
            form.tbLocation.Text         = tbLocation;
            form.SetTbFileFilter(tbfileFilter);
            form.chkSubDir.IsChecked = chkSubDir;
        }