Ejemplo n.º 1
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmStatistic));

            label6          = new LabelControl();
            groupBox3       = new GroupBox();
            label1          = new Label();
            checkEditbefore = new CheckEdit();
            checkEditfrom   = new CheckEdit();
            dtpBefore       = new DateEdit();
            dtpFrom         = new DateEdit();
            btSearch        = new SimpleButton();
            btPrint         = new SimpleButton();
            radioGroup1     = new RadioGroup();
            groupBox1       = new GroupControl();
            lvObjects       = new CheckedListBoxControl();
            gridControl1    = new GridControl();
            gridView1       = new GridView();
            colDate         = new GridColumn();
            colObject       = new GridColumn();
            colDevice       = new GridColumn();
            colTraffic      = new GridColumn();
            colResult       = new GridColumn();
            colTime         = new GridColumn();
            labelControl1   = new LabelControl();
            groupBox3.SuspendLayout();
            checkEditbefore.Properties.BeginInit();
            checkEditfrom.Properties.BeginInit();
            dtpBefore.Properties.CalendarTimeProperties.BeginInit();
            dtpBefore.Properties.BeginInit();
            dtpFrom.Properties.CalendarTimeProperties.BeginInit();
            dtpFrom.Properties.BeginInit();
            radioGroup1.Properties.BeginInit();
            groupBox1.BeginInit();
            groupBox1.SuspendLayout();
            lvObjects.BeginInit();
            gridControl1.BeginInit();
            gridView1.BeginInit();
            SuspendLayout();
            componentResourceManager.ApplyResources(label6, "label6");
            label6.Appearance.Font = (Font)componentResourceManager.GetObject("label6.Appearance.Font");
            label6.Name            = "label6";
            componentResourceManager.ApplyResources(groupBox3, "groupBox3");
            groupBox3.Controls.Add(label1);
            groupBox3.Controls.Add(checkEditbefore);
            groupBox3.Controls.Add(checkEditfrom);
            groupBox3.Controls.Add(dtpBefore);
            groupBox3.Controls.Add(dtpFrom);
            groupBox3.Name    = "groupBox3";
            groupBox3.TabStop = false;
            componentResourceManager.ApplyResources(label1, "label1");
            label1.Name = "label1";
            componentResourceManager.ApplyResources(checkEditbefore, "checkEditbefore");
            checkEditbefore.Name = "checkEditbefore";
            checkEditbefore.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("checkEditbefore.Properties.Appearance.Font");
            checkEditbefore.Properties.Appearance.Options.UseFont = true;
            checkEditbefore.Properties.Caption = componentResourceManager.GetString("checkEditbefore.Properties.Caption");
            checkEditbefore.CheckedChanged    += checkEditbefore_CheckedChanged;
            componentResourceManager.ApplyResources(checkEditfrom, "checkEditfrom");
            checkEditfrom.Name = "checkEditfrom";
            checkEditfrom.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("checkEditfrom.Properties.Appearance.Font");
            checkEditfrom.Properties.Appearance.Options.UseFont = true;
            checkEditfrom.Properties.Caption = componentResourceManager.GetString("checkEditfrom.Properties.Caption");
            checkEditfrom.CheckedChanged    += checkEditfrom_CheckedChanged;
            componentResourceManager.ApplyResources(dtpBefore, "dtpBefore");
            dtpBefore.Name = "dtpBefore";
            dtpBefore.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("dtpBefore.Properties.Appearance.Font");
            dtpBefore.Properties.Appearance.Options.UseFont = true;
            dtpBefore.Properties.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            componentResourceManager.ApplyResources(dtpFrom, "dtpFrom");
            dtpFrom.Name = "dtpFrom";
            dtpFrom.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("dtpFrom.Properties.Appearance.Font");
            dtpFrom.Properties.Appearance.Options.UseFont = true;
            dtpFrom.Properties.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            componentResourceManager.ApplyResources(btSearch, "btSearch");
            btSearch.Appearance.Font            = (Font)componentResourceManager.GetObject("btSearch.Appearance.Font");
            btSearch.Appearance.Options.UseFont = true;
            btSearch.Name   = "btSearch";
            btSearch.Click += btSearch_Click;
            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;
            componentResourceManager.ApplyResources(radioGroup1, "radioGroup1");
            radioGroup1.Name = "radioGroup1";
            radioGroup1.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("radioGroup1.Properties.Appearance.Font");
            radioGroup1.Properties.Appearance.Options.UseFont = true;
            radioGroup1.Properties.Items.AddRange(new RadioGroupItem[4]
            {
                new RadioGroupItem(componentResourceManager.GetObject("radioGroup1.Properties.Items"), componentResourceManager.GetString("radioGroup1.Properties.Items1")),
                new RadioGroupItem(componentResourceManager.GetObject("radioGroup1.Properties.Items2"), componentResourceManager.GetString("radioGroup1.Properties.Items3")),
                new RadioGroupItem(componentResourceManager.GetObject("radioGroup1.Properties.Items4"), componentResourceManager.GetString("radioGroup1.Properties.Items5")),
                new RadioGroupItem(componentResourceManager.GetObject("radioGroup1.Properties.Items6"), componentResourceManager.GetString("radioGroup1.Properties.Items7"))
            });
            radioGroup1.SelectedIndexChanged           += radioGroup1_SelectedIndexChanged;
            groupBox1.AppearanceCaption.Font            = (Font)componentResourceManager.GetObject("groupBox1.AppearanceCaption.Font");
            groupBox1.AppearanceCaption.Options.UseFont = true;
            groupBox1.Controls.Add(radioGroup1);
            componentResourceManager.ApplyResources(groupBox1, "groupBox1");
            groupBox1.Name        = "groupBox1";
            groupBox1.ShowCaption = false;
            componentResourceManager.ApplyResources(lvObjects, "lvObjects");
            lvObjects.Appearance.Font            = (Font)componentResourceManager.GetObject("lvObjects.Appearance.Font");
            lvObjects.Appearance.Options.UseFont = true;
            lvObjects.Name = "lvObjects";
            componentResourceManager.ApplyResources(gridControl1, "gridControl1");
            gridControl1.LookAndFeel.SkinName = "Office 2007 Blue";
            gridControl1.MainView             = gridView1;
            gridControl1.Name = "gridControl1";
            gridControl1.ViewCollection.AddRange(new BaseView[1]
            {
                gridView1
            });
            gridView1.Appearance.ColumnFilterButton.BackColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButton.BackColor");
            gridView1.Appearance.ColumnFilterButton.BackColor2                   = (Color)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButton.BackColor2");
            gridView1.Appearance.ColumnFilterButton.BorderColor                  = (Color)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButton.BorderColor");
            gridView1.Appearance.ColumnFilterButton.ForeColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButton.ForeColor");
            gridView1.Appearance.ColumnFilterButton.GradientMode                 = (LinearGradientMode)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButton.GradientMode");
            gridView1.Appearance.ColumnFilterButton.Options.UseBackColor         = true;
            gridView1.Appearance.ColumnFilterButton.Options.UseBorderColor       = true;
            gridView1.Appearance.ColumnFilterButton.Options.UseForeColor         = true;
            gridView1.Appearance.ColumnFilterButtonActive.BackColor              = (Color)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButtonActive.BackColor");
            gridView1.Appearance.ColumnFilterButtonActive.BackColor2             = (Color)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButtonActive.BackColor2");
            gridView1.Appearance.ColumnFilterButtonActive.BorderColor            = (Color)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButtonActive.BorderColor");
            gridView1.Appearance.ColumnFilterButtonActive.ForeColor              = (Color)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButtonActive.ForeColor");
            gridView1.Appearance.ColumnFilterButtonActive.GradientMode           = (LinearGradientMode)componentResourceManager.GetObject("gridView1.Appearance.ColumnFilterButtonActive.GradientMode");
            gridView1.Appearance.ColumnFilterButtonActive.Options.UseBackColor   = true;
            gridView1.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true;
            gridView1.Appearance.ColumnFilterButtonActive.Options.UseForeColor   = true;
            gridView1.Appearance.Empty.BackColor                          = (Color)componentResourceManager.GetObject("gridView1.Appearance.Empty.BackColor");
            gridView1.Appearance.Empty.Options.UseBackColor               = true;
            gridView1.Appearance.EvenRow.BackColor                        = (Color)componentResourceManager.GetObject("gridView1.Appearance.EvenRow.BackColor");
            gridView1.Appearance.EvenRow.ForeColor                        = (Color)componentResourceManager.GetObject("gridView1.Appearance.EvenRow.ForeColor");
            gridView1.Appearance.EvenRow.Options.UseBackColor             = true;
            gridView1.Appearance.EvenRow.Options.UseForeColor             = true;
            gridView1.Appearance.FilterCloseButton.BackColor              = (Color)componentResourceManager.GetObject("gridView1.Appearance.FilterCloseButton.BackColor");
            gridView1.Appearance.FilterCloseButton.BackColor2             = (Color)componentResourceManager.GetObject("gridView1.Appearance.FilterCloseButton.BackColor2");
            gridView1.Appearance.FilterCloseButton.BorderColor            = (Color)componentResourceManager.GetObject("gridView1.Appearance.FilterCloseButton.BorderColor");
            gridView1.Appearance.FilterCloseButton.ForeColor              = (Color)componentResourceManager.GetObject("gridView1.Appearance.FilterCloseButton.ForeColor");
            gridView1.Appearance.FilterCloseButton.GradientMode           = (LinearGradientMode)componentResourceManager.GetObject("gridView1.Appearance.FilterCloseButton.GradientMode");
            gridView1.Appearance.FilterCloseButton.Options.UseBackColor   = true;
            gridView1.Appearance.FilterCloseButton.Options.UseBorderColor = true;
            gridView1.Appearance.FilterCloseButton.Options.UseForeColor   = true;
            gridView1.Appearance.FilterPanel.BackColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.FilterPanel.BackColor");
            gridView1.Appearance.FilterPanel.ForeColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.FilterPanel.ForeColor");
            gridView1.Appearance.FilterPanel.Options.UseBackColor         = true;
            gridView1.Appearance.FilterPanel.Options.UseForeColor         = true;
            gridView1.Appearance.FixedLine.BackColor                      = (Color)componentResourceManager.GetObject("gridView1.Appearance.FixedLine.BackColor");
            gridView1.Appearance.FixedLine.Options.UseBackColor           = true;
            gridView1.Appearance.FocusedCell.BackColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.FocusedCell.BackColor");
            gridView1.Appearance.FocusedCell.ForeColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.FocusedCell.ForeColor");
            gridView1.Appearance.FocusedCell.Options.UseBackColor         = true;
            gridView1.Appearance.FocusedCell.Options.UseForeColor         = true;
            gridView1.Appearance.FocusedRow.BackColor                     = (Color)componentResourceManager.GetObject("gridView1.Appearance.FocusedRow.BackColor");
            gridView1.Appearance.FocusedRow.ForeColor                     = (Color)componentResourceManager.GetObject("gridView1.Appearance.FocusedRow.ForeColor");
            gridView1.Appearance.FocusedRow.Options.UseBackColor          = true;
            gridView1.Appearance.FocusedRow.Options.UseForeColor          = true;
            gridView1.Appearance.FooterPanel.BackColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.FooterPanel.BackColor");
            gridView1.Appearance.FooterPanel.BackColor2                   = (Color)componentResourceManager.GetObject("gridView1.Appearance.FooterPanel.BackColor2");
            gridView1.Appearance.FooterPanel.BorderColor                  = (Color)componentResourceManager.GetObject("gridView1.Appearance.FooterPanel.BorderColor");
            gridView1.Appearance.FooterPanel.ForeColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.FooterPanel.ForeColor");
            gridView1.Appearance.FooterPanel.GradientMode                 = (LinearGradientMode)componentResourceManager.GetObject("gridView1.Appearance.FooterPanel.GradientMode");
            gridView1.Appearance.FooterPanel.Options.UseBackColor         = true;
            gridView1.Appearance.FooterPanel.Options.UseBorderColor       = true;
            gridView1.Appearance.FooterPanel.Options.UseForeColor         = true;
            gridView1.Appearance.GroupButton.BackColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupButton.BackColor");
            gridView1.Appearance.GroupButton.BorderColor                  = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupButton.BorderColor");
            gridView1.Appearance.GroupButton.ForeColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupButton.ForeColor");
            gridView1.Appearance.GroupButton.Options.UseBackColor         = true;
            gridView1.Appearance.GroupButton.Options.UseBorderColor       = true;
            gridView1.Appearance.GroupButton.Options.UseForeColor         = true;
            gridView1.Appearance.GroupFooter.BackColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupFooter.BackColor");
            gridView1.Appearance.GroupFooter.BorderColor                  = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupFooter.BorderColor");
            gridView1.Appearance.GroupFooter.ForeColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupFooter.ForeColor");
            gridView1.Appearance.GroupFooter.Options.UseBackColor         = true;
            gridView1.Appearance.GroupFooter.Options.UseBorderColor       = true;
            gridView1.Appearance.GroupFooter.Options.UseForeColor         = true;
            gridView1.Appearance.GroupPanel.BackColor                     = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupPanel.BackColor");
            gridView1.Appearance.GroupPanel.ForeColor                     = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupPanel.ForeColor");
            gridView1.Appearance.GroupPanel.Options.UseBackColor          = true;
            gridView1.Appearance.GroupPanel.Options.UseForeColor          = true;
            gridView1.Appearance.GroupRow.BackColor                       = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupRow.BackColor");
            gridView1.Appearance.GroupRow.BorderColor                     = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupRow.BorderColor");
            gridView1.Appearance.GroupRow.Font                         = (Font)componentResourceManager.GetObject("gridView1.Appearance.GroupRow.Font");
            gridView1.Appearance.GroupRow.ForeColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.GroupRow.ForeColor");
            gridView1.Appearance.GroupRow.Options.UseBackColor         = true;
            gridView1.Appearance.GroupRow.Options.UseBorderColor       = true;
            gridView1.Appearance.GroupRow.Options.UseFont              = true;
            gridView1.Appearance.GroupRow.Options.UseForeColor         = true;
            gridView1.Appearance.HeaderPanel.BackColor                 = (Color)componentResourceManager.GetObject("gridView1.Appearance.HeaderPanel.BackColor");
            gridView1.Appearance.HeaderPanel.BackColor2                = (Color)componentResourceManager.GetObject("gridView1.Appearance.HeaderPanel.BackColor2");
            gridView1.Appearance.HeaderPanel.BorderColor               = (Color)componentResourceManager.GetObject("gridView1.Appearance.HeaderPanel.BorderColor");
            gridView1.Appearance.HeaderPanel.Font                      = (Font)componentResourceManager.GetObject("gridView1.Appearance.HeaderPanel.Font");
            gridView1.Appearance.HeaderPanel.ForeColor                 = (Color)componentResourceManager.GetObject("gridView1.Appearance.HeaderPanel.ForeColor");
            gridView1.Appearance.HeaderPanel.GradientMode              = (LinearGradientMode)componentResourceManager.GetObject("gridView1.Appearance.HeaderPanel.GradientMode");
            gridView1.Appearance.HeaderPanel.Options.UseBackColor      = true;
            gridView1.Appearance.HeaderPanel.Options.UseBorderColor    = true;
            gridView1.Appearance.HeaderPanel.Options.UseFont           = true;
            gridView1.Appearance.HeaderPanel.Options.UseForeColor      = true;
            gridView1.Appearance.HideSelectionRow.BackColor            = (Color)componentResourceManager.GetObject("gridView1.Appearance.HideSelectionRow.BackColor");
            gridView1.Appearance.HideSelectionRow.ForeColor            = (Color)componentResourceManager.GetObject("gridView1.Appearance.HideSelectionRow.ForeColor");
            gridView1.Appearance.HideSelectionRow.Options.UseBackColor = true;
            gridView1.Appearance.HideSelectionRow.Options.UseForeColor = true;
            gridView1.Appearance.HorzLine.BackColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.HorzLine.BackColor");
            gridView1.Appearance.HorzLine.Options.UseBackColor         = true;
            gridView1.Appearance.OddRow.BackColor                      = (Color)componentResourceManager.GetObject("gridView1.Appearance.OddRow.BackColor");
            gridView1.Appearance.OddRow.ForeColor                      = (Color)componentResourceManager.GetObject("gridView1.Appearance.OddRow.ForeColor");
            gridView1.Appearance.OddRow.Options.UseBackColor           = true;
            gridView1.Appearance.OddRow.Options.UseForeColor           = true;
            gridView1.Appearance.Preview.BackColor                     = (Color)componentResourceManager.GetObject("gridView1.Appearance.Preview.BackColor");
            gridView1.Appearance.Preview.ForeColor                     = (Color)componentResourceManager.GetObject("gridView1.Appearance.Preview.ForeColor");
            gridView1.Appearance.Preview.Options.UseBackColor          = true;
            gridView1.Appearance.Preview.Options.UseForeColor          = true;
            gridView1.Appearance.Row.BackColor                         = (Color)componentResourceManager.GetObject("gridView1.Appearance.Row.BackColor");
            gridView1.Appearance.Row.ForeColor                         = (Color)componentResourceManager.GetObject("gridView1.Appearance.Row.ForeColor");
            gridView1.Appearance.Row.Options.UseBackColor              = true;
            gridView1.Appearance.Row.Options.UseForeColor              = true;
            gridView1.Appearance.RowSeparator.BackColor                = (Color)componentResourceManager.GetObject("gridView1.Appearance.RowSeparator.BackColor");
            gridView1.Appearance.RowSeparator.Options.UseBackColor     = true;
            gridView1.Appearance.SelectedRow.BackColor                 = (Color)componentResourceManager.GetObject("gridView1.Appearance.SelectedRow.BackColor");
            gridView1.Appearance.SelectedRow.ForeColor                 = (Color)componentResourceManager.GetObject("gridView1.Appearance.SelectedRow.ForeColor");
            gridView1.Appearance.SelectedRow.Options.UseBackColor      = true;
            gridView1.Appearance.SelectedRow.Options.UseForeColor      = true;
            gridView1.Appearance.VertLine.BackColor                    = (Color)componentResourceManager.GetObject("gridView1.Appearance.VertLine.BackColor");
            gridView1.Appearance.VertLine.Options.UseBackColor         = true;
            gridView1.Columns.AddRange(new GridColumn[6]
            {
                colDate,
                colObject,
                colDevice,
                colTraffic,
                colResult,
                colTime
            });
            gridView1.GridControl = gridControl1;
            gridView1.Name        = "gridView1";
            gridView1.OptionsFind.ClearFindOnClose        = false;
            gridView1.OptionsFind.FindDelay               = 10000;
            gridView1.OptionsFind.FindMode                = FindMode.Always;
            gridView1.OptionsFind.ShowCloseButton         = false;
            gridView1.OptionsSelection.MultiSelect        = true;
            gridView1.OptionsView.EnableAppearanceEvenRow = true;
            gridView1.OptionsView.EnableAppearanceOddRow  = true;
            gridView1.OptionsView.ShowFooter              = true;
            gridView1.OptionsView.ShowGroupPanel          = false;
            componentResourceManager.ApplyResources(colDate, "colDate");
            colDate.FieldName = "Date";
            colDate.Name      = "colDate";
            colDate.OptionsColumn.AllowEdit = false;
            colDate.OptionsColumn.ReadOnly  = true;
            componentResourceManager.ApplyResources(colObject, "colObject");
            colObject.FieldName = "Object";
            colObject.Name      = "colObject";
            colObject.OptionsColumn.AllowEdit = false;
            colObject.OptionsColumn.ReadOnly  = true;
            componentResourceManager.ApplyResources(colDevice, "colDevice");
            colDevice.FieldName = "Position";
            colDevice.Name      = "colDevice";
            colDevice.OptionsColumn.AllowEdit = false;
            colDevice.OptionsColumn.ReadOnly  = true;
            componentResourceManager.ApplyResources(colTraffic, "colTraffic");
            colTraffic.FieldName = "Traffic";
            colTraffic.Name      = "colTraffic";
            colTraffic.OptionsColumn.AllowEdit = false;
            colTraffic.Summary.AddRange(new GridSummaryItem[1]
            {
                new GridColumnSummaryItem((SummaryItemType)componentResourceManager.GetObject("colTraffic.Summary"))
            });
            componentResourceManager.ApplyResources(colResult, "colResult");
            colResult.FieldName = "Result";
            colResult.Name      = "colResult";
            colResult.OptionsColumn.AllowEdit = false;
            colResult.Summary.AddRange(new GridSummaryItem[1]
            {
                new GridColumnSummaryItem((SummaryItemType)componentResourceManager.GetObject("colResult.Summary"))
            });
            componentResourceManager.ApplyResources(colTime, "colTime");
            colTime.DisplayFormat.FormatString = "HH:mm";
            colTime.DisplayFormat.FormatType   = FormatType.DateTime;
            colTime.FieldName             = "Time";
            colTime.Name                  = "colTime";
            labelControl1.Appearance.Font = (Font)componentResourceManager.GetObject("labelControl1.Appearance.Font");
            componentResourceManager.ApplyResources(labelControl1, "labelControl1");
            labelControl1.Name         = "labelControl1";
            Appearance.Options.UseFont = true;
            AutoScaleMode = AutoScaleMode.None;
            componentResourceManager.ApplyResources(this, "$this");
            ControlBox = false;
            Controls.Add(labelControl1);
            Controls.Add(gridControl1);
            Controls.Add(lvObjects);
            Controls.Add(groupBox3);
            Controls.Add(groupBox1);
            Controls.Add(btSearch);
            Controls.Add(btPrint);
            Controls.Add(label6);
            FormBorderStyle = FormBorderStyle.None;
            MaximizeBox     = false;
            MinimizeBox     = false;
            Name            = "FrmStatistic";
            WindowState     = FormWindowState.Maximized;
            Load           += frmStatistic_Load;
            Resize         += frmStatistic_Resize;
            groupBox3.ResumeLayout(false);
            groupBox3.PerformLayout();
            checkEditbefore.Properties.EndInit();
            checkEditfrom.Properties.EndInit();
            dtpBefore.Properties.CalendarTimeProperties.EndInit();
            dtpBefore.Properties.EndInit();
            dtpFrom.Properties.CalendarTimeProperties.EndInit();
            dtpFrom.Properties.EndInit();
            radioGroup1.Properties.EndInit();
            groupBox1.EndInit();
            groupBox1.ResumeLayout(false);
            lvObjects.EndInit();
            gridControl1.EndInit();
            gridView1.EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
Ejemplo n.º 2
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmLogSearch));

            repositoryItemPictureEdit1 = new RepositoryItemPictureEdit();
            repositoryItemDateEdit1    = new RepositoryItemDateEdit();
            groupBox1     = new GroupBox();
            labelControl3 = new LabelControl();
            labelControl1 = new LabelControl();
            spinEdit1     = new SpinEdit();
            lvObjects     = new CheckedListBoxControl();
            lbObjects     = new LabelControl();
            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();
            btClear = new SimpleButton();
            repositoryItemPictureEdit1.BeginInit();
            repositoryItemDateEdit1.BeginInit();
            repositoryItemDateEdit1.CalendarTimeProperties.BeginInit();
            groupBox1.SuspendLayout();
            spinEdit1.Properties.BeginInit();
            lvObjects.BeginInit();
            tbScore.Properties.BeginInit();
            pictureEdit1.Properties.BeginInit();
            gbDate.SuspendLayout();
            dtBefore.Properties.CalendarTimeProperties.BeginInit();
            dtBefore.Properties.BeginInit();
            dtFrom.Properties.CalendarTimeProperties.BeginInit();
            dtFrom.Properties.BeginInit();
            gridControl1.BeginInit();
            gridView1.BeginInit();
            marqueeProgressBarControl1.Properties.BeginInit();
            SuspendLayout();
            repositoryItemPictureEdit1.Name             = "repositoryItemPictureEdit1";
            repositoryItemPictureEdit1.PictureStoreMode = PictureStoreMode.ByteArray;
            componentResourceManager.ApplyResources(repositoryItemDateEdit1, "repositoryItemDateEdit1");
            repositoryItemDateEdit1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("repositoryItemDateEdit1.Buttons"))
            });
            repositoryItemDateEdit1.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            repositoryItemDateEdit1.Name = "repositoryItemDateEdit1";
            groupBox1.Controls.Add(labelControl3);
            groupBox1.Controls.Add(labelControl1);
            groupBox1.Controls.Add(spinEdit1);
            groupBox1.Controls.Add(lvObjects);
            groupBox1.Controls.Add(lbObjects);
            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;
            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.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            componentResourceManager.ApplyResources(lvObjects, "lvObjects");
            lvObjects.Appearance.Font            = (Font)componentResourceManager.GetObject("lvObjects.Appearance.Font");
            lvObjects.Appearance.Options.UseFont = true;
            lvObjects.Name            = "lvObjects";
            lbObjects.Appearance.Font = (Font)componentResourceManager.GetObject("lbObjects.Appearance.Font");
            componentResourceManager.ApplyResources(lbObjects, "lbObjects");
            lbObjects.Name         = "lbObjects";
            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";
            componentResourceManager.ApplyResources(btSearch, "btSearch");
            btSearch.Appearance.Font            = (Font)componentResourceManager.GetObject("btSearch.Appearance.Font");
            btSearch.Appearance.Options.UseFont = true;
            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;
            gbDate.Enter  += groupBox3_Enter;
            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.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            dtBefore.Properties.DisplayFormat.FormatString = "dd.MMMM.yyyy HH:mm:ss";
            dtBefore.Properties.DisplayFormat.FormatType   = FormatType.DateTime;
            dtBefore.Properties.EditFormat.FormatString    = "dd.MMMM.yyyy HH:mm:ss";
            dtBefore.Properties.EditFormat.FormatType      = FormatType.DateTime;
            dtBefore.Properties.Mask.EditMask = componentResourceManager.GetString("dtBefore.Properties.Mask.EditMask");
            componentResourceManager.ApplyResources(dtFrom, "dtFrom");
            dtFrom.Name = "dtFrom";
            dtFrom.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton((ButtonPredefines)componentResourceManager.GetObject("dtFrom.Properties.Buttons"))
            });
            dtFrom.Properties.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            dtFrom.Properties.DisplayFormat.FormatString = "dd.MMMM.yyyy HH:mm:ss";
            dtFrom.Properties.DisplayFormat.FormatType   = FormatType.DateTime;
            dtFrom.Properties.EditFormat.FormatString    = "dd.MMMM.yyyy HH:mm:ss";
            dtFrom.Properties.EditFormat.FormatType      = FormatType.DateTime;
            dtFrom.Properties.Mask.EditMask = componentResourceManager.GetString("dtFrom.Properties.Mask.EditMask");
            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;
            colName.AppearanceHeader.TextOptions.WordWrap   = WordWrap.Wrap;
            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 = "Date";
            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";
            componentResourceManager.ApplyResources(btClear, "btClear");
            btClear.Appearance.Font            = (Font)componentResourceManager.GetObject("btClear.Appearance.Font");
            btClear.Appearance.Options.UseFont = true;
            btClear.Name   = "btClear";
            btClear.Click += btClear_Click;
            Appearance.Options.UseFont = true;
            AutoScaleMode = AutoScaleMode.None;
            componentResourceManager.ApplyResources(this, "$this");
            Controls.Add(btClear);
            Controls.Add(labelControl2);
            Controls.Add(marqueeProgressBarControl1);
            Controls.Add(groupBox1);
            Controls.Add(btPrint);
            Controls.Add(gridControl1);
            FormBorderStyle = FormBorderStyle.None;
            Name            = "FrmLogSearch";
            ShowIcon        = false;
            WindowState     = FormWindowState.Maximized;
            FormClosing    += frmLogSearch_FormClosing;
            Load           += frmDBSearch_Load;
            Resize         += frmDBSearch_Resize;
            repositoryItemPictureEdit1.EndInit();
            repositoryItemDateEdit1.CalendarTimeProperties.EndInit();
            repositoryItemDateEdit1.EndInit();
            groupBox1.ResumeLayout(false);
            groupBox1.PerformLayout();
            spinEdit1.Properties.EndInit();
            lvObjects.EndInit();
            tbScore.Properties.EndInit();
            pictureEdit1.Properties.EndInit();
            gbDate.ResumeLayout(false);
            gbDate.PerformLayout();
            dtBefore.Properties.CalendarTimeProperties.EndInit();
            dtBefore.Properties.EndInit();
            dtFrom.Properties.CalendarTimeProperties.EndInit();
            dtFrom.Properties.EndInit();
            gridControl1.EndInit();
            gridView1.EndInit();
            marqueeProgressBarControl1.Properties.EndInit();
            ResumeLayout(false);
            PerformLayout();
        }