示例#1
0
 public CtrlFactory(RichPictureBox richPictureBox)
 {
     setingControl       = new SettingControl(richPictureBox);
     statisticsCtrl      = new StatisticsCtrl(richPictureBox);
     laserAppearanceCtrl = new LaserAppearanceCtrl(richPictureBox);
     rulerAppearanceCtrl = new RulerAppearanceCtrl(richPictureBox);
     laserCtrl           = new LaserCtrl(richPictureBox);
     this.laserAlignment = new LaserAlignment();
     videoChooseCtrl     = new VideoChooseCtrl();
     laserHoleSize       = new LaserHoleSize();
     debugCtrl           = new DebugCtrl();
     lenseCtrl           = new ObjectLenseCtrl(richPictureBox);
     shortcutCtrl        = new ShortcutCtrl(Program.EntryForm.hotKeyManager);
     scaleAppearanceCtrl = new ScaleAppearanceCtrl(richPictureBox);
     aboutCtrl           = new AboutControl();
     systemInfoCtrl      = new SystemInfoCtrl();
 }
示例#2
0
 public void LoadDebugCtrl()
 {
     df          = CtrlFactory.GetCtrlFactory().GetCtrlByType <DebugCtrl>(CtrlType.DebugCtrl);
     df.Location = new Point(48, this.Height - df.Height);
     this.Controls.Add(df);
 }