public OutputAdapterControlAdapter(OutputAdapterControl outputControl, ControlAdapter original, Control control, String xslPath)
		{
			this.OutputControl = outputControl;
			this.Original = original;
			this.XslPath = xslPath;
			controlField.SetValue(this, control);
		}
		private void setControlAdapter(Control control, ControlAdapter controlAdapter)
		{
			Object occasionalFields = occasionalFieldsField.GetValue(control);
			FieldInfo rareFieldsField = occasionalFields.GetType().GetField("RareFields");
			Object rareFields = rareFieldsField.GetValue(occasionalFields);
			FieldInfo adapterField = rareFields.GetType().GetField("Adapter");
			adapterField.SetValue(rareFields, controlAdapter);
		}
コード例 #3
0
        private void RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) {
            try {
                BeginRenderTracing(writer, this);

                if (adapter != null) {
                    // 
                    adapter.BeginRender(writer);
                    adapter.Render(writer);
                    adapter.EndRender(writer);
                }
                else {
                    Render(writer);
                }
            }
            finally {
                EndRenderTracing(writer, this);
            }
        }
コード例 #4
0
 /// <devdoc>
 ///    <para>Used for MobilePage implementation.</para>
 /// </devdoc>
 protected void RenderControl(HtmlTextWriter writer, ControlAdapter adapter) {
     if (!flags[invisible] && !flags[notVisibleOnPage]) {
         HttpContext context = (Page == null) ? null : Page._context;
         if (context  != null && context.TraceIsEnabled) {
             int presize = context.Response.GetBufferedLength();
             RenderControlInternal(writer, adapter);
             int postsize = context.Response.GetBufferedLength();
             context.Trace.AddControlSize(UniqueID, postsize - presize);
         }
         else {
             RenderControlInternal(writer, adapter);
         }
     }
     else {
         TraceNonRenderingControlInternal(writer);
     }
 }
コード例 #5
0
ファイル: Control.cs プロジェクト: stabbylambda/mono
		protected void RenderControl (HtmlTextWriter writer, ControlAdapter adapter)
		{
			if ((stateMask & VISIBLE) != 0) {
				adapter.BeginRender (writer);
				adapter.Render (writer);
				adapter.EndRender (writer);
			}
		}
コード例 #6
0
 protected void RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
 {
   Contract.Requires(writer != null);
 }
コード例 #7
0
 private void RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
 {
     if (adapter != null)
     {
         adapter.BeginRender(writer);
         adapter.Render(writer);
         adapter.EndRender(writer);
     }
     else
     {
         this.Render(writer);
     }
 }
コード例 #8
0
 protected void RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
 {
     if (!this.flags[0x10] && !this.flags[0x200])
     {
         HttpContext context = (this.Page == null) ? null : this.Page._context;
         if ((context != null) && context.TraceIsEnabled)
         {
             int bufferedLength = context.Response.GetBufferedLength();
             this.RenderControlInternal(writer, adapter);
             int num2 = context.Response.GetBufferedLength();
             context.Trace.AddControlSize(this.UniqueID, num2 - bufferedLength);
         }
         else
         {
             this.RenderControlInternal(writer, adapter);
         }
     }
 }
コード例 #9
0
 protected void RenderControl(HtmlTextWriter writer, ControlAdapter adapter);