void ServerManager_OnNewPasswordGenerated(object sender, Providers.Nova.Modules.PasswordGeneratedEventArgs e) { Dispatcher.Invoke(new Action(() => { LabelPassword.Content = e.NewPassword; })); }
void ServerManager_OnNewPasswordGenerated(object sender, PasswordGeneratedEventArgs e) { LabelPassword.Set(() => LabelPassword.Text, e.NewPassword); }