コード例 #1
0
        protected virtual void OnModuleUnloaded(ModuleUnloadedEventArgs e)
        {
            var handler = ModuleUnloaded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #2
0
 private void ModuleManagerOnModuleUnloaded(object sender, ModuleUnloadedEventArgs args)
 {
     _moduleCommands.Remove(args.Module.Name);
 }
コード例 #3
0
 public void GivenAModuleManager()
 {
     ModuleManager = new ModuleManager();
     ModuleManager.ModuleLoaded += (sender, args) => { ModuleLoadedEventArgs = args; };
     ModuleManager.ModuleUnloaded += (sender, args) => { ModuleUnloadedEventArgs = args; };
 }