예제 #1
0
        private void Reload()
        {
            needReload = false;
            Enabled    = renderOptions != null;
            if (renderOptions != null)
            {
                publishSourcesCheckbox.Checked    = renderOptions.publishSourceData;
                permitCompositionCheckbox.Checked = renderOptions.permitComposition;
                renderToFileRadio.Checked         = renderOptions.renderToOptions is RenderToFileOptions;
                renderToS3radio.Checked           = renderOptions.renderToOptions is RenderToS3Options;
                if (renderOptions.renderToOptions is RenderToFileOptions &&
                    !(renderToControl is RenderToFileControl))
                {
                    destroyRenderToControl();
                    RenderToFileControl renderToFileControl = new RenderToFileControl();
                    renderToFileControl.Configure((RenderToFileOptions)renderOptions.renderToOptions);
                    renderToFileControl.Location = new Point(0, 46);
                    renderToControl = renderToFileControl;
                }

                if (renderOptions.renderToOptions is RenderToS3Options &&
                    !(renderToControl is RenderToS3Control))
                {
                    destroyRenderToControl();
                    RenderToS3Control renderToS3Control = new RenderToS3Control();
                    renderToS3Control.Configure((RenderToS3Options)renderOptions.renderToOptions);
                    renderToS3Control.Location = new Point(0, 46);
                    renderToControl            = renderToS3Control;
                }

                renderToControl.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
                renderToControl.Size   = new Size(panel1.Width, renderToControl.Height);
                panel1.Controls.Add(renderToControl);
            }
        }
예제 #2
0
 private void Reload()
 {
     this.needReload = false;
     base.Enabled    = (this.renderOptions != null);
     if (this.renderOptions != null)
     {
         this.publishSourcesCheckbox.Checked    = this.renderOptions.publishSourceData;
         this.permitCompositionCheckbox.Checked = this.renderOptions.permitComposition;
         this.renderToFileRadio.Checked         = (this.renderOptions.renderToOptions is RenderToFileOptions);
         this.renderToS3radio.Checked           = (this.renderOptions.renderToOptions is RenderToS3Options);
         if (this.renderOptions.renderToOptions is RenderToFileOptions && !(this.renderToControl is RenderToFileControl))
         {
             this.destroyRenderToControl();
             RenderToFileControl renderToFileControl = new RenderToFileControl();
             renderToFileControl.Configure((RenderToFileOptions)this.renderOptions.renderToOptions);
             renderToFileControl.Location = new Point(0, 46);
             this.renderToControl         = renderToFileControl;
         }
         if (this.renderOptions.renderToOptions is RenderToS3Options && !(this.renderToControl is RenderToS3Control))
         {
             this.destroyRenderToControl();
             RenderToS3Control renderToS3Control = new RenderToS3Control();
             renderToS3Control.Configure((RenderToS3Options)this.renderOptions.renderToOptions);
             renderToS3Control.Location = new Point(0, 46);
             this.renderToControl       = renderToS3Control;
         }
         this.renderToControl.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
         this.renderToControl.Size   = new Size(this.panel1.Width, this.renderToControl.Height);
         this.panel1.Controls.Add(this.renderToControl);
     }
 }
예제 #3
0
		private void Reload()
		{
			this.needReload = false;
			base.Enabled = (this.renderOptions != null);
			if (this.renderOptions != null)
			{
				this.publishSourcesCheckbox.Checked = this.renderOptions.publishSourceData;
				this.permitCompositionCheckbox.Checked = this.renderOptions.permitComposition;
				this.renderToFileRadio.Checked = (this.renderOptions.renderToOptions is RenderToFileOptions);
				this.renderToS3radio.Checked = (this.renderOptions.renderToOptions is RenderToS3Options);
				if (this.renderOptions.renderToOptions is RenderToFileOptions && !(this.renderToControl is RenderToFileControl))
				{
					this.destroyRenderToControl();
					RenderToFileControl renderToFileControl = new RenderToFileControl();
					renderToFileControl.Configure((RenderToFileOptions)this.renderOptions.renderToOptions);
					renderToFileControl.Location = new Point(0, 46);
					this.renderToControl = renderToFileControl;
				}
				if (this.renderOptions.renderToOptions is RenderToS3Options && !(this.renderToControl is RenderToS3Control))
				{
					this.destroyRenderToControl();
					RenderToS3Control renderToS3Control = new RenderToS3Control();
					renderToS3Control.Configure((RenderToS3Options)this.renderOptions.renderToOptions);
					renderToS3Control.Location = new Point(0, 46);
					this.renderToControl = renderToS3Control;
				}
				this.renderToControl.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
				this.renderToControl.Size = new Size(this.panel1.Width, this.renderToControl.Height);
				this.panel1.Controls.Add(this.renderToControl);
			}
		}