Esempio n. 1
0
        private void LoadControl()
        {
            ImageControl = new ImageView();
            ImageControl.SelectedChanged += new ListViewItemSelectionChangedEventHandler(ImageControl_SelectedChanged);
            ImageControl.Dock = DockStyle.Fill;
            tpGeneral.Controls.Add(ImageControl);

            DatabindControl = new DataBind();
            DatabindControl.Dock = DockStyle.Fill;
            tpAdvanced.Controls.Add(DatabindControl);
        }
Esempio n. 2
0
        private void AddControl()
        {
            DataBindControl = new DataBind();
            DataBindControl.Dock = DockStyle.Fill;
            tpAdvanced.Controls.Add(DataBindControl);

            if (!Script.StartsWith(ScriptUtility.LEFTBRACE.ToString()))
            {
                rtbScript.Text = Script;
                tpGeneral.Select();
                tabContainer.SelectedTab = tpGeneral;
            }
            else
            {
                DataBindControl.Script = Script;
                tpAdvanced.Select();
                tabContainer.SelectedTab = tpAdvanced;
            }
        }