public void ShowInfo() { if (_KeyInfo == null) { _KeyInfo = new KeyInfo(_SafeModel); _KeyInfo.Model = CPwd.PATTERN_INF; _KeyInfo.Init(_DataModel); } if (_PwdView != null) { if (_PwdView.Model == _KeyInfo.Model) { return; } _PwdView.HideView(ScData.Panel2); } _PwdView = _KeyInfo; _PwdView.InitView(ScData.Panel2); }
/// <summary> /// 向导模式 /// </summary> public void ShowAWiz() { if (_WizView == null) { _WizView = new WWiz(this, _UserModel, _SafeModel); _WizView.Model = CPwd.PATTERN_WIZ; _WizView.Init(_DataModel, _ViewModel); } if (_PwdView != null) { if (_PwdView.Model == _WizView.Model) { return; } _PwdView.HideView(ScData.Panel2); } _PwdView = _WizView; _PwdView.InitView(ScData.Panel2); _ViewModel.Pattern = CPwd.PATTERN_WIZ; DoShowCmp(); DoShowKey(_SafeModel.Key); ItemGroup group = _XmlMenu.GetGroup("att-edit"); if (group != null) { group.Visible(false); } }