Esempio n. 1
0
        /// <inheritdoc />
        public MfDisplay()
        {
            InitializeComponent();

            var resources = new ComponentResourceManager(typeof(MfDisplay));

            objXMFDisplay = IsInDesignMode ? new AxObjectXMFDisplay() : ImplementationResolver.Resolve("AxObjectXMFDisplay");

            ((ISupportInitialize)(objXMFDisplay)).BeginInit();

            SuspendLayout();
            //
            // objXMFDisplay
            //
            if (IsInDesignMode)
            {
                var control = ((AxObjectXMFDisplay)objXMFDisplay);
                control.Dock     = DockStyle.Fill;
                control.Enabled  = true;
                control.Location = new Point(0, 0);
                control.Name     = "objXMFDisplay";
                control.OcxState = ((AxHost.State)(resources.GetObject("objXMFDisplay.OcxState")));
                control.Size     = new Size(480, 320);
                control.TabIndex = 0;
            }
            else
            {
                objXMFDisplay.Call("CreateControl");
                objXMFDisplay.SetProperty("Dock", DockStyle.Fill);
                objXMFDisplay.SetProperty("Enabled", true);
                objXMFDisplay.SetProperty("Location", new Point(0, 0));
                objXMFDisplay.SetProperty("Name", "objXMFDisplay");
                objXMFDisplay.SetProperty("OcxState", ((AxHost.State)(resources.GetObject("objXMFDisplay.OcxState"))));
                objXMFDisplay.SetProperty("Size", new Size(480, 320));
                objXMFDisplay.SetProperty("TabIndex", 0);
                objXMFDisplay.SetProperty("EventVersion", 1);
                objXMFDisplay.SetProperty("CharacterSetID2", 32);
                objXMFDisplay.SetProperty("FontTypeFace", "Term3270");
                objXMFDisplay.SetProperty("AutoFont", true);
                objXMFDisplay.SetProperty("AutoFontMinimumWidth", 2);
                objXMFDisplay.SetProperty("CharacterCase", false);
                objXMFDisplay.SetProperty("ClipboardConfiguration", 0);
                objXMFDisplay.SetProperty("CursorBlinkRate", 1000);
                objXMFDisplay.SetProperty("ShowLightPenCursor", true);
                objXMFDisplay.SetProperty("WatermarkConfiguration", 0);
            }

            Controls.Add(objXMFDisplay as Control ?? throw new InvalidOperationException());
            ((ISupportInitialize)(objXMFDisplay)).EndInit();
            ResumeLayout(false);
        }
 public IMailReceiver CreateReceiver()
 {
     return(ImplementationResolver.Resolve <IMailReceiver>());
 }
 public IMailSender CreateSender()
 {
     return(ImplementationResolver.Resolve <IMailSender>());
 }
Esempio n. 4
0
 /// <summary>
 ///     Criação da classe de conexão a partir do arquivo de configurações de implementação
 /// </summary>
 /// <returns></returns>
 public IDbConnection CreateConnection()
 {
     return(ImplementationResolver.Resolve <IDbConnection>());
 }
Esempio n. 5
0
 /// <summary>
 ///     Criação do comando a partir do arquivo de configurações de implementação;
 /// </summary>
 /// <returns></returns>
 public IDbCommand CreateCommand()
 {
     return(ImplementationResolver.Resolve <IDbCommand>());
 }
Esempio n. 6
0
 /// <summary>
 /// Implementa o solucionador de captcha a partir de uma chave alfanumerica
 /// </summary>
 /// <param name="chave"></param>
 /// <returns></returns>
 public ICaptchaBreaker CreateCaptchaBreaker(string chave)
 {
     return((ICaptchaBreaker)ImplementationResolver.Resolve(chave));
 }
Esempio n. 7
0
 /// <summary>
 /// Implementa o solucionador de captcha
 /// </summary>
 /// <returns></returns>
 public ICaptchaBreaker CreateCaptchaBreaker()
 {
     return(ImplementationResolver.Resolve <ICaptchaBreaker>());
 }