public App(IRgbEasyContext context, ICaptureSwitcher captureSwitcher, ISettingsService settingsService, IFormService formService) { _context = context; _captureSwitcher = captureSwitcher; _settingsService = settingsService; _formService = formService; }
public DisplayForm(Form parentForm, IRgbEasyCapture capture, ICaptureSwitcher captureSwitcher, IDialogFactory dialogFactory) { _parentForm = parentForm; _capture = capture; _captureSwitcher = captureSwitcher; _dialogFactory = dialogFactory; Form = new Form { FormBorderStyle = FormBorderStyle.FixedSingle }; Form.FormClosing += FormOnFormClosing; Form.Shown += FormOnShown; Form.GotFocus += FormOnGotFocus; Form.KeyDown += FormOnKeyDown; Form.Paint += FormPaint; Form.DoubleClick += FormDoubleClick; capture.ModeChanged += CaptureOnModeChanged; parentForm.AddOwnedForm(Form); Form.Text = $"Vision - {capture.Input + 1}"; }
public FormService(ICaptureSwitcher captureSwitcher, IDialogFactory dialogFactory) { _captureSwitcher = captureSwitcher; _dialogFactory = dialogFactory; }