Esempio n. 1
0
        public OrderEditor(NumericUpDown txtStartFrom, DataGridView gridReplacers, ComboBox cbAddReplacer,
                           Button btnAddReplacer, Button btnUp, Button btnDown, Button btnDelete, Button btnCopy, Button btnPaste,
                           TabPage pageTextData, TabPage pageMimeData, TabControl tabEditors, TabControl tabReplacers) : base()
        {
            replacerEditors = new Dictionary <Type, ReplacerEditorItem>();

            factory = new ReplacerFactory();
            RegisterTextReplacers(factory);

            this.txtStartFrom   = txtStartFrom;
            this.gridReplacers  = gridReplacers;
            this.cbAddReplacer  = cbAddReplacer;
            this.btnAddReplacer = btnAddReplacer;
            this.btnUp          = btnUp;
            this.btnDown        = btnDown;
            this.btnDelete      = btnDelete;
            this.btnCopy        = btnCopy;
            this.btnPaste       = btnPaste;
            this.pageTextData   = pageTextData;
            this.pageMimeData   = pageMimeData;
            this.tabEditors     = tabEditors;
            this.tabReplacers   = tabReplacers;

            BindControls();
        }
Esempio n. 2
0
 private void RegisterTextReplacers(ReplacerFactory factory)
 {
     factory.RegisterReplacer(typeof(EmailAddressReplacer), "E-mail address replacer");
     factory.RegisterReplacer(typeof(IpAddressReplacer), "IP address replacer");
     factory.RegisterReplacer(typeof(TextReplacer), "Text replacer");
     factory.RegisterReplacer(typeof(NameValuePairReplacer), "Name : Value pair replacer");
     factory.RegisterReplacer(typeof(XmlDocumentReplacer), "XML document replacer");
     factory.RegisterReplacer(typeof(HtmlDocumentReplacer), "HTML document replacer");
     factory.RegisterReplacer(typeof(HtmlTextReplacer), "HTML text replacer");
     factory.RegisterReplacer(typeof(RegexReplacer), "Regex replacer");
 }
Esempio n. 3
0
 private void RegisterMimeReplacer(ReplacerFactory factory)
 {
     factory.RegisterReplacer(typeof(MimeReplacer), "MIME mail message replacer");
 }