protected override FrmDetailBase GetDetailForm() { var frm = new FrmDeviceDetail(); if (facilityTree.SelectedNode != null && facilityTree.SelectedNode.Tag != null) { Division pc = facilityTree.SelectedNode.Tag as Division; if (pc != null) frm.ParentDivision = pc; } return frm; }
protected override FrmDetailBase GetDetailForm() { var frm = new FrmDeviceDetail(); if (facilityTree.SelectedNode != null && facilityTree.SelectedNode.Tag != null) { Division pc = facilityTree.SelectedNode.Tag as Division; if (pc != null) { frm.ParentDivision = pc; } } return(frm); }