Пример #1
0
 /// <summary>
 /// Updates the filters for the parts list.
 /// </summary>
 /// <param name="mod">The <see cref="FilterModification"/> being updated.</param>
 /// <param name="o">An object associated with the specific <see cref="FilterModification"/> type.</param>
 private void UpdateFilter(FilterModification mod, object o)
 {
     Program.AddDebugLog("Filter Change Event: " + mod.ToString());
     this.FilterChanged(this, new FilterEventArgs()
     {
         Modified = mod, Object = o
     });
 }
Пример #2
0
        private void OnUpdate(FilterModification mod, object o)
        {
            FilterEventArgs ev = new FilterEventArgs()
            {
                Modified = mod, Object = o
            };

            if (FilterChanged != null)
            {
                FilterChanged(this, ev);
            }
        }
Пример #3
0
 private void OnUpdate(FilterModification mod, object o)
 {
     FilterEventArgs ev = new FilterEventArgs() { Modified = mod, Object = o };
     if (FilterChanged != null)
         FilterChanged(this, ev);
 }