void buttonHub_OnSelect(object sender, EventArgs e) { if (activeWindow != null) activeWindow.Hide(); activeWindow = windowHub; activeWindow.Show(); }
void settings_OnSelect(object sender, EventArgs e) { if (activeWindow != null) activeWindow.Hide(); activeWindow = windowSetting; activeWindow.Show(); }