示例#1
0
        protected void ShowControlType()
        {
            List <String> list = new List <string>();

            GetControlType(this, list);
            StringBuilder builder = new StringBuilder();

            foreach (String item in list)
            {
                builder.AppendLine(item);
            }
            FormText formText = new FormText();

            formText.SetText(builder.ToString());
            formText.ShowDialog();
        }
示例#2
0
        protected void ShowLanguageKeyValues()
        {
            Dictionary <String, String> dict = new Dictionary <string, string>();

            GetLanguageKeyValues(this, this.GetType().Name, dict);
            StringBuilder builder = new StringBuilder();

            foreach (KeyValuePair <string, string> item in dict)
            {
                builder.AppendLine(String.Format("<item name=\"{0}\">{1}</item>", item.Key, item.Value));
            }
            FormText formText = new FormText();

            formText.SetText(builder.ToString());
            formText.ShowDialog();
        }