public LibraryBrowserDisplayPanel()
{
InitializeComponent();
// Make file buttons array
filebuttons = new DisplayButton[DOUBLE_COL_NUM_BUTTONS];
filebuttons[0] = filebutton0;
filebuttons[1] = filebutton1;
filebuttons[2] = filebutton2;
filebuttons[3] = filebutton3;
filebuttons[4] = filebutton4;
filebuttons[5] = filebutton5;
filebuttons[6] = filebutton6;
filebuttons[7] = filebutton7;
filebuttons[8] = filebutton8;
filebuttons[9] = filebutton9;
filebuttons[10] = filebutton10;
filebuttons[11] = filebutton11;
filebuttons[12] = filebutton12;
filebuttons[13] = filebutton13;
filebuttons[14] = filebutton14;
filebuttons[15] = filebutton15;
filebuttons[16] = filebutton16;
filebuttons[17] = filebutton17;
filebuttons[18] = filebutton18;
filebuttons[19] = filebutton19;
filebuttons[20] = filebutton20;
filebuttons[21] = filebutton21;
filebuttons[22] = filebutton22;
filebuttons[23] = filebutton23;
filebuttons[24] = filebutton24;
filebuttons[25] = filebutton25;
filebuttons[26] = filebutton26;
filebuttons[27] = filebutton27;
filebuttons[28] = filebutton28;
filebuttons[29] = filebutton29;
filebuttons[30] = filebutton30;
filebuttons[31] = filebutton31;
filebuttons[32] = filebutton32;
filebuttons[33] = filebutton33;
filebuttons[34] = filebutton34;
filebuttons[35] = filebutton35;
for(int i = 0; i < DOUBLE_COL_NUM_BUTTONS; i++)
filebuttons[i].Visible = false;
// Make directory buttons array
dirbuttons = new DisplayButton[9];
dirbuttons[0] = directorybutton0;
dirbuttons[1] = directorybutton1;
dirbuttons[2] = directorybutton2;
dirbuttons[3] = directorybutton3;
dirbuttons[4] = directorybutton4;
dirbuttons[5] = directorybutton5;
dirbuttons[6] = directorybutton6;
dirbuttons[7] = directorybutton7;
dirbuttons[8] = directorybutton8;
// Setup root path
if(General.AppRunning)
{
currentpath = General.Settings.LibraryRoot;
RefreshDirButtons();
}
}