public MetadataContainerLoadWindow(object owner, MetadataContainer metadataContainer, BaseConnectionDescriptor connection = null)
        {
            Debug.Assert(metadataContainer != null);

            _owner = owner;

            _pages = new List <WizardPageInfo>();

            // store reference to edited object
            EditedMetadataContainer = metadataContainer;

            _initialConnection = connection;
            Connection         = connection;

            // create new SQLContext for loading
            _temporarySqlContext = new SQLContext();
            _temporarySqlContext.Assign(EditedMetadataContainer.SQLContext);

            // create temporary MetadataContainer
            TemporaryMetadataContainer             = new MetadataContainer(_temporarySqlContext);
            _temporarySqlContext.MetadataContainer = TemporaryMetadataContainer;

            TemporaryMetadataContainer.Assign(EditedMetadataContainer);
            TemporaryMetadataContainer.LoadingOptions = new MetadataLoadingOptions();
            TemporaryMetadataContainer.LoadingOptions.Assign(EditedMetadataContainer.LoadingOptions);

            InitializeComponent();

            // set up pages

            _wizardPageWelcome = new WelcomeWizardPage {
                Visibility = Visibility.Collapsed
            };
            GridRoot.Children.Add(_wizardPageWelcome);

            _wizardPageConnectionType = new ConnectionTypeWizardPage {
                Visibility = Visibility.Collapsed
            };
            GridRoot.Children.Add(_wizardPageConnectionType);

            _wizardPageMetadataOpts = new MetadataOptsWizardPage {
                Visibility = Visibility.Collapsed
            };
            GridRoot.Children.Add(_wizardPageMetadataOpts);

            _wizardPageLoadOpts = new LoadOptsWizardPage {
                Visibility = Visibility.Collapsed
            };
            GridRoot.Children.Add(_wizardPageLoadOpts);

            _wizardPageFilter = new FilterWizardPage {
                Visibility = Visibility.Collapsed
            };
            GridRoot.Children.Add(_wizardPageFilter);

            _wizardPageLoading = new LoadingWizardPage {
                Visibility = Visibility.Collapsed
            };
            GridRoot.Children.Add(_wizardPageLoading);

            _pages.Add(new WizardPageInfo(ShowWelcome));
            _pages.Add(new WizardPageInfo(ShowConnection, CheckConnectionSelected));
            _pages.Add(new WizardPageInfo(ShowMetadataOpts, CheckShowMetadataOpts, true, BeforeMetadataOpts));
            _pages.Add(new WizardPageInfo(ShowLoadOpts, CheckLoadOpts, (_temporarySqlContext.SyntaxProvider != null && _temporarySqlContext.SyntaxProvider.IsSupportDatabases()), BeforeLoadOpts));
            _pages.Add(new WizardPageInfo(ShowFilter, CheckFilter));
            _pages.Add(new WizardPageInfo(ShowLoading));

            _currentPage = 0;

            _pages[_currentPage].ShowProc();

            _wizardPageMetadataOpts.bConnectionTest.Click += buttonConnectionTest_Click;
            _wizardPageConnectionType.ComboBoxConnectionType.SelectionChanged += cbConnectionType_SelectedIndexChanged;
            _wizardPageConnectionType.ComboBoxSyntaxProvider.SelectionChanged += ComboBoxSyntaxProvider_SelectedIndexChanged;

            bBack.Click += buttonBack_Click;
            bNext.Click += buttonNext_Click;

            Loaded += MetadataContainerLoadForm_Load;

            Localize();

            Loaded += MetadataContainerLoadForm_Loaded;

            var propertyLanguage =
                DependencyPropertyDescriptor.FromProperty(LanguageProperty, typeof(MetadataContainerLoadWindow));

            propertyLanguage.AddValueChanged(this, LanguagePropertyChanged);
        }
        public MetadataContainerLoadForm(MetadataContainer metadataContainer, BaseConnectionDescriptor connection = null)
        {
            Debug.Assert(metadataContainer != null);

            _pages = new List <WizardPageInfo>();

            // store reference to edited object
            EditedMetadataContainer = metadataContainer;

            _initialConnection = connection;
            _connection        = connection;

            // create new SQLContext for loading
            _temporarySQLContext = new SQLContext();
            _temporarySQLContext.Assign(EditedMetadataContainer.SQLContext);

            // create temporary MetadataContainer
            TemporaryMetadataContainer             = new MetadataContainer(_temporarySQLContext);
            _temporarySQLContext.MetadataContainer = TemporaryMetadataContainer;

            TemporaryMetadataContainer.Assign(EditedMetadataContainer);
            TemporaryMetadataContainer.LoadingOptions = new MetadataLoadingOptions();
            TemporaryMetadataContainer.LoadingOptions.Assign(EditedMetadataContainer.LoadingOptions);

            InitializeComponent();

            // set up pages

            _wizardPageWelcome = new WelcomeWizardPage
            {
                Dock    = DockStyle.Fill,
                Visible = false
            };
            Controls.Add(_wizardPageWelcome);

            _wizardPageConnectionType = new ConnectionTypeWizardPage
            {
                Dock    = DockStyle.Fill,
                Visible = false
            };
            Controls.Add(_wizardPageConnectionType);

            _wizardPageMetadataOpts = new MetadataOptsWizardPage
            {
                Dock    = DockStyle.Fill,
                Visible = false
            };
            Controls.Add(_wizardPageMetadataOpts);

            _wizardPageLoadOpts = new LoadOptsWizardPage
            {
                Dock    = DockStyle.Fill,
                Visible = false
            };
            Controls.Add(_wizardPageLoadOpts);

            _wizardPageFilter = new FilterWizardPage
            {
                Dock    = DockStyle.Fill,
                Visible = false
            };
            Controls.Add(_wizardPageFilter);

            _wizardPageLoading = new LoadingWizardPage
            {
                Dock    = DockStyle.Fill,
                Visible = false
            };
            Controls.Add(_wizardPageLoading);

            _pages.Add(new WizardPageInfo(ShowWelcome));
            _pages.Add(new WizardPageInfo(ShowConnection, CheckConnectionSelected));
            _pages.Add(new WizardPageInfo(ShowMetadataOpts, CheckShowMetadataOpts, true, BeforeMetadataOpts));
            _pages.Add(new WizardPageInfo(ShowLoadOpts, CheckLoadOpts, (_temporarySQLContext.SyntaxProvider != null && _temporarySQLContext.SyntaxProvider.IsSupportDatabases()), BeforeLoadOpts));
            _pages.Add(new WizardPageInfo(ShowFilter, CheckFilter));
            _pages.Add(new WizardPageInfo(ShowLoading));

            _currentPage = 0;

            _pages[_currentPage].showProc();

            _wizardPageMetadataOpts.bConnectionTest.Click += buttonConnectionTest_Click;
            _wizardPageConnectionType.cbConnectionType.SelectedIndexChanged += cbConnectionType_SelectedIndexChanged;
            _wizardPageConnectionType.cbSyntax.SelectedIndexChanged         += cbSyntax_SelectedIndexChanged;

            bBack.Click += buttonBack_Click;
            bNext.Click += buttonNext_Click;

            Load += MetadataContainerLoadForm_Load;
        }
Пример #3
0
 public static void ChangeCaptionWelcomeWizardPage(string parent_name, string language, WelcomeWizardPage welcome_page)
 {
     welcome_page.Text = CaptionEngine.GetControlCaption(parent_name, welcome_page.Name, BaseConstant.CONTROL_TEXT, language);
 }
Пример #4
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);
        }
Пример #5
0
 public static void ChangeCaptionWelcomeWizardPage(string parent_name, string language, WelcomeWizardPage welcome_page)
 {
     welcome_page.Text = CaptionEngine.GetControlCaption(parent_name, welcome_page.Name, BaseConstant.CONTROL_TEXT, language);
 }