Ignore:
Timestamp:
Dec 15, 2009, 2:19:34 PM (12 years ago)
Author:
Sören Rinne
Message:
  • slight changes and bugfixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Appender/Appender.cs

    r956 r1015  
    346346        #region IPlugin Members
    347347
    348 //#pragma warning disable 67
    349348        public event GuiLogNotificationEventHandler OnGuiLogNotificationOccured;
     349        private void GuiLogMessage(string message, NotificationLevel logLevel)
     350        {
     351            EventsHelper.GuiLogMessage(OnGuiLogNotificationOccured, this, new GuiLogEventArgs(message, this, logLevel));
     352        }
     353
    350354        public event PluginProgressChangedEventHandler OnPluginProgressChanged;
    351 //#pragma warning restore
     355        private void ProgressChanged(double value, double max)
     356        {
     357            EventsHelper.ProgressChanged(OnPluginProgressChanged, this, new PluginProgressEventArgs(value, max));
     358        }
    352359
    353360        public void Execute()
     
    361368
    362369                OnPropertyChanged("Output");
     370                ProgressChanged(1, 1);
    363371            }
    364372            else if (input is String)
     
    366374                output += input;
    367375                OnPropertyChanged("Output");
     376                ProgressChanged(1, 1);
    368377            }
    369378            else
     
    371380                output = "Type not supported";
    372381                OnPropertyChanged("Output");
     382                GuiLogMessage("Input can not be appended: Input type not supported. Supported types are Boolean and String", NotificationLevel.Error);
    373383            }
    374384        }
Note: See TracChangeset for help on using the changeset viewer.