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(); } }
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; } }