/// <summary>
 /// This method fires when the modules changed.
 /// </summary>
 /// <param name="e"> The changed modules. </param>
 protected virtual void FireOnModulesChanged(ProcessModulesVMEventArgs e)
 {
     if (this.OnModulesChanged != null)
     {
         this.OnModulesChanged(this, e);
     }
 }
        /// <summary>
        /// This method gets the current modules from the checked process.
        /// </summary>
        /// <param name="sender"> The object sender. </param>
        /// <param name="e"> The processes. </param>
        private void GetCurrentModules(object sender, ProcessModulesVMEventArgs e)
        {
            this.current.Invoke(new Action(() => { this.CurrentModulesFromSelectedProcess.Clear(); }));

            if (e.Current.Count > 0)
            {
                foreach (var item in e.Current)
                {
                    this.current.Invoke(new Action(() => { this.CurrentModulesFromSelectedProcess.Add(item); }));
                }
            }
        }
 /// <summary>
 /// Fires when the modules have changed.
 /// </summary>
 /// <param name="sender"> The object sender. </param>
 /// <param name="e"> The modules. </param>
 private void ChangeModulesOfProcesses(object sender, ProcessModulesVMEventArgs e)
 {
     this.FireOnModulesChanged(e);
 }