Ejemplo n.º 1
0
        //// Replace the matched text in the InputText using the replacement pattern
        // string result = regex.Replace(InputText,regexReplace);

        //// Split the InputText wherever the regex matches
        // string[] results = regex.Split(InputText);

        //// Capture the first Match, if any, in the InputText
        // Match m = regex.Match(InputText);

        //// Capture all Matches in the InputText
        // MatchCollection ms = regex.Matches(InputText);

        //// Test to see if there is a match in the InputText
        // bool IsMatch = regex.IsMatch(InputText);

        //// Get the names of all the named and numbered capture groups
        // string[] GroupNames = regex.GetGroupNames();

        //// Get the numbers of all the named and numbered capture groups
        // int[] GroupNumbers = regex.GetGroupNumbers();



        public static void Show(Form owner)
        {
            using (DialogAbout d = new DialogAbout())
            {
                d.ShowDialog(owner);
            }
        }
Ejemplo n.º 2
0
        protected override void WndProc(ref Message m)
        {
            // Test if the About item was selected from the system menu
            if (m.Msg == WM_SYSCOMMAND)
            {
                switch (m.WParam.ToInt32())
                {
                case IDM_ABOUT:
                    DialogAbout.Show(this);
                    return;

                default:
                    break;
                }
            }
            base.WndProc(ref m);
        }