void ShowUserProfileDialog() { using (UserProfileForm form = new UserProfileForm(CurrentProfile)) { if (form.ShowDialog(this) == DialogResult.OK) { CurrentProfile.Assign(form.CurrentUser); VirtualAssistant.Plugins.GetPluginByType <SimlPlugin>().Bot.MainUser.Settings["Name"].Value = CurrentProfile.FirstName; } } }