public FrmMain() { InitializeComponent(); _commandExecuter = new CommandExecuterService(); _commandExecuter.AddUpdateObserver(this); _cacHelper = new GacHelperService(GetTargetDirectory, _commandExecuter); _directoryHelperService = new DirectoryHelperService(GetTargetDirectory, _cacHelper); mylist.ItemChecked += Mylist_ItemChecked; RefreshButtonByCheck(); _MyCOMAdmin = new MyCOMAdmin(); }