public void TestSearchValueNotEq()
        {
            FoundRegistryItem item = new FoundRegistryItem("Test", "Test1", "Test2");
            bool result            = RegistrySearcher.IsSearchInValue("st1", item);

            Assert.IsFalse(result);
        }
        public void TestSearchKeyEq()
        {
            FoundRegistryItem item = new FoundRegistryItem("Test", "Test1", "Test2");
            bool result            = RegistrySearcher.IsSearchInKey("st1", item);

            Assert.IsTrue(result);
        }
Exemple #3
0
        public void AddKeyToList(FoundRegistryItem regItem)
        {
            //if calling this method from a thread
            if (this.InvokeRequired)
            {
                //invoke this method from the thread the control is in
                this.Invoke(new Action <FoundRegistryItem>(AddKeyToList), regItem);
                return;
            }

            lstResults.Items.Add(regItem);
        }
Exemple #4
0
 private void RegistrySearcher_FoundRegistry(object sender, FoundRegistryItem e)
 {
     this.AddKeyToList(e);
 }