public UcPassAtt(KeyBody body, UserModel userModel) { _Body = body; _UserModel = userModel; InitializeComponent(); }
public UcMemoAtt(KeyBody body) { _Body = body; InitializeComponent(); }
private void ShowBody() { if (_KeyBody == null) { _KeyBody = new KeyBody(this, _UserModel, _SafeModel); _KeyBody.Init(_DataModel, _ViewModel); _KeyBody.Name = "body"; _KeyBody.InitView(PlMain); } if (_LastView != null && _LastView != _KeyBody) { _LastView.HideView(PlMain); _KeyBody.InitView(PlMain); BtPrevStep.Enabled = true; BtNextStep.Text = "保存(&S)"; } _LastView = _KeyBody; _LastView.ShowData(); }