Esempio n. 1
0
        private void FireEvent(Action<object, WikiSourceEventArgs> eventToFire, string fullPath, string oldFullPath = "")
        {
            if (eventToFire != null)
            {
                WikiSourceEventArgs sourceEventArgs = new WikiSourceEventArgs(
                    fullPath,
                    oldFullPath);

                Log.Instance.Log(string.Format("Firing source event {1} -> {0}", fullPath, oldFullPath));

                eventToFire(this, sourceEventArgs);
            }
        }