Пример #1
0
        public static bool InputBox(string Title,string Text,ref string Input)
        {
            fmInput fm=new fmInput();

            fm.lbText.Text=Text;
            fm.Text=Title;

            fm.edInput.Text = Input;

            bool bl=fm.ShowDialog()==DialogResult.OK;
            if (bl) Input = fm.edInput.Text;

            fm.Dispose();

            return bl;
        }
Пример #2
0
        public static bool InputBox(string Title, string Text, ref string Input)
        {
            fmInput fm = new fmInput();

            fm.lbText.Text = Text;
            fm.Text        = Title;

            fm.edInput.Text = Input;

            bool bl = fm.ShowDialog() == DialogResult.OK;

            if (bl)
            {
                Input = fm.edInput.Text;
            }

            fm.Dispose();

            return(bl);
        }