Example #1
0
        public bool ShowEditDialog(string title, string text, string oldname, bool file, out string newname)
        {
            var dialog = new EditDialog(title, text, oldname, file);
            var result = dialog.Run(this) == DialogResult.Ok;

            newname = dialog.Text;

            return(result);
        }
        public bool ShowEditDialog(string title, string text, string oldname, bool file, out string newname)
        {
            var dialog = new EditDialog(title, text, oldname, file);
            var result = dialog.Show(this);

            newname = dialog.Text;

            return result;
        }