/// <summary> /// Конструктор с полученным параметром начального выбора /// </summary> /// <param name="PacComponets"></param> public MainForm(OutFirstForm PacComponets, Present.ConsoleDebugging ConsoleDebugging) { this.DoubleBuffered = true; InitializeComponent(); MainBloc = new WebCenter(PacComponets.FileNameBrain, PacComponets.NumberBotInt, PacComponets.DinamicChoiseBool, PacComponets.LearningFactor); DinamicChoiseBool = PacComponets.DinamicChoiseBool; FirstBmp = new Bitmap(Field_One.Width, Field_One.Height); SecondBmp = new Bitmap(Field_Two.Width, Field_Two.Height); TherdBmp = new Bitmap(Field_Therd.Width, Field_Therd.Height); LineOne = Graphics.FromImage(FirstBmp); LineTwo = Graphics.FromImage(SecondBmp); LinesTherd = Graphics.FromImage(TherdBmp); BluePen = new Pen(Color.Blue); NetLinesBig(); NetLinesSmallTwo(); NetLinesSmallThred(); GreenBrush = Brushes.Green; OldLace = Brushes.OldLace; DrawFieldOne(); CountFor.Text = "100"; CountFor.Refresh(); CountIter.ReadOnly = true; SimplisticStyle = false; HelpMessage.Visible = false; StatistChoiseBool = false; ConsoleBox.CheckedChanged += ConsoleBox_AppearanceChanged; Debugging = ConsoleDebugging; }
/// <summary> /// Конструктор с ссылкой для передачи данных /// </summary> /// <param name="ForFirtsApp">Ссылка на измененные данные</param> public MenuForm(OutFirstForm ForFirtsApp) { this.DoubleBuffered = true; InitializeComponent(); NumberBot.Maximum = 1000; NumberBot.Minimum = 1; NumberBot.Value = 25; CoefficientTrainig.Minimum = 2; CoefficientTrainig.Maximum = 10; CoefficientTrainig.Value = 3; OutData = ForFirtsApp; OutData.DinamicChoiseBool = false; AddresFile.Text = "Название файла"; }