public void StartUserIdentificationDialog() { using (var dlg = new UserIdentificationDialog(Environment, Repository)) { if (dlg.Run(Environment.MainForm) == DialogResult.OK) { _statusbar.UpdateUserIdentityLabel(); } } }
public void OnRepositoryLoaded(IRepository repository) { Verify.Argument.IsNotNull(repository, nameof(repository)); var gitRepository = repository as Repository; Verify.Argument.IsTrue(gitRepository != null, nameof(repository)); if (gitRepository.UserIdentity == null) { using (var dlg = new UserIdentificationDialog(_environment, gitRepository)) { dlg.Run(_environment.MainForm); } } }