コード例 #1
0
        public ModuleMainForm()
        {
            InitializeComponent();
            try
            {
                // set property windows
                regExPropertys = new PropertiesToolsWindows("Options");
                regExPropertys.AddProperty(RegexOptions.IgnoreCase.ToString(), "Ignore case", false);
                regExPropertys.AddProperty(RegexOptions.Multiline.ToString(), "Multiline mode", false);
                regExPropertys.AddProperty(RegexOptions.Singleline.ToString(), "Dot match all", false);
                regExPropertys.Change += new PropertiesToolsWindows.PropertiesToolsWindowsEventHandler(regExOptions_Change);

                // create instance of regex parser
                RegexOptions regexOptions = System.Text.RegularExpressions.RegexOptions.None;
                regExParser = new RegExParser(regexOptions);
            }
            catch (Exception ex)
            {
                Log.Write(ex, this, "ModuleMainForm", Log.LogType.ERROR);
            }
        }
コード例 #2
0
        public ModuleMainForm()
        {
            InitializeComponent();
            try
            {
                // set property windows
                regExPropertys = new PropertiesToolsWindows("Options");
                regExPropertys.AddProperty(RegexOptions.IgnoreCase.ToString(), "Ignore case", false);
                regExPropertys.AddProperty(RegexOptions.Multiline.ToString(), "Multiline mode", false);
                regExPropertys.AddProperty(RegexOptions.Singleline.ToString(), "Dot match all", false);
                regExPropertys.Change += new PropertiesToolsWindows.PropertiesToolsWindowsEventHandler(regExOptions_Change);

                // create instance of regex parser
                RegexOptions regexOptions = System.Text.RegularExpressions.RegexOptions.None;
                regExParser = new RegExParser(regexOptions);

            }
            catch (Exception ex)
            {
                Log.Write(ex, this, "ModuleMainForm", Log.LogType.ERROR);
            }
        }