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(); }
public void LoadDebugCtrl() { df = CtrlFactory.GetCtrlFactory().GetCtrlByType <DebugCtrl>(CtrlType.DebugCtrl); df.Location = new Point(48, this.Height - df.Height); this.Controls.Add(df); }