コード例 #1
0
ファイル: App.cs プロジェクト: SaxxonPike/EasyRgbWrapper
 public App(IRgbEasyContext context, ICaptureSwitcher captureSwitcher, ISettingsService settingsService, IFormService formService)
 {
     _context         = context;
     _captureSwitcher = captureSwitcher;
     _settingsService = settingsService;
     _formService     = formService;
 }
コード例 #2
0
        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}";
        }
コード例 #3
0
 public FormService(ICaptureSwitcher captureSwitcher, IDialogFactory dialogFactory)
 {
     _captureSwitcher = captureSwitcher;
     _dialogFactory   = dialogFactory;
 }