public RegistCtrl()
        {
            InitializeComponent();

            NumInput = new NumericTouchpad();
            NumInput.Visibility = Visibility.Hidden;
            cvsMain.Children.Add(NumInput);

            this.Visibility = Visibility.Hidden;
        }
        private void ctrlsObjInit()
        {
            sSetTimeCtrl = new SetTimeCtrl();
            cvsMain.Children.Add(sSetTimeCtrl);
            SNumInput = new NumericTouchpad();
            cvsMain.Children.Add(SNumInput);
            SNumKeyPanel = new numKeyCtrl();
            cvsMain.Children.Add(SNumKeyPanel);
            sMsgBox = new myMessageBox();
            cvsMain.Children.Add(sMsgBox);

            SCharKeyPanel = charKeyPanel;
            SUserPanel = userPanel;
            SLockScreenPanel = lockScreenPanel;
            SSysExitPanel = sysExitPanel;
            SCalcPanel = calcPanel;
            SLinkPlcPanel = linkPlcPanel;
            SIpSetPanel = ipSetPanel;
            sRegistCtrl = registCtrl;

            SIpSerSetPanel = ipSerSetPanel;
            SLoadConfFilePanel = loadConfFilePanel;
            SSaveConfFilePanel = saveConfFilePanel;
            SFileCoveredAlarmPanel = fileCoveredAlarmPanel;
            SIprCtrl = mainPanel.interpretorPage1;
            cvsMain.Children.Add(exportEventHistoryPanel);
            SExportEventHistoryPanel = exportEventHistoryPanel;
            SLoadFromUsbPanel = loadFromUsbCtrl1;

            gdMain.Children.Add(exportIprFilePanel);
            SExportFilePanel = exportIprFilePanel;
            gdMain.Children.Add(loadIprFilePanle);
            SLoadIprFilePanel = loadIprFilePanle;
            gdMain.Children.Add(upgradePanel);
            SUpgradePanel = upgradePanel;
        }