Resolve "Component: Text Element Navigator" #67

Merged
thorsten merged 43 commits from 11-component-text-element-navigator into main 2022-07-23 19:29:16 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit f1fc782506 - Show all commits

No files matched your search

@@ -13,7 +13,9 @@ public partial class SectionTree : UserControl
public SectionTree() public SectionTree()
{ {
this.InitializeComponent(); this.InitializeComponent();
if(this.DesignMode)
// Check if we are in the designer:
if(Program.SERVICE_PROVIDER is null)
return; return;
// Get the DI context from the main form: // Get the DI context from the main form:
+1 -1
View File
@@ -8,7 +8,7 @@ namespace UI_WinForms;
internal static class Program internal static class Program
{ {
internal const string VERSION = "v0.1.0"; internal const string VERSION = "v0.1.0";
internal static IServiceProvider SERVICE_PROVIDER = null!; internal static IServiceProvider? SERVICE_PROVIDER;
[STAThread] [STAThread]
private static void Main() private static void Main()