Example #1
0
        private void testTree_AfterSelect(object sender, TreeViewEventArgs e)
        {
            // If the selected node is a leaf node...
            if (e.Node.Tag is SymbologyTestItem)
            {
                // Save any pending changes
                CommitChanges();

                // Identify the test item and group
                SymbologyTestItem  testItem  = (SymbologyTestItem)e.Node.Tag;
                SymbologyTestGroup testGroup = (SymbologyTestGroup)e.Node.Parent.Tag;

                // Update the current item
                testSymbology.SelectedIndex = ((int)testGroup.Symbology) - 1;
                barcodeLabel.Text           = testItem.Barcode;
                RefreshBarcode();
                _testChangesPending = false;
                _symbologyChanged   = false;
                _barcodeTextChanged = false;
            }
        }
Example #2
0
        /// <summary>
        /// Adds the test case.
        /// </summary>
        /// <param name="test">The test.</param>
        public void AddTestCase(string test)
        {
            SymbologyTestItem item = new SymbologyTestItem(test);

            TestItems.Add(item);
        }
Example #3
0
 /// <summary>
 /// Adds the test case.
 /// </summary>
 /// <param name="test">The test.</param>
 public void AddTestCase(string test)
 {
     SymbologyTestItem item = new SymbologyTestItem (test);
     TestItems.Add (item);
 }