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;
 }
Exemple #2
0
        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);
        }