예제 #1
0
파일: InitDialog.cs 프로젝트: kiple/gitter
        public InitDialog(IGitRepositoryProvider gitRepositoryProvider)
        {
            Verify.Argument.IsNotNull(gitRepositoryProvider, nameof(gitRepositoryProvider));

            GitRepositoryProvider = gitRepositoryProvider;

            InitializeComponent();
            Localize();

            var inputs = new IUserInputSource[]
            {
                RepositoryPath    = new TextBoxInputSource(_txtPath),
                Bare              = new CheckBoxInputSource(_chkBare),
                UseCustomTemplate = new CheckBoxInputSource(_chkUseTemplate),
                Template          = new TextBoxInputSource(_txtTemplate),
            };

            ErrorNotifier = new UserInputErrorNotifier(NotificationService, inputs);

            GitterApplication.FontManager.InputFont.Apply(_txtPath, _txtTemplate);

            _controller = new InitController(gitRepositoryProvider)
            {
                View = this
            };
        }
예제 #2
0
파일: InitDialog.cs 프로젝트: Kuzq/gitter
        public InitDialog(IGitRepositoryProvider gitRepositoryProvider)
        {
            Verify.Argument.IsNotNull(gitRepositoryProvider, "gitRepositoryProvider");

            _gitRepositoryProvider = gitRepositoryProvider;

            InitializeComponent();
            Localize();

            var inputs = new IUserInputSource[]
            {
                _repositoryPathInput    = new TextBoxInputSource(_txtPath),
                _bareInput              = new CheckBoxInputSource(_chkBare),
                _useCustomTemplateInput = new CheckBoxInputSource(_chkUseTemplate),
                _templateInput          = new TextBoxInputSource(_txtTemplate),
            };
            _errorNotifier = new UserInputErrorNotifier(NotificationService, inputs);

            GitterApplication.FontManager.InputFont.Apply(_txtPath, _txtTemplate);

            _controller = new InitController(gitRepositoryProvider) { View = this };
        }