コード例 #1
0
ファイル: GuiProvider.cs プロジェクト: oqewok/gitter
 public void StartUserIdentificationDialog()
 {
     using (var dlg = new UserIdentificationDialog(Environment, Repository))
     {
         if (dlg.Run(Environment.MainForm) == DialogResult.OK)
         {
             _statusbar.UpdateUserIdentityLabel();
         }
     }
 }
コード例 #2
0
ファイル: RepositoryProvider.cs プロジェクト: kiple/gitter
        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);
                }
            }
        }