protected override void OnPopulateMenu(ContextMenuStrip contextMenuStrip) { if (FileWatcherService.IsDirty) { contextMenuStrip.AddItem("Синхронизировать всё и прямо сейчас", (sender, args) => FileWatcherService.Sync()); } }