Пример #1
0
        /// <summary>
        /// Initializes the form with necessary data input, depending on specified algorithm
        /// </summary>
        /// <param name="algo">
        /// MatchingAlgortihm Enumeration element detailing the algorithm to be used
        /// </param>
        public PacketMatchingForm(MatchingAlgorithm algo)
        {
            // Initializes the controls on the form
            InitializeComponent();

            // determine which algorithm is to be used
            controller   = new PacketMatchingFormController(algo);
            this.Visible = true;
        }
Пример #2
0
 /// <summary>
 /// Initializes the form to use the First-Match algorihm
 /// </summary>
 /// <remarks>
 /// The term First-Pair is merely used to circumvent using First-Match Matching Algorithm
 /// </remarks>
 public PacketMatchingForm()
 {
     InitializeComponent();
     controller   = new PacketMatchingFormController();
     this.Visible = true;
 }