Beispiel #1
0
        protected void OnCalculated(CalculatedEventArgs args)
        {
            // TODO: Log final result

            if (Calculated != null)
            {
                Calculated(this, args);
            }
        }
Beispiel #2
0
        protected void OnCalculated(CalculatedEventArgs args)
        {
            // TODO: Log final result
            CalculatorEventSource.Log.Calculated(args.Digits);

            if (Calculated != null)
            {
                Calculated(this, args);
            }
        }
        protected void OnCalculated(CalculatedEventArgs args)
        {
            // TODO: Log final result
            Logger.Write(string.Format("Calculated PI to {0} digits", args.Digits),
                         Category.General,
                         Priority.Normal,
                         100);

            if (Calculated != null)
            {
                Calculated(this, args);
            }
        }
Beispiel #4
0
        protected void OnCalculated(CalculatedEventArgs args)
        {
            // TODO: Log final result
            LogEntry log = new LogEntry();

            log.Message = string.Format("Calculated PI to {0} digits", args.Digits);
            log.Categories.Add(Category.General);
            log.Priority = Priority.Normal;

            writer.Write(log);

            if (Calculated != null)
            {
                Calculated(this, args);
            }
        }