Пример #1
0
        public override void LoadFromAnalyser(FieldAnalyser analyser)
        {
            var a = analyser as RegexFieldAnalyser;

            dataGridView1.Rows.Clear();
            foreach (var fld in a.Fields)
            {
                dataGridView1.Rows.Add(fld.FieldName, fld.Pattern, fld.Group, fld.Skip);
            }
        }
Пример #2
0
        public override void LoadFromAnalyser(FieldAnalyser analyser)
        {
            var a = analyser as SeparatedFieldsAnalyser;

            tbxColName.Text    = a.ColNameTemplate;
            tbxSeparator.Text  = a.Separator;
            chbIsRegex.Checked = a.IsRegex;
            dataGridView1.Rows.Clear();
            foreach (var fld in a.Fields)
            {
                dataGridView1.Rows.Add(fld.Name, fld.Position.ToString());
            }
        }
Пример #3
0
        public override void LoadFromAnalyser(FieldAnalyser analyser)
        {
            var a = analyser as ScriptAnalyser;

            codeEditor1.Text = a.Code;
        }
Пример #4
0
 public override void LoadFromXml(XmlElement xml)
 {
     base.LoadFromXml(xml);
     FieldAnalyser = Plugin.textio.FieldAnalyser.LoadFromXml(xml.FindElement("FieldAnalyser"));
 }
Пример #5
0
        public override void LoadFromAnalyser(FieldAnalyser analyser)
        {
            var a = analyser as WholeLineAnalyser;

            tbxFieldName.Text = a.FieldName;
        }
Пример #6
0
 public virtual void LoadFromAnalyser(FieldAnalyser analyser)
 {
 }