hack to fix bug since we are now loading the layout xml in OnCreating function instead of constructor
This commit is contained in:
parent
046fe07688
commit
c7303da998
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user