SirenOfShame.Lib.Watcher.RulesEngine.BuildDefinitionNotFound C# (CSharp) Method

BuildDefinitionNotFound() private method

private BuildDefinitionNotFound ( object sender, BuildDefinitionNotFoundArgs args ) : void
sender object
args BuildDefinitionNotFoundArgs
return void
        private void BuildDefinitionNotFound(object sender, BuildDefinitionNotFoundArgs args)
        {
            if (args.BuildDefinitionSetting == null)
            {
                _log.Warn("BuildDefinitionNotFound, yet no BuildDefinition provided.");
                return;
            }
            args.BuildDefinitionSetting.Active = false;
            _settings.Save();
            InvokeTrayNotify(ToolTipIcon.Error, "Can't Find " + args.BuildDefinitionSetting.Name, "This build will be removed from the list of watched builds.\nYou may add it back from the 'Configure CI Server' button.");
        }