public AbstractComponent CreateLinkFile()
        {
            var container = new Ext.Net.Container
            {
                ID     = "LinkFileContainer",
                Layout = "Fit"
            };
            var fileLinkField = new Ext.Net.TextField
            {
                ID           = "LinkFileField",
                FieldLabel   = FieldLabel,
                ReadOnly     = true,
                LabelWidth   = 200,
                Padding      = 5,
                Width        = 500,
                AutoDataBind = true
            };
            var fileLink = new Ext.Net.LinkButton
            {
                ID          = "LinkFileButton",
                Text        = FileName,
                PaddingSpec = "1 0 1 4",
            };

            fileLinkField.LeftButtons.Add(fileLink);
            fileLink.Listeners.Click.Handler = ClickHandler;
            container.Items.Add(fileLinkField);
            return(container);
        }
Esempio n. 2
0
 private Ext.Net.LinkButton __BuildControlbtnChangeImage()
 {
     Ext.Net.LinkButton button = new Ext.Net.LinkButton();
     btnChangeImage = button;
     button.ApplyStyleSheetSkin(this);
     button.ColSpan      = (1);
     button.TextAlign    = (0);
     button.ID           = "btnChangeImage";
     button.Text         = ("看不清?点击这里");
     button.DirectClick -= btnChangeImage_DirectClick;
     button.DirectClick += btnChangeImage_DirectClick;
     object[] parameters = new object[5];
     parameters[0] = button;
     parameters[2] = 0x60d;
     parameters[3] = 0x9c;
     parameters[4] = false;
     this.__PageInspector_SetTraceData(parameters);
     return(button);
 }
Esempio n. 3
0
        private void __BuildControl__control16(ItemsCollection <AbstractComponent> __ctrl)
        {
            TextField field = this.__BuildControltxtUsername();

            __ctrl.Add(field);
            TextField field2 = this.__BuildControltxtPassword();

            __ctrl.Add(field2);
            TextField field3 = this.__BuildControltxtVerifyCode();

            __ctrl.Add(field3);
            Ext.Net.Image image = this.__BuildControlimgVerify();
            __ctrl.Add(image);
            DisplayField field4 = this.__BuildControl__control17();

            __ctrl.Add(field4);
            Ext.Net.LinkButton button = this.__BuildControlbtnChangeImage();
            __ctrl.Add(button);
        }
Esempio n. 4
0
 private Ext.Net.LinkButton __BuildControlbtnChangeImage()
 {
     Ext.Net.LinkButton button = new Ext.Net.LinkButton();
     btnChangeImage = button;
     button.ApplyStyleSheetSkin(this);
     button.ColSpan=(1);
     button.TextAlign=(0);
     button.ID = "btnChangeImage";
     button.Text=("看不清?点击这里");
     button.DirectClick -= btnChangeImage_DirectClick;
     button.DirectClick += btnChangeImage_DirectClick;
     object[] parameters = new object[5];
     parameters[0] = button;
     parameters[2] = 0x60d;
     parameters[3] = 0x9c;
     parameters[4] = false;
     this.__PageInspector_SetTraceData(parameters);
     return button;
 }