コード例 #1
0
        private void fnLoadDataFeilds()
        {
            try
            {
                if (Common.bIsConnectionStringEstablish)
                {
                    lblError.Visible = false;
                    if (!bDataFeildsLoaded)
                    {
                        CntrlDataFields ctlDataSource = new CntrlDataFields();
                        ctlDataSource.Dock = DockStyle.Fill;

                        Telerik.WinControls.UI.RadGroupBox gbDummy = Common.GetfrmDummy();
                        pgDataFields.Controls.Add(gbDummy);
                        ctlDataSource.DataFieldsNxtBtnClick += new EventHandler(ctlDataSource_DataFieldsNxtBtnClick);
                        pgDataFields.Controls.Add(ctlDataSource);
                        pgDataFields.Controls.Remove(gbDummy);
                        bDataFeildsLoaded = true;
                    }
                }
                else
                {
                    lblError.Visible = true;
                }
            }
            catch (Exception ex)
            {
                Telerik.WinControls.RadMessageBox.Show(this, ex.Message, ex.TargetSite.Name.ToString(), MessageBoxButtons.OK, RadMessageIcon.Error, MessageBoxDefaultButton.Button1);
            }
        }
コード例 #2
0
        void fnShowOffers(int iTabIndex)
        {
            this.Cursor = Cursors.WaitCursor;
            try
            {
                fnOffersOpprortunityCount();
                bottomRightPanel.Controls.Clear();
                CntrlOfferLibrary ctlOffers = new CntrlOfferLibrary(iTabIndex);
                ctlOffers.Dock = DockStyle.Fill;

                Telerik.WinControls.UI.RadGroupBox gbDummy = Common.GetfrmDummy();
                bottomRightPanel.Controls.Add(gbDummy);

                bottomRightPanel.Controls.Add(ctlOffers);
                bottomRightPanel.Controls.Remove(gbDummy);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
コード例 #3
0
 public static Telerik.WinControls.UI.RadGroupBox GetfrmDummy()
 {
     Telerik.WinControls.UI.RadGroupBox gbDummy = new Telerik.WinControls.UI.RadGroupBox();
     //gbDummy.BackgroundStyle = Janus.Windows.EditControls.BackgroundStyle.Panel;
     gbDummy.GroupBoxStyle = RadGroupBoxStyle.Office;
     gbDummy.Visible       = true;
     gbDummy.Dock          = DockStyle.Fill;
     gbDummy.BringToFront();
     return(gbDummy);
 }
コード例 #4
0
 void fnShowUserManagement()
 {
     try
     {
         bottomRightPanel.Controls.Clear();
         cntrlUsers ctlUsers = new cntrlUsers();
         ctlUsers.Dock = DockStyle.Fill;
         Telerik.WinControls.UI.RadGroupBox gbDummy = Common.GetfrmDummy();
         bottomRightPanel.Controls.Add(gbDummy);
         bottomRightPanel.Controls.Add(ctlUsers);
         bottomRightPanel.Controls.Remove(gbDummy);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #5
0
        void fnShowExport()
        {
            try
            {
                bottomRightPanel.Controls.Clear();
                CntrlExport ctlExports = new CntrlExport();
                ctlExports.Dock = DockStyle.Fill;

                Telerik.WinControls.UI.RadGroupBox gbDummy = Common.GetfrmDummy();
                bottomRightPanel.Controls.Add(gbDummy);

                bottomRightPanel.Controls.Add(ctlExports);
                bottomRightPanel.Controls.Remove(gbDummy);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #6
0
        /// <summary>
        /// Method is required by Visual Style Builder.
        /// </summary>
        /// <param name="previewSurface"></param>
        /// <returns>theme designed controls</returns>
        public override ControlStyleBuilderInfoList GetThemeDesignedControls(Control previewSurface)
        {
            RadGroupBox groupBox = new RadGroupBox();

            groupBox.Size = new Size(250, 250);

            groupBox.Text       = "Header Text";
            groupBox.FooterText = "Footer Text";

            RadGroupBox groupBoxStructure = new RadGroupBox();

            groupBoxStructure.Text       = "Header Text";
            groupBoxStructure.FooterText = "Footer Text";

            ControlStyleBuilderInfo designed = new ControlStyleBuilderInfo(groupBox, groupBoxStructure.RootElement);

            designed.MainElementClassName = typeof(RadGroupBoxElement).FullName;
            ThemeDesignedControlList res = new ThemeDesignedControlList();

            res.Add(designed);
            return(res);
        }
コード例 #7
0
        private void rdBtnUser_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            try
            {
                bottomRightPanel.Controls.Clear();
                cntrlUsers ctlUsers = new cntrlUsers();
                ctlUsers.Dock = DockStyle.Fill;

                Telerik.WinControls.UI.RadGroupBox gbDummy = Common.GetfrmDummy();
                bottomRightPanel.Controls.Add(gbDummy);

                bottomRightPanel.Controls.Add(ctlUsers);
                bottomRightPanel.Controls.Remove(gbDummy);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
コード例 #8
0
        void fnShowDataSource(int iTabIndex)
        {
            this.Cursor = Cursors.WaitCursor;
            try
            {
                bottomRightPanel.Controls.Clear();
                CntrlDataSource ctlDataSource = new CntrlDataSource(iTabIndex);
                ctlDataSource.Dock = DockStyle.Fill;
                ctlDataSource.PreviewNxtBtnClick += new EventHandler(ctlDataSource_PreviewNxtBtnClick);
                Telerik.WinControls.UI.RadGroupBox gbDummy = Common.GetfrmDummy();
                bottomRightPanel.Controls.Add(gbDummy);

                bottomRightPanel.Controls.Add(ctlDataSource);
                bottomRightPanel.Controls.Remove(gbDummy);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
コード例 #9
0
 private void InitializeComponent()
 {
     this.radGroupBox1             = new RadGroupBox();
     this.radLabel2                = new RadLabel();
     this.radLabel1                = new RadLabel();
     this.radButtonRemoveOne       = new RadButton();
     this.radButtonRemoveAll       = new RadButton();
     this.radButtonAddAll          = new RadButton();
     this.radButtonAddOne          = new RadButton();
     this.radListBoxAssociatedTabs = new RadListControl();
     this.radListBoxAvaibleTabs    = new RadListControl();
     this.radButtonOk              = new RadButton();
     this.radButtonCancel          = new RadButton();
     this.radGroupBox1.BeginInit();
     this.radGroupBox1.SuspendLayout();
     this.radLabel2.BeginInit();
     this.radLabel1.BeginInit();
     this.radButtonRemoveOne.BeginInit();
     this.radButtonRemoveAll.BeginInit();
     this.radButtonAddAll.BeginInit();
     this.radButtonAddOne.BeginInit();
     this.radListBoxAssociatedTabs.BeginInit();
     this.radListBoxAvaibleTabs.BeginInit();
     this.radButtonOk.BeginInit();
     this.radButtonCancel.BeginInit();
     this.SuspendLayout();
     this.radGroupBox1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radGroupBox1.Controls.Add((Control)this.radLabel2);
     this.radGroupBox1.Controls.Add((Control)this.radLabel1);
     this.radGroupBox1.Controls.Add((Control)this.radButtonRemoveOne);
     this.radGroupBox1.Controls.Add((Control)this.radButtonRemoveAll);
     this.radGroupBox1.Controls.Add((Control)this.radButtonAddAll);
     this.radGroupBox1.Controls.Add((Control)this.radButtonAddOne);
     this.radGroupBox1.Controls.Add((Control)this.radListBoxAssociatedTabs);
     this.radGroupBox1.Controls.Add((Control)this.radListBoxAvaibleTabs);
     this.radGroupBox1.FooterImageIndex = -1;
     this.radGroupBox1.FooterImageKey   = "";
     this.radGroupBox1.HeaderImageIndex = -1;
     this.radGroupBox1.HeaderImageKey   = "";
     this.radGroupBox1.HeaderMargin     = new Padding(0);
     this.radGroupBox1.HeaderText       = "Tabs";
     this.radGroupBox1.Location         = new Point(13, 13);
     this.radGroupBox1.Name             = "radGroupBox1";
     this.radGroupBox1.Size             = new Size(588, 412);
     this.radGroupBox1.TabIndex         = 0;
     this.radGroupBox1.Text             = "Tabs";
     this.radLabel2.Location            = new Point(325, 33);
     this.radLabel2.Name     = "radLabel2";
     this.radLabel2.Size     = new Size(88, 14);
     this.radLabel2.TabIndex = 5;
     this.radLabel2.Text     = "Associated Tabs";
     this.radLabel1.Location = new Point(13, 33);
     this.radLabel1.Name     = "radLabel1";
     this.radLabel1.Size     = new Size(79, 14);
     this.radLabel1.TabIndex = 5;
     this.radLabel1.Text     = "Available Tabs";
     this.radButtonRemoveOne.AllowShowFocusCues = true;
     this.radButtonRemoveOne.Location           = new Point(246, 146);
     this.radButtonRemoveOne.Name               = "radButtonRemoveOne";
     this.radButtonRemoveOne.Size               = new Size(75, 23);
     this.radButtonRemoveOne.TabIndex           = 4;
     this.radButtonRemoveOne.Text               = "<";
     this.radButtonRemoveOne.Click             += new EventHandler(this.radButtonRemoveOne_Click);
     this.radButtonRemoveAll.AllowShowFocusCues = true;
     this.radButtonRemoveAll.Location           = new Point(246, 116);
     this.radButtonRemoveAll.Name               = "radButtonRemoveAll";
     this.radButtonRemoveAll.Size               = new Size(75, 23);
     this.radButtonRemoveAll.TabIndex           = 3;
     this.radButtonRemoveAll.Text               = "<<";
     this.radButtonRemoveAll.Click             += new EventHandler(this.radButtonRemoveAll_Click);
     this.radButtonAddAll.AllowShowFocusCues    = true;
     this.radButtonAddAll.Location              = new Point(246, 86);
     this.radButtonAddAll.Name                   = "radButtonAddAll";
     this.radButtonAddAll.Size                   = new Size(75, 23);
     this.radButtonAddAll.TabIndex               = 2;
     this.radButtonAddAll.Text                   = ">>";
     this.radButtonAddAll.Click                 += new EventHandler(this.radButtonAddAll_Click);
     this.radButtonAddOne.AllowShowFocusCues     = true;
     this.radButtonAddOne.Location               = new Point(246, 57);
     this.radButtonAddOne.Name                   = "radButtonAddOne";
     this.radButtonAddOne.Size                   = new Size(75, 23);
     this.radButtonAddOne.TabIndex               = 1;
     this.radButtonAddOne.Text                   = ">";
     this.radButtonAddOne.Click                 += new EventHandler(this.radButtonAddOne_Click);
     this.radListBoxAssociatedTabs.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.radListBoxAssociatedTabs.Location      = new Point(325, 55);
     this.radListBoxAssociatedTabs.Name          = "radListBoxAssociatedTabs";
     this.radListBoxAssociatedTabs.SelectionMode = SelectionMode.MultiExtended;
     this.radListBoxAssociatedTabs.Size          = new Size(248, 340);
     this.radListBoxAssociatedTabs.TabIndex      = 0;
     this.radListBoxAvaibleTabs.Anchor           = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
     this.radListBoxAvaibleTabs.Location         = new Point(13, 55);
     this.radListBoxAvaibleTabs.Name             = "radListBoxAvaibleTabs";
     this.radListBoxAvaibleTabs.SelectionMode    = SelectionMode.MultiExtended;
     this.radListBoxAvaibleTabs.Size             = new Size(227, 340);
     this.radListBoxAvaibleTabs.TabIndex         = 0;
     this.radButtonOk.AllowShowFocusCues         = true;
     this.radButtonOk.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonOk.Location = new Point(422, 430);
     this.radButtonOk.Name     = "radButtonOk";
     this.radButtonOk.Size     = new Size(75, 23);
     this.radButtonOk.TabIndex = 1;
     this.radButtonOk.Text     = "OK";
     this.radButtonOk.Click   += new EventHandler(this.radButtonOk_Click);
     this.radButtonCancel.AllowShowFocusCues = true;
     this.radButtonCancel.Anchor             = AnchorStyles.Bottom | AnchorStyles.Right;
     this.radButtonCancel.Location           = new Point(524, 430);
     this.radButtonCancel.Name     = "radButtonCancel";
     this.radButtonCancel.Size     = new Size(75, 23);
     this.radButtonCancel.TabIndex = 2;
     this.radButtonCancel.Text     = "Cancel";
     this.radButtonCancel.Click   += new EventHandler(this.radButtonCancel_Click);
     this.AutoScaleDimensions      = new SizeF(6f, 13f);
     this.AutoScaleMode            = AutoScaleMode.None;
     this.ClientSize = new Size(613, 458);
     this.Controls.Add((Control)this.radButtonCancel);
     this.Controls.Add((Control)this.radButtonOk);
     this.Controls.Add((Control)this.radGroupBox1);
     this.FormBorderStyle = FormBorderStyle.FixedSingle;
     this.StartPosition   = FormStartPosition.CenterScreen;
     this.Name            = nameof(ContextulTabGroupsEditor);
     this.ShowInTaskbar   = false;
     this.Text            = "Contextual Tab Groups Editor";
     this.radGroupBox1.EndInit();
     this.radGroupBox1.ResumeLayout(false);
     this.radGroupBox1.PerformLayout();
     this.radLabel2.EndInit();
     this.radLabel1.EndInit();
     this.radButtonRemoveOne.EndInit();
     this.radButtonRemoveAll.EndInit();
     this.radButtonAddAll.EndInit();
     this.radButtonAddOne.EndInit();
     this.radListBoxAssociatedTabs.EndInit();
     this.radListBoxAvaibleTabs.EndInit();
     this.radButtonOk.EndInit();
     this.radButtonCancel.EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #10
0
 private void InitializeComponent()
 {
     this.radDropDownListLeftOperator  = new RadDropDownList();
     this.radDropDownListRightOperator = new RadDropDownList();
     this.radLabelFormTitle            = new RadLabel();
     this.radioButtonAndOperator       = new RadRadioButton();
     this.radioButtonOrOperator        = new RadRadioButton();
     this.radButtonOK     = new RadButton();
     this.radButtonCancel = new RadButton();
     this.groupBox        = new RadGroupBox();
     this.rchbNot         = new RadCheckBox();
     this.radDropDownListLeftOperator.BeginInit();
     this.radLabelFormTitle.BeginInit();
     this.radDropDownListRightOperator.BeginInit();
     this.radioButtonAndOperator.BeginInit();
     this.radioButtonOrOperator.BeginInit();
     this.radButtonOK.BeginInit();
     this.radButtonCancel.BeginInit();
     this.groupBox.BeginInit();
     this.rchbNot.BeginInit();
     this.groupBox.SuspendLayout();
     this.BeginInit();
     this.SuspendLayout();
     this.radDropDownListLeftOperator.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
     this.radDropDownListLeftOperator.DropDownStyle      = RadDropDownStyle.DropDownList;
     this.radDropDownListLeftOperator.Location           = new Point(13, 32);
     this.radDropDownListLeftOperator.Name     = "radComboBoxLeftOperator";
     this.radDropDownListLeftOperator.Size     = new Size(149, 21);
     this.radDropDownListLeftOperator.TabIndex = 0;
     this.radDropDownListLeftOperator.TabStop  = false;
     this.radLabelFormTitle.Location           = new Point(4, 12);
     this.radLabelFormTitle.Name     = "radLabelFormTitle";
     this.radLabelFormTitle.Size     = new Size(96, 18);
     this.radLabelFormTitle.TabIndex = 2;
     this.radLabelFormTitle.Text     = "Show rows where:";
     this.radDropDownListRightOperator.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
     this.radDropDownListRightOperator.DropDownStyle      = RadDropDownStyle.DropDownList;
     this.radDropDownListRightOperator.Location           = new Point(13, 79);
     this.radDropDownListRightOperator.Name     = "radComboBoxRightOperator";
     this.radDropDownListRightOperator.Size     = new Size(149, 21);
     this.radDropDownListRightOperator.TabIndex = 4;
     this.radDropDownListRightOperator.TabStop  = false;
     this.radioButtonAndOperator.AutoSize       = true;
     this.radioButtonAndOperator.Location       = new Point(43, 57);
     this.radioButtonAndOperator.Name           = "radioButtonAndOperator";
     this.radioButtonAndOperator.Size           = new Size(46, 17);
     this.radioButtonAndOperator.TabIndex       = 2;
     this.radioButtonAndOperator.TabStop        = true;
     this.radioButtonAndOperator.Text           = "And";
     this.radioButtonOrOperator.AutoSize        = true;
     this.radioButtonOrOperator.Location        = new Point(93, 57);
     this.radioButtonOrOperator.Name            = "radioButtonOrOperator";
     this.radioButtonOrOperator.Size            = new Size(38, 17);
     this.radioButtonOrOperator.TabIndex        = 3;
     this.radioButtonOrOperator.TabStop         = true;
     this.radioButtonOrOperator.Text            = "Or";
     this.radButtonOK.DialogResult     = DialogResult.OK;
     this.radButtonOK.Location         = new Point(196, 161);
     this.radButtonOK.Name             = "radButtonOK";
     this.radButtonOK.Size             = new Size(75, 23);
     this.radButtonOK.TabIndex         = 6;
     this.radButtonOK.Text             = "OK";
     this.radButtonOK.Click           += new EventHandler(this.radButtonOK_Click);
     this.radButtonCancel.DialogResult = DialogResult.Cancel;
     this.radButtonCancel.Location     = new Point(280, 161);
     this.radButtonCancel.Name         = "radButtonCancel";
     this.radButtonCancel.Size         = new Size(75, 23);
     this.radButtonCancel.TabIndex     = 7;
     this.radButtonCancel.Text         = "Cancel";
     this.radButtonCancel.Click       += new EventHandler(this.radButtonCancel_Click);
     this.groupBox.BackColor           = Color.Transparent;
     this.groupBox.Controls.Add((Control)this.radDropDownListLeftOperator);
     this.groupBox.Controls.Add((Control)this.rchbNot);
     this.groupBox.Controls.Add((Control)this.radDropDownListRightOperator);
     this.groupBox.Controls.Add((Control)this.radioButtonAndOperator);
     this.groupBox.Controls.Add((Control)this.radioButtonOrOperator);
     this.groupBox.FooterImageIndex = -1;
     this.groupBox.FooterImageKey   = "";
     this.groupBox.HeaderImageIndex = -1;
     this.groupBox.HeaderImageKey   = "";
     this.groupBox.HeaderMargin     = new Padding(0);
     this.groupBox.Location         = new Point(4, 36);
     this.groupBox.Name             = "groupBox";
     this.groupBox.RootElement.EnableElementShadow = false;
     this.groupBox.Size               = new Size(361, 119);
     this.groupBox.TabIndex           = 9;
     this.rchbNot.Location            = new Point(14, 1);
     this.rchbNot.Name                = "rchbNot";
     this.rchbNot.Size                = new Size(39, 18);
     this.rchbNot.TabIndex            = 8;
     this.rchbNot.Text                = "Not";
     this.rchbNot.ToggleStateChanged += new StateChangedEventHandler(this.rchbNot_ToggleStateChanged);
     this.AcceptButton                = (IButtonControl)this.radButtonOK;
     this.CancelButton                = (IButtonControl)this.radButtonCancel;
     this.AutoScaleDimensions         = new SizeF(6f, 13f);
     this.AutoScaleMode               = AutoScaleMode.None;
     this.ClientSize = new Size(370, 196);
     this.Controls.Add((Control)this.groupBox);
     this.Controls.Add((Control)this.radButtonCancel);
     this.Controls.Add((Control)this.radButtonOK);
     this.Controls.Add((Control)this.radLabelFormTitle);
     this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
     this.Name            = nameof(CompositeFilterForm);
     this.MaximizeBox     = false;
     this.RootElement.ApplyShapeToControl = true;
     this.StartPosition = FormStartPosition.CenterScreen;
     this.Text          = "ComplexFilterForm";
     this.radDropDownListLeftOperator.EndInit();
     this.radDropDownListRightOperator.EndInit();
     this.radioButtonAndOperator.EndInit();
     this.radioButtonOrOperator.EndInit();
     this.radLabelFormTitle.EndInit();
     this.radButtonOK.EndInit();
     this.radButtonCancel.EndInit();
     this.groupBox.EndInit();
     this.rchbNot.EndInit();
     this.groupBox.ResumeLayout(false);
     this.groupBox.PerformLayout();
     this.EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }