Exemple #1
0
 private void ChooseStrategy(ChooseAnalysis analysis, SelectStrategies strategy)
 {
     analysis.SendClose += strategy.OnReceiveClose;
     strategy.OnReceiveClose(analysis.Key.Split('^'));
     splitContainerStrategy.Panel1.Controls.Add(analysis);
     splitContainerStrategy.Panel2.Controls.Add(strategy);
     analysis.Dock = DockStyle.Fill;
     strategy.Dock = DockStyle.Fill;
     Size          = new Size(1650, 920);
     splitContainerStrategy.SplitterDistance = 287;
     splitContainerStrategy.BackColor        = Color.FromArgb(121, 133, 130);
     strategy.SendClose += OnReceiveClose;
     ShowDialog();
 }
Exemple #2
0
 private void ChooseStrategy(DialogResult result, GuideGoblinBat guide, ChooseAnalysis analysis, SelectStrategies strategy)
 {
     analysis.SendClose += strategy.OnReceiveClose;
     strategy.OnReceiveClose(analysis.Key.Split('^'));
     splitContainerStrategy.Panel1.Controls.Add(analysis);
     splitContainerStrategy.Panel2.Controls.Add(strategy);
     splitContainerGuide.Panel1.Controls.Add(guide);
     analysis.Dock = DockStyle.Fill;
     strategy.Dock = DockStyle.Fill;
     guide.Dock    = DockStyle.Fill;
     font          = result;
     Size          = new Size(1650, 920);
     splitContainerStrategy.SplitterDistance = 287;
     splitContainerStrategy.BackColor        = Color.FromArgb(121, 133, 130);
     splitContainerGuide.Panel1.BackColor    = Color.FromArgb(121, 133, 130);
     strategy.SendClose += OnReceiveClose;
     strategy.OnReceiveColor(analysis.ColorFactory);
     SetControlsChangeFont(result, Controls, new Font("Consolas", Font.Size, FontStyle.Regular));
     ResumeLayout();
     ShowDialog();
 }