Esempio n. 1
0
        private void cmFind(object sender, RoutedEventArgs e)
        {
            if (Boxes.Count < 1)
            {
                return;
            }

            THopfield Hopfield = new THopfield(Boxes);

            TBox Box = Hopfield.Find(Pole.Box, 100);

            if (Box == null)
            {
                MessageBox.Show("Образ не найден!");
            }
            else
            {
                Pole.Box = Box;
                Pole.Draw();
            }
        }
Esempio n. 2
0
        private void CmFind(object sender, RoutedEventArgs e)
        {
            if (Boxes.Count < 1)
            {
                return;
            }

            THopfield Hopfield = new THopfield(Boxes);

            TBox Box = Hopfield.Find(Pole.Box, 100);

            if (Box == null)
            {
                MessageBox.Show("Не знайдено дiагнозiв, схожих по характеристикам!");
            }
            else
            {
                Pole.Box     = Box;
                name         = Pole.Draw();
                textBox.Text = names;
            }
        }