예제 #1
0
        private string PromptName(string name)
        {
            var qf = new QuickForm(ProfileName)
            {
                UseShortcutKeys = true
            };

            qf.TextBox("ProfileName", ProfileName, name);
            qf.OkCancel(OK, Cancel);

            if (qf.ShowDialog() != DialogResult.OK)
            {
                return(null);
            }

            var n = qf.String("ProfileName");

            return(String.IsNullOrEmpty(n) ? null : n);
        }