protected override void SettingsToPage() { if (_gitPlugin == null) { throw new ApplicationException(); } foreach (var setting in _gitPlugin.GetSettings()) { setting.ControlBinding.GetControl(); setting.ControlBinding.LoadSetting(_gitPlugin.Settings); } }
private IEnumerable <ISetting> GetSettings() { if (_gitPlugin == null) { throw new ApplicationException(); } return(_gitPlugin.GetSettings()); }
private IEnumerable <ISetting> GetSettings() { if (_gitPlugin is null) { throw new ApplicationException(); } return(_gitPlugin.HasSettings ? _gitPlugin.GetSettings() : Array.Empty <ISetting>()); }