private void accountTree_RootNodeSelectedEvent(object sender, Johnny.Kaixin.Controls.AccountTree.RootNodeEventArgs e) { try { //get the top form MainForm mainform = this.TopLevelControl as MainForm; if (mainform != null) { mainform.AccountRootNodeSelected(e.Groups); } } catch (Exception ex) { Program.ShowMessageBox("FrmAccountManager", ex); } }