/// <summary> /// Initializes a new instance of the <see cref="FullRegisterView"/> class. /// </summary> public FullRegisterView() { InitializeComponent(); #region " Use MEF To load the View Model " if (!ViewModelBase.IsInDesignModeStatic) { CompositionInitializer.SatisfyImports(this); } #endregion #region initialize the UserControl Width & Height ViewsAdjustSize viewsAdjustSize = new ViewsAdjustSize(this); #endregion initialize the UserControl Width & Height #region Initialize Registeration type if (!ViewModelBase.IsInDesignModeStatic) { ((UserRegisterViewModel)this.DataContext).IsQuickRegister = false; } #endregion #region Registeration for needed messages in eNegMessenger eNegMessanger.SendCustomMessage.Register(this, OnUpdateMessage); #endregion }
/// <summary> /// Initializes a new instance of the <see cref="ManageOrganizationView"/> class. /// </summary> public ManageOrganizationView() { InitializeComponent(); #region → Use MEF To load the View Model . if (!ViewModelBase.IsInDesignModeStatic) { // Use MEF To load the View Model CompositionInitializer.SatisfyImports(this); } #endregion #region → Initialize the UserControl Width & Height . ViewsAdjustSize ViewsAdjustSize = new ViewsAdjustSize(this); #endregion Intialize PageSize #region → Registeration for needed messages in eNegMessenger . eNegMessanger.SendCustomMessage.Register(this, OnUpdateMessage); eNegMessanger.EditUserOrganizationMessage.Register(this, OnEditUserOrganizationMessage); #endregion }