예제 #1
0
        public JcwProgressBar(ProgressBarType barType)
        {
            InitializeComponent();

            if (barType == ProgressBarType.Cycling)
            {
                MarqueeProgressBarControl bar = new MarqueeProgressBarControl();
                bar.Properties.BeginInit();
                bar.Properties.MarqueeAnimationSpeed = 100;
                bar.Properties.ProgressKind          = DevExpress.XtraEditors.Controls.ProgressKind.Horizontal;
                bar.Properties.ProgressViewStyle     = DevExpress.XtraEditors.Controls.ProgressViewStyle.Solid;
                bar.Properties.EndInit();
                m_progressBar = bar;
            }
            else
            {
                ProgressBarControl bar = new ProgressBarControl();
                bar.Properties.BeginInit();
                bar.Properties.Minimum           = 0;
                bar.Properties.PercentView       = false;
                bar.Properties.ProgressKind      = DevExpress.XtraEditors.Controls.ProgressKind.Horizontal;
                bar.Properties.ProgressViewStyle = DevExpress.XtraEditors.Controls.ProgressViewStyle.Solid;
                bar.Properties.ShowTitle         = true;
                bar.Properties.Step = 10;
                bar.Properties.EndInit();
                m_progressBar = bar;
            }

            m_progressBar.Dock = DockStyle.Fill;
            this.Controls.Add(m_progressBar);
        }
 protected override object CreateControlCore()
 {
     MarqueeProgressBarControl marqueeProgressBarControl = new MarqueeProgressBarControl
     {
         MaximumSize = new Size(0, 18),
         MinimumSize = new Size(0, 18)
     };
     marqueeProgressBarControl.Properties.Stopped = true;
     return marqueeProgressBarControl;
 }
예제 #3
0
        /// <summary>
        /// When the retrieval progress control is shown get its underlying control for modification
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void RetrievalProgressCtl_ShownEditor(object sender, ItemClickEventArgs e)
        {
            MarqueeProgressBarControl mpbc = RibbonCtl.Manager.ActiveEditor as MarqueeProgressBarControl;

            if (mpbc == null)
            {
                return;
            }

            try
            {
                mpbc.Height = 14;
            }

            catch (Exception ex) { ex = ex; }

            return;
        }
예제 #4
0
        private void loadDelay()
        {
            Form frm = new Form();

            frm.FormBorderStyle = FormBorderStyle.None;
            frm.WindowState     = FormWindowState.Maximized;
            frm.StartPosition   = FormStartPosition.CenterParent;

            DevExpress.XtraEditors.MarqueeProgressBarControl progress = new MarqueeProgressBarControl();
            progress.Size     = new Size(380, 48);
            progress.Location = new Point(433, 344);
            frm.Controls.Add(progress);
            DevExpress.XtraEditors.LabelControl labelLoad = new LabelControl();
            labelLoad.Text      = "Data Loadding....";
            labelLoad.Font      = new Font(FontFamily.GenericSansSerif, 28, FontStyle.Bold);
            labelLoad.ForeColor = Color.Green;
            labelLoad.Location  = new Point(433, 400);
            frm.Controls.Add(labelLoad);
            frm.ShowDialog();
        }
예제 #5
0
        /// <summary>
        /// Add a processing item to the listview
        /// </summary>
        /// <param name="name">Name of item</param>
        /// <param name="message">IvsMessage of item</param>
        public void AddProcess(string name, string message, CommonData.ProgressBarType progressBarType)
        {
            ListViewItem item = new ListViewItem(message);

            item.SubItems.Add(this.CreatedDate);
            item.Name = name;
            listViewProgress.Items.Add(item);
            // Embed the ProgressBar
            if (progressBarType == CommonData.ProgressBarType.Marquee)
            {
                MarqueeProgressBarControl progressBar = new MarqueeProgressBarControl();
                progressBar.Name = name;
                progressBar.Tag  = CommonData.ProgressBarType.Marquee.ToString();
                this.lstProgressBar.Add(progressBar);
                this.listViewProgress.AddEmbeddedControl(progressBar, 2, this.NumOfProcess - 1);
            }
            else
            {
                ProgressBarControl progressBar = new ProgressBarControl();
                progressBar.Properties.Step        = 1;
                progressBar.Properties.ShowTitle   = true;
                progressBar.Properties.PercentView = true;
                progressBar.Properties.Maximum     = 100;
                progressBar.Properties.Minimum     = 0;
                progressBar.Name = name;
                progressBar.Tag  = CommonData.ProgressBarType.Progress.ToString();
                this.lstProgressBar.Add(progressBar);
                this.listViewProgress.AddEmbeddedControl(progressBar, 2, this.NumOfProcess - 1);
            }
            //Add timer to get percent
            IvsTimer timer = new IvsTimer();

            timer.Name     = name;
            timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed);
            timer.Enabled  = true;
            timer.Interval = 500;
            this.lstTimer.Add(timer);
            //start timer
            timer.Start();
        }
예제 #6
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmDbSearch));

            repositoryItemPictureEdit1 = new RepositoryItemPictureEdit();
            repositoryItemDateEdit1    = new RepositoryItemDateEdit();
            groupBox1     = new GroupBox();
            labelControl6 = new LabelControl();
            cbSex         = new ComboBoxEdit();
            labelControl3 = new LabelControl();
            labelControl1 = new LabelControl();
            spinEdit1     = new SpinEdit();
            lbDate        = new LabelControl();
            tbScore       = new TextEdit();
            lbInfo        = new Label();
            btSearch      = new SimpleButton();
            btLoadPicture = new SimpleButton();
            pictureEdit1  = new PictureEdit();
            gbDate        = new GroupBox();
            labelControl5 = new LabelControl();
            labelControl4 = new LabelControl();
            dtBefore      = new DateEdit();
            dtFrom        = new DateEdit();
            gridControl1  = new GridControl();
            gridView1     = new GridView();
            colFaceID     = new GridColumn();
            colPicture    = new GridColumn();
            colName       = new GridColumn();
            colScore      = new GridColumn();
            colBirthday   = new GridColumn();
            colCategory   = new GridColumn();
            colPosition   = new GridColumn();
            btPrint       = new SimpleButton();
            labelControl2 = new LabelControl();
            marqueeProgressBarControl1 = new MarqueeProgressBarControl();
            btClearResults             = new SimpleButton();
            repositoryItemPictureEdit1.BeginInit();
            repositoryItemDateEdit1.BeginInit();
            repositoryItemDateEdit1.VistaTimeProperties.BeginInit();
            groupBox1.SuspendLayout();
            cbSex.Properties.BeginInit();
            spinEdit1.Properties.BeginInit();
            tbScore.Properties.BeginInit();
            pictureEdit1.Properties.BeginInit();
            gbDate.SuspendLayout();
            dtBefore.Properties.VistaTimeProperties.BeginInit();
            dtBefore.Properties.BeginInit();
            dtFrom.Properties.VistaTimeProperties.BeginInit();
            dtFrom.Properties.BeginInit();
            gridControl1.BeginInit();
            gridView1.BeginInit();
            marqueeProgressBarControl1.Properties.BeginInit();
            SuspendLayout();
            repositoryItemPictureEdit1.Name             = "repositoryItemPictureEdit1";
            repositoryItemPictureEdit1.PictureStoreMode = PictureStoreMode.ByteArray;
            repositoryItemPictureEdit1.SizeMode         = PictureSizeMode.Zoom;
            componentResourceManager.ApplyResources(repositoryItemDateEdit1, "repositoryItemDateEdit1");
            repositoryItemDateEdit1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("repositoryItemDateEdit1.Buttons"))
            });
            repositoryItemDateEdit1.Name = "repositoryItemDateEdit1";
            repositoryItemDateEdit1.VistaTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            groupBox1.Controls.Add(labelControl6);
            groupBox1.Controls.Add(cbSex);
            groupBox1.Controls.Add(labelControl3);
            groupBox1.Controls.Add(labelControl1);
            groupBox1.Controls.Add(spinEdit1);
            groupBox1.Controls.Add(lbDate);
            groupBox1.Controls.Add(tbScore);
            groupBox1.Controls.Add(lbInfo);
            groupBox1.Controls.Add(btSearch);
            groupBox1.Controls.Add(btLoadPicture);
            groupBox1.Controls.Add(pictureEdit1);
            groupBox1.Controls.Add(gbDate);
            componentResourceManager.ApplyResources(groupBox1, "groupBox1");
            groupBox1.Name                = "groupBox1";
            groupBox1.TabStop             = false;
            groupBox1.Enter              += groupBox1_Enter;
            labelControl6.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl6.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl6, "labelControl6");
            labelControl6.Name = "labelControl6";
            componentResourceManager.ApplyResources(cbSex, "cbSex");
            cbSex.Name = "cbSex";
            cbSex.Properties.AutoHeight = (bool)componentResourceManager.GetObject("cbSex.Properties.AutoHeight");
            cbSex.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("cbSex.Properties.Buttons"))
            });
            cbSex.Properties.Items.AddRange(new object[2]
            {
                componentResourceManager.GetString("cbSex.Properties.Items"),
                componentResourceManager.GetString("cbSex.Properties.Items1")
            });
            labelControl3.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl3.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl3, "labelControl3");
            labelControl3.Name            = "labelControl3";
            labelControl1.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl1.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl1, "labelControl1");
            labelControl1.Name = "labelControl1";
            componentResourceManager.ApplyResources(spinEdit1, "spinEdit1");
            spinEdit1.Name = "spinEdit1";
            spinEdit1.Properties.AutoHeight = (bool)componentResourceManager.GetObject("spinEdit1.Properties.AutoHeight");
            spinEdit1.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            lbDate.Appearance.Font = (Font)componentResourceManager.GetObject("lbDate.Appearance.Font");
            componentResourceManager.ApplyResources(lbDate, "lbDate");
            lbDate.Name = "lbDate";
            componentResourceManager.ApplyResources(tbScore, "tbScore");
            tbScore.Name = "tbScore";
            tbScore.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("tbScore.Properties.Appearance.Font");
            tbScore.Properties.Appearance.Options.UseFont = true;
            tbScore.TextChanged += tbScore_TextChanged;
            tbScore.Validating  += tbScore_Validating;
            componentResourceManager.ApplyResources(lbInfo, "lbInfo");
            lbInfo.Name = "lbInfo";
            btSearch.Appearance.Font            = (Font)componentResourceManager.GetObject("btSearch.Appearance.Font");
            btSearch.Appearance.Options.UseFont = true;
            componentResourceManager.ApplyResources(btSearch, "btSearch");
            btSearch.Name   = "btSearch";
            btSearch.Click += simpleButton2_Click;
            btLoadPicture.Appearance.Font            = (Font)componentResourceManager.GetObject("btLoadPicture.Appearance.Font");
            btLoadPicture.Appearance.Options.UseFont = true;
            componentResourceManager.ApplyResources(btLoadPicture, "btLoadPicture");
            btLoadPicture.Name   = "btLoadPicture";
            btLoadPicture.Click += btLoadPicture_Click;
            componentResourceManager.ApplyResources(pictureEdit1, "pictureEdit1");
            pictureEdit1.Name = "pictureEdit1";
            pictureEdit1.Properties.SizeMode = PictureSizeMode.Zoom;
            gbDate.Controls.Add(labelControl5);
            gbDate.Controls.Add(labelControl4);
            gbDate.Controls.Add(dtBefore);
            gbDate.Controls.Add(dtFrom);
            componentResourceManager.ApplyResources(gbDate, "gbDate");
            gbDate.Name    = "gbDate";
            gbDate.TabStop = false;
            labelControl5.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl5.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl5, "labelControl5");
            labelControl5.Name            = "labelControl5";
            labelControl4.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl4.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl4, "labelControl4");
            labelControl4.Name = "labelControl4";
            componentResourceManager.ApplyResources(dtBefore, "dtBefore");
            dtBefore.Name = "dtBefore";
            dtBefore.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("dtBefore.Properties.Buttons"))
            });
            dtBefore.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            componentResourceManager.ApplyResources(dtFrom, "dtFrom");
            dtFrom.Name = "dtFrom";
            dtFrom.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("dtFrom.Properties.Buttons"))
            });
            dtFrom.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            componentResourceManager.ApplyResources(gridControl1, "gridControl1");
            gridControl1.LookAndFeel.SkinName = "Office 2007 Blue";
            gridControl1.MainView             = gridView1;
            gridControl1.Name = "gridControl1";
            gridControl1.ViewCollection.AddRange(new BaseView[1]
            {
                gridView1
            });
            gridView1.ColumnPanelRowHeight = 50;
            gridView1.Columns.AddRange(new GridColumn[7]
            {
                colFaceID,
                colPicture,
                colName,
                colScore,
                colBirthday,
                colCategory,
                colPosition
            });
            gridView1.GridControl                      = gridControl1;
            gridView1.IndicatorWidth                   = 60;
            gridView1.Name                             = "gridView1";
            gridView1.OptionsBehavior.Editable         = false;
            gridView1.OptionsCustomization.AllowFilter = false;
            gridView1.OptionsFind.ClearFindOnClose     = false;
            gridView1.OptionsFind.FindDelay            = 10000;
            gridView1.OptionsFind.FindMode             = FindMode.Always;
            gridView1.OptionsFind.ShowCloseButton      = false;
            gridView1.OptionsSelection.MultiSelect     = true;
            gridView1.OptionsView.RowAutoHeight        = true;
            gridView1.OptionsView.ShowGroupPanel       = false;
            gridView1.SortInfo.AddRange(new GridColumnSortInfo[1]
            {
                new GridColumnSortInfo(colScore, ColumnSortOrder.Descending)
            });
            gridView1.CustomDrawRowIndicator                 += gridView1_CustomDrawRowIndicator;
            colFaceID.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colFaceID.AppearanceCell.Font");
            colFaceID.AppearanceCell.Options.UseFont          = true;
            colFaceID.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colFaceID.AppearanceHeader.Font");
            colFaceID.AppearanceHeader.Options.UseFont        = true;
            colFaceID.AppearanceHeader.Options.UseTextOptions = true;
            colFaceID.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            componentResourceManager.ApplyResources(colFaceID, "colFaceID");
            colFaceID.FieldName = "FaceID";
            colFaceID.Name      = "colFaceID";
            colFaceID.OptionsColumn.AllowEdit                  = false;
            colFaceID.OptionsColumn.ReadOnly                   = true;
            colPicture.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colPicture.AppearanceCell.Font");
            colPicture.AppearanceCell.Options.UseFont          = true;
            colPicture.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colPicture.AppearanceHeader.Font");
            colPicture.AppearanceHeader.Options.UseFont        = true;
            colPicture.AppearanceHeader.Options.UseTextOptions = true;
            colPicture.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            componentResourceManager.ApplyResources(colPicture, "colPicture");
            colPicture.ColumnEdit = repositoryItemPictureEdit1;
            colPicture.FieldName  = "Image";
            colPicture.Name       = "colPicture";
            colPicture.OptionsColumn.AllowEdit              = false;
            colPicture.OptionsColumn.AllowSort              = DefaultBoolean.False;
            colPicture.OptionsColumn.ReadOnly               = true;
            colName.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colName.AppearanceCell.Font");
            colName.AppearanceCell.Options.UseFont          = true;
            colName.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colName.AppearanceHeader.Font");
            colName.AppearanceHeader.Options.UseFont        = true;
            colName.AppearanceHeader.Options.UseTextOptions = true;
            colName.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            componentResourceManager.ApplyResources(colName, "colName");
            colName.FieldName = "Name";
            colName.Name      = "colName";
            colName.OptionsColumn.AllowEdit                  = false;
            colName.OptionsColumn.ReadOnly                   = true;
            colScore.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colScore.AppearanceCell.Font");
            colScore.AppearanceCell.Options.UseFont          = true;
            colScore.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colScore.AppearanceHeader.Font");
            colScore.AppearanceHeader.Options.UseFont        = true;
            colScore.AppearanceHeader.Options.UseTextOptions = true;
            colScore.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            colScore.AppearanceHeader.TextOptions.WordWrap   = WordWrap.Wrap;
            componentResourceManager.ApplyResources(colScore, "colScore");
            colScore.FieldName = "Score";
            colScore.Name      = "colScore";
            colScore.OptionsColumn.AllowEdit                    = false;
            colScore.OptionsColumn.FixedWidth                   = true;
            colScore.OptionsColumn.ReadOnly                     = true;
            colBirthday.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colBirthday.AppearanceCell.Font");
            colBirthday.AppearanceCell.Options.UseFont          = true;
            colBirthday.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colBirthday.AppearanceHeader.Font");
            colBirthday.AppearanceHeader.Options.UseFont        = true;
            colBirthday.AppearanceHeader.Options.UseTextOptions = true;
            colBirthday.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            colBirthday.AppearanceHeader.TextOptions.WordWrap   = WordWrap.Wrap;
            componentResourceManager.ApplyResources(colBirthday, "colBirthday");
            colBirthday.ColumnEdit = repositoryItemDateEdit1;
            colBirthday.DisplayFormat.FormatString = "dd.MM.yyyy HH:mm:ss";
            colBirthday.DisplayFormat.FormatType   = FormatType.DateTime;
            colBirthday.FieldName = "Birthday";
            colBirthday.Name      = "colBirthday";
            colBirthday.OptionsColumn.AllowEdit                 = false;
            colBirthday.OptionsColumn.ReadOnly                  = true;
            colCategory.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colCategory.AppearanceCell.Font");
            colCategory.AppearanceCell.Options.UseFont          = true;
            colCategory.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colCategory.AppearanceHeader.Font");
            colCategory.AppearanceHeader.Options.UseFont        = true;
            colCategory.AppearanceHeader.Options.UseTextOptions = true;
            colCategory.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            componentResourceManager.ApplyResources(colCategory, "colCategory");
            colCategory.FieldName = "Category";
            colCategory.Name      = "colCategory";
            colCategory.OptionsColumn.ReadOnly                  = true;
            colPosition.AppearanceCell.Font                     = (Font)componentResourceManager.GetObject("colPosition.AppearanceCell.Font");
            colPosition.AppearanceCell.Options.UseFont          = true;
            colPosition.AppearanceHeader.Font                   = (Font)componentResourceManager.GetObject("colPosition.AppearanceHeader.Font");
            colPosition.AppearanceHeader.Options.UseFont        = true;
            colPosition.AppearanceHeader.Options.UseTextOptions = true;
            colPosition.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            colPosition.AppearanceHeader.TextOptions.WordWrap   = WordWrap.Wrap;
            componentResourceManager.ApplyResources(colPosition, "colPosition");
            colPosition.FieldName = "Comment";
            colPosition.Name      = "colPosition";
            colPosition.OptionsColumn.AllowEdit = false;
            colPosition.OptionsColumn.ReadOnly  = true;
            componentResourceManager.ApplyResources(btPrint, "btPrint");
            btPrint.Appearance.Font            = (Font)componentResourceManager.GetObject("btPrint.Appearance.Font");
            btPrint.Appearance.Options.UseFont = true;
            btPrint.Name   = "btPrint";
            btPrint.Click += btPrint_Click;
            labelControl2.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl2.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl2, "labelControl2");
            labelControl2.Name = "labelControl2";
            componentResourceManager.ApplyResources(marqueeProgressBarControl1, "marqueeProgressBarControl1");
            marqueeProgressBarControl1.Name              = "marqueeProgressBarControl1";
            marqueeProgressBarControl1.EditValueChanged += marqueeProgressBarControl1_EditValueChanged;
            componentResourceManager.ApplyResources(btClearResults, "btClearResults");
            btClearResults.Appearance.Font            = (Font)componentResourceManager.GetObject("btClearResults.Appearance.Font");
            btClearResults.Appearance.Options.UseFont = true;
            btClearResults.Name        = "btClearResults";
            btClearResults.Click      += btClearResults_Click;
            Appearance.Font            = (Font)componentResourceManager.GetObject("frmDBSearch.Appearance.Font");
            Appearance.Options.UseFont = true;
            AutoScaleMode = AutoScaleMode.None;
            componentResourceManager.ApplyResources(this, "$this");
            Controls.Add(btClearResults);
            Controls.Add(labelControl2);
            Controls.Add(marqueeProgressBarControl1);
            Controls.Add(groupBox1);
            Controls.Add(btPrint);
            Controls.Add(gridControl1);
            FormBorderStyle = FormBorderStyle.None;
            Name            = "FrmDbSearch";
            ShowIcon        = false;
            WindowState     = FormWindowState.Maximized;
            FormClosing    += frmLogSearch_FormClosing;
            Load           += frmDBSearch_Load;
            Resize         += frmDBSearch_Resize;
            repositoryItemPictureEdit1.EndInit();
            repositoryItemDateEdit1.VistaTimeProperties.EndInit();
            repositoryItemDateEdit1.EndInit();
            groupBox1.ResumeLayout(false);
            groupBox1.PerformLayout();
            cbSex.Properties.EndInit();
            spinEdit1.Properties.EndInit();
            tbScore.Properties.EndInit();
            pictureEdit1.Properties.EndInit();
            gbDate.ResumeLayout(false);
            gbDate.PerformLayout();
            dtBefore.Properties.VistaTimeProperties.EndInit();
            dtBefore.Properties.EndInit();
            dtFrom.Properties.VistaTimeProperties.EndInit();
            dtFrom.Properties.EndInit();
            gridControl1.EndInit();
            gridView1.EndInit();
            marqueeProgressBarControl1.Properties.EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
예제 #7
0
 private void InitializeComponent()
 {
     this.txtUser = new DevExpress.XtraEditors.PopupContainerEdit();
     this.pcContainer = new DevExpress.XtraEditors.PopupContainerControl();
     this.txtPassword = new DevExpress.XtraEditors.TextEdit();
     this.btOk = new DevExpress.XtraEditors.SimpleButton();
     this.btCancel = new DevExpress.XtraEditors.SimpleButton();
     this.backgroundWorker = new System.ComponentModel.BackgroundWorker();
     this.marqueeProgressBarControl1 = new DevExpress.XtraEditors.MarqueeProgressBarControl();
     this.pClose = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.txtUser.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pcContainer)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.marqueeProgressBarControl1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pClose)).BeginInit();
     this.SuspendLayout();
     //
     // txtUser
     //
     this.txtUser.Location = new System.Drawing.Point(182, 95);
     this.txtUser.Name = "txtUser";
     this.txtUser.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.txtUser.Properties.PopupControl = this.pcContainer;
     this.txtUser.Size = new System.Drawing.Size(154, 21);
     this.txtUser.TabIndex = 3;
     this.txtUser.DoubleClick += new System.EventHandler(this.ogmTv_DoubleClick);
     //
     // pcContainer
     //
     this.pcContainer.Location = new System.Drawing.Point(12, 165);
     this.pcContainer.Name = "pcContainer";
     this.pcContainer.Size = new System.Drawing.Size(72, 24);
     this.pcContainer.TabIndex = 4;
     //
     // txtPassword
     //
     this.txtPassword.EditValue = "";
     this.txtPassword.Location = new System.Drawing.Point(183, 127);
     this.txtPassword.Name = "txtPassword";
     this.txtPassword.Size = new System.Drawing.Size(154, 21);
     this.txtPassword.TabIndex = 0;
     //
     // btOk
     //
     this.btOk.Location = new System.Drawing.Point(183, 165);
     this.btOk.Name = "btOk";
     this.btOk.Size = new System.Drawing.Size(75, 23);
     this.btOk.TabIndex = 1;
     this.btOk.Text = "登录";
     this.btOk.Click += new System.EventHandler(this.btOk_Click);
     //
     // btCancel
     //
     this.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btCancel.Location = new System.Drawing.Point(261, 165);
     this.btCancel.Name = "btCancel";
     this.btCancel.Size = new System.Drawing.Size(75, 23);
     this.btCancel.TabIndex = 2;
     this.btCancel.Text = "取消";
     //
     // backgroundWorker
     //
     this.backgroundWorker.WorkerReportsProgress = true;
     this.backgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker_RunWorkerCompleted);
     //
     // marqueeProgressBarControl1
     //
     this.marqueeProgressBarControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.marqueeProgressBarControl1.EditValue = "";
     this.marqueeProgressBarControl1.Location = new System.Drawing.Point(0, 247);
     this.marqueeProgressBarControl1.Name = "marqueeProgressBarControl1";
     this.marqueeProgressBarControl1.Size = new System.Drawing.Size(460, 14);
     this.marqueeProgressBarControl1.TabIndex = 8;
     //
     // pClose
     //
     this.pClose.Image = global::Properties.Resources.关闭;
     this.pClose.InitialImage = null;
     this.pClose.Location = new System.Drawing.Point(431, 2);
     this.pClose.Name = "pClose";
     this.pClose.Size = new System.Drawing.Size(19, 17);
     this.pClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pClose.TabIndex = 9;
     this.pClose.TabStop = false;
     this.pClose.MouseLeave += new System.EventHandler(this.pClose_MouseLeave);
     this.pClose.Click += new System.EventHandler(this.pClose_Click);
     this.pClose.MouseHover += new System.EventHandler(this.pClose_MouseHover);
     //
     // UserLogin
     //
     this.AcceptButton = this.btOk;
     this.Appearance.BackColor = System.Drawing.Color.Transparent;
     this.Appearance.Options.UseBackColor = true;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.BackgroundImageLayoutStore = System.Windows.Forms.ImageLayout.Tile;
     this.BackgroundImageStore = global::Properties.Resources.评估管理软件登录;
     this.CancelButton = this.btCancel;
     this.ClientSize = new System.Drawing.Size(460, 261);
     this.Controls.Add(this.pClose);
     this.Controls.Add(this.marqueeProgressBarControl1);
     this.Controls.Add(this.btCancel);
     this.Controls.Add(this.pcContainer);
     this.Controls.Add(this.btOk);
     this.Controls.Add(this.txtPassword);
     this.Controls.Add(this.txtUser);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.LookAndFeel.UseDefaultLookAndFeel = false;
     this.MaximizeBox = false;
     this.Name = "UserLogin";
     this.Text = "UserLogin";
     ((System.ComponentModel.ISupportInitialize)(this.txtUser.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pcContainer)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.marqueeProgressBarControl1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pClose)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #8
0
        private void InitializeComponent()
        {
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            ComponentResourceManager     manager    = new ComponentResourceManager(typeof(xfmBaseImport));
            SerializableAppearanceObject obj3       = new SerializableAppearanceObject();
            StyleFormatCondition         condition  = new StyleFormatCondition();

            this.colStatus             = new GridColumn();
            this.wcImport              = new WizardControl();
            this.cheIsUpdate           = new CheckEdit();
            this.lcSheet               = new LayoutControl();
            this.cboSheet              = new ComboBoxEdit();
            this.layoutControlGroup1   = new LayoutControlGroup();
            this.layoutControlItem1    = new LayoutControlItem();
            this.wpSelectFile          = new WelcomeWizardPage();
            this.lbLinkFile            = new LabelControl();
            this.lbLinkFileDecription  = new LabelControl();
            this.txtFilePath           = new ButtonEdit();
            this.lbFilePathDescription = new LabelControl();
            this.wpProcessPage         = new DevExpress.XtraWizard.WizardPage();
            this.lbDataRow             = new LabelControl();
            this.lbProgressDescription = new LabelControl();
            this.mqProgress            = new MarqueeProgressBarControl();
            this.wpFinish              = new CompletionWizardPage();
            this.gcMessage             = new GridControl();
            this.gbMessage             = new GridView();
            this.colMessage            = new GridColumn();
            this.lbFix = new LinkLabel();
            this.lbFinishDescription = new LabelControl();
            this.lbMessage           = new LabelControl();
            this.wpSelectField       = new DevExpress.XtraWizard.WizardPage();
            this.gcList         = new GridControl();
            this.gbList         = new GridView();
            this.colFieldName   = new GridColumn();
            this.colSelectField = new GridColumn();
            this.repSelectField = new RepositoryItemComboBox();
            this.wcImport.BeginInit();
            this.wcImport.SuspendLayout();
            this.cheIsUpdate.Properties.BeginInit();
            this.lcSheet.BeginInit();
            this.lcSheet.SuspendLayout();
            this.cboSheet.Properties.BeginInit();
            this.layoutControlGroup1.BeginInit();
            this.layoutControlItem1.BeginInit();
            this.wpSelectFile.SuspendLayout();
            this.txtFilePath.Properties.BeginInit();
            this.wpProcessPage.SuspendLayout();
            this.mqProgress.Properties.BeginInit();
            this.wpFinish.SuspendLayout();
            this.gcMessage.BeginInit();
            this.gbMessage.BeginInit();
            this.wpSelectField.SuspendLayout();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repSelectField.BeginInit();
            base.SuspendLayout();
            this.colStatus.Caption   = "Trạng th\x00e1i";
            this.colStatus.FieldName = "Status";
            this.colStatus.Name      = "colStatus";
            this.colStatus.OptionsColumn.AllowEdit = false;
            this.colStatus.OptionsColumn.ReadOnly  = true;
            this.wcImport.CancelText = "Tho\x00e1t";
            this.wcImport.Controls.Add(this.cheIsUpdate);
            this.wcImport.Controls.Add(this.lcSheet);
            this.wcImport.Controls.Add(this.wpSelectFile);
            this.wcImport.Controls.Add(this.wpProcessPage);
            this.wcImport.Controls.Add(this.wpFinish);
            this.wcImport.Controls.Add(this.wpSelectField);
            this.wcImport.FinishText = "&Ho\x00e0n Th\x00e0nh";
            this.wcImport.HelpText   = "&Trợ Gi\x00fap";
            this.wcImport.Name       = "wcImport";
            this.wcImport.NextText   = "&Tiếp Tục >";
            this.wcImport.Pages.AddRange(new BaseWizardPage[] { this.wpSelectFile, this.wpSelectField, this.wpProcessPage, this.wpFinish });
            this.wcImport.PreviousText          = "< &Trở Lại";
            this.wcImport.Text                  = "C\x00e1c bước nhập danh s\x00e1ch * từ tập tin excel";
            this.wcImport.WizardStyle           = WizardStyle.WizardAero;
            this.wcImport.SelectedPageChanged  += new WizardPageChangedEventHandler(this.wcImport_SelectedPageChanged);
            this.wcImport.NextClick            += new WizardCommandButtonClickEventHandler(this.wcImport_NextClick);
            this.cheIsUpdate.Location           = new Point(0x26, 0x131);
            this.cheIsUpdate.Name               = "cheIsUpdate";
            this.cheIsUpdate.Properties.Caption = "Cập nhật nếu tồn tại";
            this.cheIsUpdate.Size               = new Size(0x105, 0x13);
            this.cheIsUpdate.TabIndex           = 15;
            this.cheIsUpdate.Visible            = false;
            this.lcSheet.Controls.Add(this.cboSheet);
            this.lcSheet.Location  = new Point(0x138, 0x3a);
            this.lcSheet.Name      = "lcSheet";
            this.lcSheet.Root      = this.layoutControlGroup1;
            this.lcSheet.Size      = new Size(0x8e, 0x1c);
            this.lcSheet.TabIndex  = 10;
            this.lcSheet.Text      = "layoutControl1";
            this.lcSheet.Click    += new EventHandler(this.layoutControl1_Click);
            this.cboSheet.Location = new Point(0x3d, 2);
            this.cboSheet.Name     = "cboSheet";
            this.cboSheet.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.cboSheet.Size                                   = new Size(0x4f, 20);
            this.cboSheet.StyleController                        = this.lcSheet;
            this.cboSheet.TabIndex                               = 4;
            this.cboSheet.SelectedIndexChanged                  += new EventHandler(this.cboSheet_SelectedIndexChanged);
            this.layoutControlGroup1.CustomizationFormText       = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible         = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1 });
            this.layoutControlGroup1.Location             = new Point(0, 0);
            this.layoutControlGroup1.Name                 = "layoutControlGroup1";
            this.layoutControlGroup1.Padding              = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Size                 = new Size(0x8e, 0x1c);
            this.layoutControlGroup1.Spacing              = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text                 = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible          = false;
            this.layoutControlItem1.Control               = this.cboSheet;
            this.layoutControlItem1.CustomizationFormText = "Chọn sheet";
            this.layoutControlItem1.Location              = new Point(0, 0);
            this.layoutControlItem1.Name     = "layoutControlItem1";
            this.layoutControlItem1.Size     = new Size(0x8e, 0x1c);
            this.layoutControlItem1.Text     = "Chọn sheet";
            this.layoutControlItem1.TextSize = new Size(0x37, 13);
            this.wpSelectFile.Controls.Add(this.lbLinkFile);
            this.wpSelectFile.Controls.Add(this.lbLinkFileDecription);
            this.wpSelectFile.Controls.Add(this.txtFilePath);
            this.wpSelectFile.Controls.Add(this.lbFilePathDescription);
            this.wpSelectFile.Name                            = "wpSelectFile";
            this.wpSelectFile.Size                            = new Size(0x1ab, 0xae);
            this.wpSelectFile.Text                            = "Lựa chọn tập tin excel";
            this.lbLinkFile.AllowHtmlString                   = true;
            this.lbLinkFile.Appearance.Font                   = new Font("Tahoma", 8.25f, FontStyle.Underline);
            this.lbLinkFile.Appearance.ForeColor              = Color.Blue;
            this.lbLinkFile.Appearance.Options.UseFont        = true;
            this.lbLinkFile.Appearance.Options.UseForeColor   = true;
            this.lbLinkFile.Appearance.Options.UseTextOptions = true;
            this.lbLinkFile.Appearance.TextOptions.Trimming   = Trimming.EllipsisPath;
            this.lbLinkFile.Appearance.TextOptions.VAlignment = VertAlignment.Top;
            this.lbLinkFile.Appearance.TextOptions.WordWrap   = WordWrap.NoWrap;
            this.lbLinkFile.AutoSizeMode                      = LabelAutoSizeMode.None;
            this.lbLinkFile.Cursor                            = Cursors.Hand;
            this.lbLinkFile.Location                          = new Point(3, 140);
            this.lbLinkFile.Name     = "lbLinkFile";
            this.lbLinkFile.Size     = new Size(0x19d, 0x1f);
            this.lbLinkFile.TabIndex = 15;
            this.lbLinkFile.Text     = @"D:\Project\Source (Winform)\HRM\ERP.PMQLNS.V1600\Vssoft.HumanResource\Bin\Import\*.xls";
            this.lbLinkFile.Click   += new EventHandler(this.lbLinkFile_Click);
            this.lbLinkFileDecription.AllowHtmlString = true;
            this.lbLinkFileDecription.Appearance.Options.UseTextOptions = true;
            this.lbLinkFileDecription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbLinkFileDecription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbLinkFileDecription.Location     = new Point(4, 0x6d);
            this.lbLinkFileDecription.Name         = "lbLinkFileDecription";
            this.lbLinkFileDecription.Size         = new Size(410, 0x19);
            this.lbLinkFileDecription.TabIndex     = 15;
            this.lbLinkFileDecription.Text         = "Mở tập tin <b><i>*.xls</i></b> trong thư mục <b>ImportFile</b> tại ổ đĩa c\x00e0i đặt hoặc nhấp v\x00e0o li\x00ean kết sau để xem tập tin mẫu:";
            this.txtFilePath.Location = new Point(3, 0x45);
            this.txtFilePath.Name     = "txtFilePath";
            this.txtFilePath.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Undo, "", -1, true, true, false, ImageLocation.MiddleCenter, null, new KeyShortcut(Keys.None), appearance, "Sử dụng tập tin mẫu để nạp dữ liệu", null, null, true), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image)manager.GetObject("txtFilePath.Properties.Buttons"), new KeyShortcut(Keys.None), obj3, "Chọn tập tin để nạp dữ liệu", "Browse", null, true) });
            this.txtFilePath.Size         = new Size(0x19b, 0x16);
            this.txtFilePath.TabIndex     = 14;
            this.txtFilePath.TabStop      = false;
            this.txtFilePath.ButtonClick += new ButtonPressedEventHandler(this.txtFilePath_ButtonClick);
            this.lbFilePathDescription.Appearance.Options.UseTextOptions = true;
            this.lbFilePathDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbFilePathDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbFilePathDescription.Location     = new Point(3, 3);
            this.lbFilePathDescription.Name         = "lbFilePathDescription";
            this.lbFilePathDescription.Size         = new Size(0x19b, 0x2f);
            this.lbFilePathDescription.TabIndex     = 0;
            this.lbFilePathDescription.Text         = "Điều chỉnh tập tin cần import c\x00f3 cấu tr\x00fac c\x00e1c trường dữ liệu giống như tập tin excel mẫu (xem tập tin mẫu theo đường dẫn b\x00ean dưới). Đảm bảo dữ liệu cột m\x00e3 * kh\x00f4ng tr\x00f9ng lấp nhau.";
            this.wpProcessPage.Controls.Add(this.lbDataRow);
            this.wpProcessPage.Controls.Add(this.lbProgressDescription);
            this.wpProcessPage.Controls.Add(this.mqProgress);
            this.wpProcessPage.Name     = "wpProcessPage";
            this.wpProcessPage.Size     = new Size(0x1ab, 0xae);
            this.wpProcessPage.Text     = "Tiến tr\x00ecnh thực hiện việc nạp dữ liệu";
            this.lbDataRow.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbDataRow.Location     = new Point(4, 0x68);
            this.lbDataRow.Name         = "lbDataRow";
            this.lbDataRow.Size         = new Size(0x199, 0x36);
            this.lbDataRow.TabIndex     = 2;
            this.lbProgressDescription.Appearance.Options.UseTextOptions = true;
            this.lbProgressDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbProgressDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbProgressDescription.Location     = new Point(3, 4);
            this.lbProgressDescription.Name         = "lbProgressDescription";
            this.lbProgressDescription.Size         = new Size(0x19b, 0x2e);
            this.lbProgressDescription.TabIndex     = 1;
            this.mqProgress.EditValue = 0;
            this.mqProgress.Location  = new Point(3, 0x4f);
            this.mqProgress.Name      = "mqProgress";
            this.mqProgress.Properties.ProgressViewStyle = ProgressViewStyle.Solid;
            this.mqProgress.Size     = new Size(410, 0x12);
            this.mqProgress.TabIndex = 0;
            this.wpFinish.AllowBack  = false;
            this.wpFinish.Controls.Add(this.gcMessage);
            this.wpFinish.Controls.Add(this.lbFix);
            this.wpFinish.Controls.Add(this.lbFinishDescription);
            this.wpFinish.Controls.Add(this.lbMessage);
            this.wpFinish.Name      = "wpFinish";
            this.wpFinish.Size      = new Size(0x1ab, 0xae);
            this.wpFinish.Text      = "Ho\x00e0n th\x00e0nh";
            this.gcMessage.Location = new Point(0, 0x17);
            this.gcMessage.MainView = this.gbMessage;
            this.gcMessage.Name     = "gcMessage";
            this.gcMessage.Size     = new Size(0x1ab, 110);
            this.gcMessage.TabIndex = 5;
            this.gcMessage.ViewCollection.AddRange(new BaseView[] { this.gbMessage });
            this.gbMessage.Columns.AddRange(new GridColumn[] { this.colMessage, this.colStatus });
            condition.Appearance.ForeColor            = Color.Red;
            condition.Appearance.Options.UseForeColor = true;
            condition.ApplyToRow = true;
            condition.Column     = this.colStatus;
            condition.Condition  = FormatConditionEnum.Equal;
            condition.Value1     = "1";
            this.gbMessage.FormatConditions.AddRange(new StyleFormatCondition[] { condition });
            this.gbMessage.GridControl = this.gcMessage;
            this.gbMessage.Name        = "gbMessage";
            this.gbMessage.OptionsView.EnableAppearanceEvenRow = true;
            this.gbMessage.OptionsView.RowAutoHeight           = true;
            this.gbMessage.OptionsView.ShowColumnHeaders       = false;
            this.gbMessage.OptionsView.ShowGroupPanel          = false;
            this.gbMessage.OptionsView.ShowIndicator           = false;
            this.colMessage.Caption   = "Th\x00f4ng tin";
            this.colMessage.FieldName = "Message";
            this.colMessage.Name      = "colMessage";
            this.colMessage.OptionsColumn.AllowEdit = false;
            this.colMessage.OptionsColumn.ReadOnly  = true;
            this.colMessage.Visible      = true;
            this.colMessage.VisibleIndex = 0;
            this.lbFix.AutoSize          = true;
            this.lbFix.BackColor         = Color.Transparent;
            this.lbFix.Font         = new Font("Tahoma", 9.75f);
            this.lbFix.Location     = new Point(0x16b, 4);
            this.lbFix.Name         = "lbFix";
            this.lbFix.Size         = new Size(0x33, 0x10);
            this.lbFix.TabIndex     = 3;
            this.lbFix.TabStop      = true;
            this.lbFix.Text         = "Sửa Lỗi";
            this.lbFix.Visible      = false;
            this.lbFix.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lbFix_LinkClicked);
            this.lbFinishDescription.Appearance.Options.UseTextOptions = true;
            this.lbFinishDescription.Appearance.TextOptions.WordWrap   = WordWrap.Wrap;
            this.lbFinishDescription.AutoSizeMode = LabelAutoSizeMode.None;
            this.lbFinishDescription.Location     = new Point(3, 0x8b);
            this.lbFinishDescription.Name         = "lbFinishDescription";
            this.lbFinishDescription.Size         = new Size(0x19b, 0x20);
            this.lbFinishDescription.TabIndex     = 2;
            this.lbFinishDescription.Text         = "Qu\x00e1 tr\x00ecnh import dữ liệu * đ\x00e3 ho\x00e0n tất. Nhấn n\x00fat ho\x00e0n th\x00e0nh ph\x00eda b\x00ean dưới để x\x00e1c nhận lại.";
            this.lbMessage.AllowHtmlString        = true;
            this.lbMessage.Location = new Point(3, 5);
            this.lbMessage.Name     = "lbMessage";
            this.lbMessage.Size     = new Size(0xb6, 14);
            this.lbMessage.TabIndex = 0;
            this.lbMessage.Text     = "Th\x00e0nh c\x00f4ng: <color=red>0</color> mẫu tin. Lỗi: <color=red>0</color> mẫu tin.";
            this.wpSelectField.Controls.Add(this.gcList);
            this.wpSelectField.Name = "wpSelectField";
            this.wpSelectField.Size = new Size(0x1ab, 0xae);
            this.wpSelectField.Text = "Gh\x00e9p trường dữ liệu";
            this.gcList.Dock        = DockStyle.Fill;
            this.gcList.Location    = new Point(0, 0);
            this.gcList.MainView    = this.gbList;
            this.gcList.Name        = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repSelectField });
            this.gcList.Size     = new Size(0x1ab, 0xae);
            this.gcList.TabIndex = 4;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Columns.AddRange(new GridColumn[] { this.colFieldName, this.colSelectField });
            this.gbList.GridControl = this.gcList;
            this.gbList.Name        = "gbList";
            this.gbList.OptionsView.ColumnAutoWidth = false;
            this.gbList.OptionsView.ShowGroupPanel  = false;
            this.gbList.OptionsView.ShowIndicator   = false;
            this.colFieldName.Caption   = "Mặc định";
            this.colFieldName.FieldName = "FieldName";
            this.colFieldName.Name      = "colFieldName";
            this.colFieldName.OptionsColumn.AllowEdit = false;
            this.colFieldName.OptionsColumn.ReadOnly  = true;
            this.colFieldName.Visible        = true;
            this.colFieldName.VisibleIndex   = 0;
            this.colFieldName.Width          = 0x9f;
            this.colSelectField.Caption      = "T\x00f9y chọn";
            this.colSelectField.ColumnEdit   = this.repSelectField;
            this.colSelectField.FieldName    = "SelectField";
            this.colSelectField.Name         = "colSelectField";
            this.colSelectField.Visible      = true;
            this.colSelectField.VisibleIndex = 1;
            this.colSelectField.Width        = 0xc0;
            this.repSelectField.AutoHeight   = false;
            this.repSelectField.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repSelectField.Name     = "repSelectField";
            this.repSelectField.NullText = "<Vui l\x00f2ng chọn>";
            base.AutoScaleDimensions     = new SizeF(6f, 13f);
            base.AutoScaleMode           = AutoScaleMode.Font;
            base.ClientSize = new Size(0x1e7, 0x150);
            base.Controls.Add(this.wcImport);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "xfmBaseImport";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text          = "Nhập Danh S\x00e1ch * Từ Tập Tin Excel";
            base.Load         += new EventHandler(this.xfmImport_Load);
            this.wcImport.EndInit();
            this.wcImport.ResumeLayout(false);
            this.cheIsUpdate.Properties.EndInit();
            this.lcSheet.EndInit();
            this.lcSheet.ResumeLayout(false);
            this.cboSheet.Properties.EndInit();
            this.layoutControlGroup1.EndInit();
            this.layoutControlItem1.EndInit();
            this.wpSelectFile.ResumeLayout(false);
            this.txtFilePath.Properties.EndInit();
            this.wpProcessPage.ResumeLayout(false);
            this.mqProgress.Properties.EndInit();
            this.wpFinish.ResumeLayout(false);
            this.wpFinish.PerformLayout();
            this.gcMessage.EndInit();
            this.gbMessage.EndInit();
            this.wpSelectField.ResumeLayout(false);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repSelectField.EndInit();
            base.ResumeLayout(false);
        }
 public static void Show(MarqueeProgressBarControl progCtrl)
 {
     Action invoker = () => progCtrl.Visible = true;
     progCtrl.Invoke(invoker);
 }
 public static void Hide(MarqueeProgressBarControl progCtrl)
 {
     Action invoker = () => progCtrl.Visible = false;
     progCtrl.Invoke(invoker);
 }
예제 #11
0
        public void SetupStatusControls(
            MarqueeProgressBarControl retrievalProgressBar,
            SimpleButton retrievalProgressButton,
            BarButtonItem rowCountCtl,
            BarButtonItem databaseSubsetButtonItem,
            BarButtonItem clearFiltersCtl,
            BarEditItem filtersEnabledCtl,
            BarStaticItem filterStringCtl)
        {
            RetrievalProgressBar    = retrievalProgressBar;
            RetrievalProgressButton = retrievalProgressButton;
            RowCountCtl             = rowCountCtl;
            DatabaseSubsetButton    = databaseSubsetButtonItem;
            ClearFiltersCtl         = clearFiltersCtl;
            FiltersEnabledCtl       = filtersEnabledCtl;
            FilterStringCtl         = filterStringCtl;

            // Setup event handlers & hide initially

            if (RetrievalProgressButton != null)             // add handler for button that clears filters
            {
                RetrievalProgressButton.Click +=             // add item to handle clear click
                                                 new EventHandler(RetrievalProgressButton_ItemClick);
            }

            if (RowCountCtl != null)             // add handler for click on row count
            {
                RowCountCtl.ItemClick +=         // add item to handle clear click
                                         new DevExpress.XtraBars.ItemClickEventHandler(RowCountCtl_ItemClick);

                ClearFiltersCtl.Visibility = BarItemVisibility.Never;
            }

            if (DatabaseSubsetButton != null)             // add handler for click on row count
            {
                DatabaseSubsetButton.ItemClick +=         // add item to handle clear click
                                                  new DevExpress.XtraBars.ItemClickEventHandler(DatabaseSubsetButton_ItemClick);

                DatabaseSubsetButton.Visibility = BarItemVisibility.Never;
            }

            if (ClearFiltersCtl != null)             // add handler for button that clears filters
            {
                ClearFiltersCtl.ItemClick +=         // add item to handle clear click
                                             new DevExpress.XtraBars.ItemClickEventHandler(ClearFilters_ItemClick);

                ClearFiltersCtl.Visibility = BarItemVisibility.Never;
            }

            if (FiltersEnabledCtl != null)
            {
                FiltersEnabledCtl.ShownEditor +=                 // add event to handle checkbox click
                                                 new DevExpress.XtraBars.ItemClickEventHandler(FiltersEnabledCtl_ShownEditor);

                FiltersEnabledCtl.Visibility = BarItemVisibility.Never;
            }

            if (FilterStringCtl != null)
            {
                FilterStringCtl.Visibility = BarItemVisibility.Never;
            }
        }
예제 #12
0
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmChangeBlock));

            this.marqueeProgressBarControl1 = new MarqueeProgressBarControl();
            this.labelControl1 = new LabelControl();
            this.labelControl2 = new LabelControl();
            this.pictureEdit2  = new PictureEdit();
            this.pictureEdit1  = new PictureEdit();
            this.marqueeProgressBarControl1.Properties.BeginInit();
            this.pictureEdit2.Properties.BeginInit();
            this.pictureEdit1.Properties.BeginInit();
            base.SuspendLayout();
            this.marqueeProgressBarControl1.EditValue = 0;
            this.marqueeProgressBarControl1.Location  = new Point(0x17, 0xd5);
            this.marqueeProgressBarControl1.Name      = "marqueeProgressBarControl1";
            this.marqueeProgressBarControl1.Size      = new Size(0x194, 11);
            this.marqueeProgressBarControl1.TabIndex  = 5;
            this.labelControl1.BorderStyle            = BorderStyles.NoBorder;
            this.labelControl1.Location = new Point(0x17, 0x108);
            this.labelControl1.Name     = "labelControl1";
            this.labelControl1.Size     = new Size(0x83, 14);
            this.labelControl1.TabIndex = 6;
            this.labelControl1.Text     = "Copyright \x00a9 1998-2013";
            this.labelControl2.Location = new Point(0x17, 190);
            this.labelControl2.Name     = "labelControl2";
            this.labelControl2.Size     = new Size(0x37, 14);
            this.labelControl2.TabIndex = 7;
            this.labelControl2.Text     = "Starting...";
            this.pictureEdit2.EditValue = manager.GetObject("pictureEdit2.EditValue");
            this.pictureEdit2.Location  = new Point(12, 11);
            this.pictureEdit2.Name      = "pictureEdit2";
            this.pictureEdit2.Properties.AllowFocused                    = false;
            this.pictureEdit2.Properties.Appearance.BackColor            = Color.Transparent;
            this.pictureEdit2.Properties.Appearance.Options.UseBackColor = true;
            this.pictureEdit2.Properties.BorderStyle = BorderStyles.NoBorder;
            this.pictureEdit2.Properties.ShowMenu    = false;
            this.pictureEdit2.Size      = new Size(0x1aa, 0xa6);
            this.pictureEdit2.TabIndex  = 9;
            this.pictureEdit1.EditValue = manager.GetObject("pictureEdit1.EditValue");
            this.pictureEdit1.Location  = new Point(0x116, 0xf6);
            this.pictureEdit1.Name      = "pictureEdit1";
            this.pictureEdit1.Properties.AllowFocused                    = false;
            this.pictureEdit1.Properties.Appearance.BackColor            = Color.Transparent;
            this.pictureEdit1.Properties.Appearance.Options.UseBackColor = true;
            this.pictureEdit1.Properties.BorderStyle = BorderStyles.NoBorder;
            this.pictureEdit1.Properties.ShowMenu    = false;
            this.pictureEdit1.Size     = new Size(160, 0x2c);
            this.pictureEdit1.TabIndex = 8;
            base.AutoScaleDimensions   = new SizeF(6f, 12f);
            base.AutoScaleMode         = AutoScaleMode.Font;
            base.ClientSize            = new Size(0x1c1, 0x129);
            base.Controls.Add(this.pictureEdit2);
            base.Controls.Add(this.pictureEdit1);
            base.Controls.Add(this.labelControl2);
            base.Controls.Add(this.labelControl1);
            base.Controls.Add(this.marqueeProgressBarControl1);
            base.Name = "FrmChangeBlock";
            this.Text = "Form1";
            this.marqueeProgressBarControl1.Properties.EndInit();
            this.pictureEdit2.Properties.EndInit();
            this.pictureEdit1.Properties.EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }