Skip to content

Commit

Permalink
RevitReinforcementCoefficient: Повторная публикация плагина (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
dosymep authored Jun 26, 2024
1 parent 2ca47e4 commit af3969e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ protected override void Execute(UIApplication uiApplication) {
kernel.Bind<ReportWindow>()
.ToSelf()
.InSingletonScope()
.WithPropertyValue(nameof(Window.DataContext), c => c.Kernel.Get<ReportViewModel>());
.WithPropertyValue(nameof(Window.DataContext),
c => c.Kernel.Get<ReportViewModel>());

kernel.Bind<ParamUtils>()
.ToSelf()
Expand Down Expand Up @@ -63,7 +64,8 @@ protected override void Execute(UIApplication uiApplication) {
kernel.Bind<MainViewModel>().ToSelf();
kernel.Bind<MainWindow>().ToSelf()
.WithPropertyValue(nameof(Window.Title), PluginName)
.WithPropertyValue(nameof(Window.DataContext), c => c.Kernel.Get<MainViewModel>());
.WithPropertyValue(nameof(Window.DataContext),
c => c.Kernel.Get<MainViewModel>());

Notification(kernel.Get<MainWindow>());
}
Expand Down

0 comments on commit af3969e

Please sign in to comment.