Prompts the user to edit a value.
Inheritance: System.Windows.Forms.Form
Ejemplo n.º 1
0
        private void BrowseBTN_Click(object sender, EventArgs e)
        {
            if (CurrentUrlsControl == null)
            {
                return;
            }

            string[] strings = null;

            if (m_urls != null)
            {
                strings = new string[m_urls.Count];

                for (int ii = 0; ii < m_urls.Count; ii++)
                {
                    strings[ii] = m_urls[ii].ToString();
                }
            }

            strings = new EditArrayDlg().ShowDialog(strings, BuiltInType.String, false, null) as string[];

            if (strings == null)
            {
                return;
            }

            List <Uri> urls = new List <Uri>();

            for (int ii = 0; ii < strings.Length; ii++)
            {
                Uri url = Utils.ParseUri(strings[ii]);

                if (url != null)
                {
                    urls.Add(url);
                }
            }

            Urls = urls;

            if (m_UrlsChanged != null)
            {
                m_UrlsChanged(this, e);
            }
        }
Ejemplo n.º 2
0
        private void BrowseBTN_Click(object sender, EventArgs e)
        {
            if (CurrentUrlsControl == null)
            {
                return;
            }

            string[] strings = null;

            if (m_urls != null)
            {
                strings = new string[m_urls.Count];

                for (int ii = 0; ii < m_urls.Count; ii++)
                {
                    strings[ii] = m_urls[ii].ToString();
                }
            }

            strings = new EditArrayDlg().ShowDialog(strings, BuiltInType.String, false, null) as string[];

            if (strings == null)
            {
                return;
            }

            List<Uri> urls = new List<Uri>();

            for (int ii = 0; ii < strings.Length; ii++)
            {
                Uri url = Utils.ParseUri(strings[ii]);

                if (url != null)
                {
                    urls.Add(url);
                }
            }

            Urls = urls;

            if (m_UrlsChanged != null)
            {
                m_UrlsChanged(this, e);
            }
        }