static void Main(string[] args) { ServerConnection sc = ConnectToDocs(); Guid PM_ref_Guid = new Guid("86ef25d4-f431-4607-be15-f52b551022ff"); //MacroContext mc = new MacroContext(sc); ReferenceObject ro = ReferenceCatalog.FindReference(PM_ref_Guid).CreateReference().Find(231204); Wpf_SyncCompositionPE.Model.SyncCompositionPE syncCompositionPE = new Wpf_SyncCompositionPE.Model.SyncCompositionPE(); syncCompositionPE.StartRefObject = ro; if (HelperMethod.IsListNullOrEmpty(syncCompositionPE.DetailingProjects)) { DisplayMessage.ShowError("Синхронизация состава работа", "Ошибка, выбранный элемент проекта не имеет детализаций!"); return; } var view = new MainWindow(); view.viewModel.syncCompositionPE = syncCompositionPE; view.ShowDialog(); //dynamic macro = new Cancelaria.Macro(mc); //macro.Test(); //return; //var project = References.ProjectManagementReference.Find(346161); //План ОПК //var dialog = new Report.Views.Report_View(project); //dialog.ShowDialog(); Console.ReadKey(); }