Skip to content

Commit

Permalink
load SMPTE dictionary as soon as possible (before main form gets loaded)
Browse files Browse the repository at this point in the history
  • Loading branch information
feigenanton authored and rayden84 committed Jan 13, 2023
1 parent 1698d88 commit 5a9e7ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions MXFInspect/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#endregion

using Myriadbits.MXF;
using Myriadbits.MXF.Identifiers;
using System;
using System.Collections.Specialized;
using System.IO;
Expand All @@ -38,6 +39,9 @@ public partial class FormMain : Form
public FormMain()
{
InitializeComponent();

// Load SMPTE dictionary as soon as possible to avoid one-time-lag when opening the first MXF File
SMPTEULDictionary.GetEntries();
}

/// <summary>
Expand All @@ -51,8 +55,8 @@ private void Main_Load(object sender, EventArgs e)
this.m_mru = Properties.Settings.Default.MRU;
FillMRU();
this.UpdateMenu();
this.tslVersion.Text = string.Format("Version: {0}", typeof(FormMain).Assembly.GetName().Version.ToString());

this.tslVersion.Text = $"Version: {typeof(FormMain).Assembly.GetName().Version}";
RefreshStatusStrip();
}

Expand Down

0 comments on commit 5a9e7ec

Please sign in to comment.