ShowDialog() public static method

Creates an InputBox(title,contents) and returns the value of calling ShowDialog() on it
public static ShowDialog ( string title, Panel contents ) : DialogResult
title string
contents Panel
return DialogResult
示例#1
0
        /// <summary>
        /// Creates an InputBox(title,contents) and returns the value of calling ShowDialog() on it
        /// </summary>
        /// <param name="title"></param>
        /// <param name="contents"></param>
        /// <returns></returns>
        public static DialogResult ShowDialog(string title, Panel contents)
        {
            InputBox ib = new InputBox(title, contents);

            return(ib.ShowDialog());
        }
示例#2
0
		/// <summary>
		/// Creates an InputBox(title,contents) and returns the value of calling ShowDialog() on it
		/// </summary>
		/// <param name="title"></param>
		/// <param name="contents"></param>
		/// <returns></returns>
		public static DialogResult ShowDialog(string title, Panel contents)
		{
			InputBox ib = new InputBox(title,contents);
			return ib.ShowDialog();
		}