Exemple #1
0
 protected void OnWarningRaised(GeneratorMessageEventArgs e)
 {
     if (this.WarningRaised != null)
     {
         this.WarningRaised(this, e);
     }
 }
Exemple #2
0
 protected void OnInfoRaised(GeneratorMessageEventArgs e)
 {
     if (this.InfoRaised != null)
     {
         this.InfoRaised(this, e);
     }
 }
Exemple #3
0
 private void ReportFileWriteSkip(string path)
 {
     var warningMessage = string.Format(AlertMessages.SkipedFileXBecauseItAlreadyExists, Path.GetFileName(path));
     var ea = new GeneratorMessageEventArgs(warningMessage);
     this.OnWarningRaised(ea);
 }
Exemple #4
0
 private void ReportProcessBootstrap()
 {
     var infoMessage = string.Format(AlertMessages.StartingGeneratorionForProjectX, Path.GetFileName(this.ProjectPath));
     var ea = new GeneratorMessageEventArgs(infoMessage);
     this.OnInfoRaised(ea);
 }
Exemple #5
0
        private void ReportFeaturesFound(IEnumerable<Feature> features)
        {
            var featureNames = features.Select(d => d.File);
            var bulletSymbol = string.Concat(Environment.NewLine, "\t- ");

            var infoMessage = string.Format(
                AlertMessages.WeHaveFoundTheFollowingFeaturesX,
                string.Concat(
                    "\t",
                    string.Join(bulletSymbol, featureNames),
                    Environment.NewLine));

            var ea = new GeneratorMessageEventArgs(infoMessage);
            this.OnInfoRaised(ea);
        }