public QwertyValidator()
     : base()
 {
     this.keyboardCollector = KeyboardFactory.Create <IKeyboardCollector>();
     this.keyboardBuilder   = KeyboardFactory.Create <IKeyboardBuilder>();
     this.numericBuilder    = KeyboardFactory.Create <INumericBuilder>();
     this.qwertyBuilder     = KeyboardFactory.Create <IQwertyBuilder>();
 }
        public QwertyGeneratorControl()
            : base()
        {
            this.InitializeComponent();

            this.qwertyValidator = KeyboardFactory.Create <IQwertyValidator>();

            StandardContextMenu contextMenu = StandardContextMenu.Create(this.OnContextMenuItemClick);

            contextMenu.Opening += this.OnContextMenuOpening;

            this.txtSource.ContextMenu      = null;
            this.txtSource.ContextMenuStrip = contextMenu;

            this.txtSource.SetWatermark(true);
            this.txtResult.Text = String.Empty;
        }