Example #1
0
        public void DoFindAnalise()
        {
            if (IsMiddle)
            {
                _hasher           = Hasher.MiddleRectangle;
                _overflowPosition = Data.OverflowPositionMid;
            }
            else
            {
                _hasher           = Hasher.NewNotation;
                _overflowPosition = Data.OverflowPositionNot;
            }

            if (Data.GeneratedArray.Select(structure => Find(structure.Key)).Contains(this.Null))
            {
                MessageBox.Show(@"DANGER", @"DANGER", MessageBoxButtons.OK);
                return;
            }

            if (Data.DopArray.Select(structure => Find(structure.Key)).Any(found => !found.Equals(this.Null)))
            {
                MessageBox.Show(@"DANGER DOP", @"DANGER DOP", MessageBoxButtons.OK);
                return;
            }
        }
Example #2
0
        public void DoFindAnalise()
        {
            if (IsMiddle)
            {
                _hasher = Hasher.MiddleRectangle;
                _overflowPosition = Data.OverflowPositionMid;
            }
            else
            {
                _hasher = Hasher.NewNotation;
                _overflowPosition = Data.OverflowPositionNot;
            }

            if (Data.GeneratedArray.Select(structure => Find(structure.Key)).Contains(this.Null))
            {
                MessageBox.Show(@"DANGER", @"DANGER", MessageBoxButtons.OK);
                return;
            }

            if (Data.DopArray.Select(structure => Find(structure.Key)).Any(found => !found.Equals(this.Null)))
            {
                MessageBox.Show(@"DANGER DOP", @"DANGER DOP", MessageBoxButtons.OK);
                return;
            }
        }