Exemple #1
0
        /// <summary>
        /// 添加一个显示通知的控件,这样有流程控件的表单,就可以显示提醒的内容
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {
            this.Controls.Add(new NotifyDialogControl());
            WebBrowserWrapper.Register(this);

            base.OnInit(e);
        }
		/// <summary>
		/// 注册一个控件
		/// </summary>
		/// <param name="container"></param>
		public static void Register(Control container)
		{
			container.NullCheck("container");

			if (WebBrowserWrapper.Current == null)
			{
				WebBrowserWrapper wb = new WebBrowserWrapper();

				container.Controls.Add(wb);
			}
		}
Exemple #3
0
        /// <summary>
        /// 注册一个控件
        /// </summary>
        /// <param name="container"></param>
        public static void Register(Control container)
        {
            container.NullCheck("container");

            if (WebBrowserWrapper.Current == null)
            {
                WebBrowserWrapper wb = new WebBrowserWrapper();

                container.Controls.Add(wb);
            }
        }