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, "repository"); var gitRepository = repository as Repository; Verify.Argument.IsTrue(gitRepository != null, "repository"); if(gitRepository.UserIdentity == null) { using(var dlg = new UserIdentificationDialog(_environment, gitRepository)) { dlg.Run(_environment.MainForm); } } }