public bool Configure(IWin32Window owner)
 {
     ConfigureUserName newDialog = new ConfigureUserName(settings);
     newDialog.UserNameSet += delegate(object sender, EventArgs e) { settings = newDialog.UserName; };
     DialogResult result = newDialog.ShowDialog(owner);
     return (result == DialogResult.OK);
 }
        public bool Configure(IWin32Window owner)
        {
            ConfigureUserName newDialog = new ConfigureUserName(settings);

            newDialog.UserNameSet += delegate(object sender, EventArgs e) { settings = newDialog.UserName; };
            DialogResult result = newDialog.ShowDialog(owner);

            return(result == DialogResult.OK);
        }