private void SectionBox_SelectedIndexChanged(object sender, EventArgs e) { if (SectionBox.SelectedIndex != -1) { FormAdministrator.CurrentFolder = SectionBox.SelectedTab.Text; ActionAdministrator.Load(); EventsAdministrator.Load(); } }
public Form1() { InitializeComponent(); FormAdministrator.main = this; SectionAdministrator.Load(); if (SectionBox.TabPages.Count != 0) { FormAdministrator.CurrentFolder = SectionBox.TabPages[0].Text; } ActionAdministrator.Load(); EventsAdministrator.Load(); }