Example #1
0
        protected override void SettingsToPage()
        {
            if (_gitPlugin == null)
            {
                throw new ApplicationException();
            }

            foreach (var setting in _gitPlugin.GetSettings())
            {
                setting.ControlBinding.GetControl();
                setting.ControlBinding.LoadSetting(_gitPlugin.Settings);
            }
        }
Example #2
0
        private IEnumerable <ISetting> GetSettings()
        {
            if (_gitPlugin == null)
            {
                throw new ApplicationException();
            }

            return(_gitPlugin.GetSettings());
        }
Example #3
0
        private IEnumerable <ISetting> GetSettings()
        {
            if (_gitPlugin is null)
            {
                throw new ApplicationException();
            }

            return(_gitPlugin.HasSettings ? _gitPlugin.GetSettings() : Array.Empty <ISetting>());
        }