public void LibraryFilesTab()
 {
     ImGui.BeginChild("##libtabinner");
     {
         if (ImGui.Button("Add"))
         {
             librarySelector        = new FileSelector(context.FlDirectory);
             librarySelector.Filter = FileSelector.MakeFilter(".utf", ".vms", ".mat", ".txm", ".3db", ".cmp");
             librarySelector.Open();
         }
         ImGui.Separator();
         string newfile;
         if ((newfile = librarySelector.Draw()) != null)
         {
             resources.LibraryFiles.Add(newfile);
             context.LoadLibraries();
         }
         ImGui.BeginChild("##items");
         foreach (var file in resources.LibraryFiles)
         {
             ImGui.Selectable(file);
         }
         ImGui.EndChild();
     }
     ImGui.EndChild();
 }