Esempio n. 1
0
 public void StartUserIdentificationDialog()
 {
     using(var dlg = new UserIdentificationDialog(Environment, Repository))
     {
         if(dlg.Run(Environment.MainForm) == DialogResult.OK)
         {
             _statusbar.UpdateUserIdentityLabel();
         }
     }
 }
Esempio n. 2
0
        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);
                }
            }
        }