private static void Init() { Palette.AddPalette("Свойства", new PalettePropsView(propsVM)); Application.DocumentManager.DocumentCreated += DocumentManager_DocumentCreated; foreach (var doc in Application.DocumentManager) { DocumentSelectionChangeSubscribe(doc as Document); } }