예제 #1
0
파일: GuiProvider.cs 프로젝트: kiple/gitter
 public void Dispose()
 {
     MainToolBar.Dispose();
     Statusbar.Dispose();
     Menus.Dispose();
     _notifications.Dispose();
 }
예제 #2
0
파일: GuiProvider.cs 프로젝트: kiple/gitter
 public void StartUserIdentificationDialog()
 {
     using (var dlg = new UserIdentificationDialog(Environment, Repository))
     {
         if (dlg.Run(Environment.MainForm) == DialogResult.OK)
         {
             Statusbar.UpdateUserIdentityLabel();
         }
     }
 }
예제 #3
0
        /// <summary>Create <see cref="GuiProvider"/>.</summary>
        /// <param name="repositoryProvider">Git repository provider.</param>
        public GuiProvider(RepositoryProvider repositoryProvider)
        {
            Verify.Argument.IsNotNull(repositoryProvider, "repositoryProvider");

            _repositoryProvider = repositoryProvider;

            _mainToolbar   = new GitToolbar(this);
            _viewFactories = new ViewFactoriesCollection(this);
            _statusbar     = new Statusbar(this);
            _menus         = new MainGitMenus(this);
            _notifications = new Notifications(this);
        }
예제 #4
0
파일: GuiProvider.cs 프로젝트: Kuzq/gitter
        /// <summary>Create <see cref="GuiProvider"/>.</summary>
        /// <param name="repositoryProvider">Git repository provider.</param>
        public GuiProvider(RepositoryProvider repositoryProvider)
        {
            Verify.Argument.IsNotNull(repositoryProvider, "repositoryProvider");

            _repositoryProvider = repositoryProvider;

            _mainToolbar	= new GitToolbar(this);
            _viewFactories	= new ViewFactoriesCollection(this);
            _statusbar		= new Statusbar(this);
            _menus			= new MainGitMenus(this);
            _notifications	= new Notifications(this);
        }
예제 #5
0
파일: GuiProvider.cs 프로젝트: kiple/gitter
        /// <summary>Create <see cref="GuiProvider"/>.</summary>
        /// <param name="repositoryProvider">Git repository provider.</param>
        public GuiProvider(RepositoryProvider repositoryProvider)
        {
            Verify.Argument.IsNotNull(repositoryProvider, nameof(repositoryProvider));

            RepositoryProvider = repositoryProvider;

            MainToolBar    = new GitToolbar(this);
            ViewFactories  = new ViewFactoriesCollection(this);
            Statusbar      = new Statusbar(this);
            Menus          = new MainGitMenus(this);
            _notifications = new Notifications(this);
        }