Example #1
0
 /// <summary>
 /// Dispose 方法
 /// </summary>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         TitleService.UnRegister(this);
     }
 }
Example #2
0
        /// <summary>
        /// OnInitialized 方法
        /// </summary>
        protected override void OnInitialized()
        {
            base.OnInitialized();

            if (string.IsNullOrEmpty(Text))
            {
                TitleService.Register(this, SetTitle);
            }
        }