hack to fix bug since we are now loading the layout xml in OnCreating function instead of constructor

This commit is contained in:
Michael Becker 2020-03-19 10:53:08 -04:00
parent 046fe07688
commit c7303da998
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12
2 changed files with 9 additions and 12 deletions

View File

@ -31,9 +31,17 @@ namespace UniversalEditor.Plugins.Multimedia.UserInterface.Editors.Multimedia.Pl
private ListView lvPlaylist = null;
private DefaultTreeModel tmPlaylist = null;
private void InitializeComponent()
protected override void OnCreating(EventArgs e)
{
base.OnCreating(e);
lvPlaylist.Model = tmPlaylist;
// fuckkkk
for (int i = 0; i < tmPlaylist.Columns.Count; i++)
{
lvPlaylist.Columns[i].Column = tmPlaylist.Columns[i];
}
}
}
}

View File

@ -27,17 +27,6 @@ namespace UniversalEditor.Plugins.Multimedia.UserInterface.Editors.Multimedia.Pl
{
public partial class PlaylistEditor
{
public PlaylistEditor()
{
InitializeComponent();
// fuckkkk
for (int i = 0; i < tmPlaylist.Columns.Count; i++)
{
lvPlaylist.Columns[i].Column = tmPlaylist.Columns[i];
}
}
private static EditorReference _er = null;
public override EditorReference MakeReference()
{