private void treeViewChannel_AfterSelect(object sender, TreeViewEventArgs e) { if (MainForm.panelChannelProperties.Visible) ShowProperties(); }