Exemplo n.º 1
0
        protected void ApplyProperties(EventType eventType, EventType newEventType)
        {
            // Copy properties and commit the changes.

            eventType.CopyProperties(newEventType);
            eventType.Commit();
        }
Exemplo n.º 2
0
        private void SetIsEnabled(bool isEnabled)
        {
            using (new LongRunningMonitor(Snapin))
            {
                foreach (object data in GetSelectedResultDatas())
                {
                    EventType eventType = data as EventType;
                    if (eventType != null)
                    {
                        // Update.

                        eventType.IsEnabled = isEnabled;
                        eventType.Commit();
                    }
                }

                // Refresh the display.

                UpdateSelectedResultImages();
            }
        }