コード例 #1
0
ファイル: ErrorForm.cs プロジェクト: HelenSPR/OptimBaseProf
 private void InitializeComponent()
 {
     this.components          = (IContainer) new Container();
     this.atButtonsPanel1     = new atButtonsPanel();
     this.MenuItem            = new ContextMenuStrip(this.components);
     this.MenuItemAdd         = new ToolStripMenuItem();
     this.MenuItemEdit        = new ToolStripMenuItem();
     this.toolStripSeparator1 = new ToolStripSeparator();
     this.MenuItemDoublicate  = new ToolStripMenuItem();
     this.toolStripSeparator2 = new ToolStripSeparator();
     this.MenuItemRemove      = new ToolStripMenuItem();
     this.toolStripSeparator3 = new ToolStripSeparator();
     this.MenuItemMoveToGroup = new ToolStripMenuItem();
     this.ds = new ds_error();
     this.atButtonsPanelDialog = new atButtonsPanel();
     this.atTreeGroup1         = new AtTreeGroup();
     this.splitterControl1     = new SplitterControl();
     this.gridControlError     = new GridControl();
     this.gridViewError        = new GridView();
     this.coliderror           = new GridColumn();
     this.colcode             = new GridColumn();
     this.colname             = new GridColumn();
     this.colerrortype_name   = new GridColumn();
     this.ButtonEditErrorType = new RepositoryItemButtonEdit();
     this.colmessage1         = new GridColumn();
     this.colmessage2         = new GridColumn();
     this.colmessage3         = new GridColumn();
     this.colunpack_picture   = new GridColumn();
     this.ImageEditPic        = new RepositoryItemImageEdit();
     this.colcomment          = new GridColumn();
     this.colshowtype_name    = new GridColumn();
     this.cboShowType         = new RepositoryItemComboBox();
     this.colissave           = new GridColumn();
     this.atButtonsPanel1.BeginInit();
     this.MenuItem.SuspendLayout();
     this.ds.BeginInit();
     this.atButtonsPanelDialog.BeginInit();
     this.atTreeGroup1.BeginInit();
     this.gridControlError.BeginInit();
     this.gridViewError.BeginInit();
     this.ButtonEditErrorType.BeginInit();
     this.ImageEditPic.BeginInit();
     this.cboShowType.BeginInit();
     this.SuspendLayout();
     this.atButtonsPanel1.AcceptButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButtonText            = "";
     this.atButtonsPanel1.CancelButtonUseCancelSelect = true;
     this.atButtonsPanel1.CancelButtonVisible         = true;
     this.atButtonsPanel1.CloseButtonText             = "";
     this.atButtonsPanel1.CloseButtonUseCancelSelect  = false;
     this.atButtonsPanel1.CloseButtonVisible          = false;
     this.atButtonsPanel1.DataMember                 = (string)null;
     this.atButtonsPanel1.DataSource                 = (DataSet)null;
     this.atButtonsPanel1.Dock                       = DockStyle.Bottom;
     this.atButtonsPanel1.EnabledCancelButton        = true;
     this.atButtonsPanel1.EnabledCloseButton         = true;
     this.atButtonsPanel1.EnabledPrintButton         = true;
     this.atButtonsPanel1.EnabledRefreshButton       = true;
     this.atButtonsPanel1.EnabledSaveButton          = true;
     this.atButtonsPanel1.EnabledScriptButton        = true;
     this.atButtonsPanel1.IdDocAppearance            = 0;
     this.atButtonsPanel1.Location                   = new Point(0, 315);
     this.atButtonsPanel1.Name                       = "atButtonsPanel1";
     this.atButtonsPanel1.PrintButtonText            = "";
     this.atButtonsPanel1.PrintButtonVisible         = false;
     this.atButtonsPanel1.ProcessedIsDialog          = false;
     this.atButtonsPanel1.RefreshButtonText          = "Обновить";
     this.atButtonsPanel1.RefreshButtonUseSelectItem = true;
     this.atButtonsPanel1.RefreshButtonVisible       = true;
     this.atButtonsPanel1.SaveButtonText             = "Выбрать";
     this.atButtonsPanel1.SaveButtonUseSelectItem    = true;
     this.atButtonsPanel1.SaveButtonVisible          = true;
     this.atButtonsPanel1.ScriptButtonText           = "";
     this.atButtonsPanel1.ScriptButtonVisible        = false;
     this.atButtonsPanel1.Size                       = new Size(736, 33);
     this.atButtonsPanel1.TabIndex                   = 1;
     this.atButtonsPanel1.TextCancelButton           = "Отменить";
     this.atButtonsPanel1.TextCloseButton            = "Закрыть";
     this.atButtonsPanel1.TextPrintButton            = "Печать...";
     this.atButtonsPanel1.TextRefreshButton          = "Обновить";
     this.atButtonsPanel1.TextSaveButton             = "Применить";
     this.atButtonsPanel1.TextScriptButton           = "Скрипты...";
     this.atButtonsPanel1.VisibleCancelButton        = true;
     this.atButtonsPanel1.VisibleCloseButton         = true;
     this.atButtonsPanel1.VisiblePrintButton         = false;
     this.atButtonsPanel1.VisibleRefreshButton       = false;
     this.atButtonsPanel1.VisibleSaveButton          = true;
     this.atButtonsPanel1.VisibleScriptButton        = false;
     this.atButtonsPanel1.WidthPrintButton           = 75;
     this.MenuItem.Items.AddRange(new ToolStripItem[8]
     {
         (ToolStripItem)this.MenuItemAdd,
         (ToolStripItem)this.MenuItemEdit,
         (ToolStripItem)this.toolStripSeparator1,
         (ToolStripItem)this.MenuItemDoublicate,
         (ToolStripItem)this.toolStripSeparator2,
         (ToolStripItem)this.MenuItemRemove,
         (ToolStripItem)this.toolStripSeparator3,
         (ToolStripItem)this.MenuItemMoveToGroup
     });
     this.MenuItem.Name                                                 = "MenuItem";
     this.MenuItem.Size                                                 = new Size(228, 132);
     this.MenuItemAdd.Name                                              = "MenuItemAdd";
     this.MenuItemAdd.ShortcutKeys                                      = Keys.Insert | Keys.Control;
     this.MenuItemAdd.Size                                              = new Size(227, 22);
     this.MenuItemAdd.Text                                              = "Добавить";
     this.MenuItemAdd.Click                                            += new EventHandler(this.MenuItemAdd_Click);
     this.MenuItemEdit.Name                                             = "MenuItemEdit";
     this.MenuItemEdit.ShortcutKeys                                     = Keys.Return | Keys.Control;
     this.MenuItemEdit.Size                                             = new Size(227, 22);
     this.MenuItemEdit.Text                                             = "Редактировать";
     this.MenuItemEdit.Click                                           += new EventHandler(this.MenuItemEdit_Click);
     this.toolStripSeparator1.Name                                      = "toolStripSeparator1";
     this.toolStripSeparator1.Size                                      = new Size(224, 6);
     this.MenuItemDoublicate.Name                                       = "MenuItemDoublicate";
     this.MenuItemDoublicate.ShortcutKeys                               = Keys.Insert | Keys.Shift | Keys.Control;
     this.MenuItemDoublicate.Size                                       = new Size(227, 22);
     this.MenuItemDoublicate.Text                                       = "Дублировать";
     this.MenuItemDoublicate.Click                                     += new EventHandler(this.MenuItemDoublicate_Click);
     this.toolStripSeparator2.Name                                      = "toolStripSeparator2";
     this.toolStripSeparator2.Size                                      = new Size(224, 6);
     this.MenuItemRemove.Name                                           = "MenuItemRemove";
     this.MenuItemRemove.ShortcutKeys                                   = Keys.Delete | Keys.Control;
     this.MenuItemRemove.Size                                           = new Size(227, 22);
     this.MenuItemRemove.Text                                           = "Удалить";
     this.MenuItemRemove.Click                                         += new EventHandler(this.MenuItemRemove_Click);
     this.toolStripSeparator3.Name                                      = "toolStripSeparator3";
     this.toolStripSeparator3.Size                                      = new Size(224, 6);
     this.MenuItemMoveToGroup.Name                                      = "MenuItemMoveToGroup";
     this.MenuItemMoveToGroup.ShortcutKeys                              = Keys.M | Keys.Control;
     this.MenuItemMoveToGroup.Size                                      = new Size(227, 22);
     this.MenuItemMoveToGroup.Text                                      = "Переместить в группу";
     this.MenuItemMoveToGroup.Click                                    += new EventHandler(this.MenuItemMoveToGroup_Click);
     this.ds.DataSetName                                                = "ds_error";
     this.ds.EnforceConstraints                                         = false;
     this.ds.SchemaSerializationMode                                    = SchemaSerializationMode.IncludeSchema;
     this.atButtonsPanelDialog.AcceptButton                             = atButtonsPanel.bpButtons.None;
     this.atButtonsPanelDialog.CancelButton                             = atButtonsPanel.bpButtons.None;
     this.atButtonsPanelDialog.CancelButtonText                         = "";
     this.atButtonsPanelDialog.CancelButtonUseCancelSelect              = true;
     this.atButtonsPanelDialog.CancelButtonVisible                      = true;
     this.atButtonsPanelDialog.CloseButtonText                          = "";
     this.atButtonsPanelDialog.CloseButtonUseCancelSelect               = false;
     this.atButtonsPanelDialog.CloseButtonVisible                       = false;
     this.atButtonsPanelDialog.DataMember                               = (string)null;
     this.atButtonsPanelDialog.DataSource                               = (DataSet)null;
     this.atButtonsPanelDialog.Dock                                     = DockStyle.Bottom;
     this.atButtonsPanelDialog.EnabledCancelButton                      = true;
     this.atButtonsPanelDialog.EnabledCloseButton                       = true;
     this.atButtonsPanelDialog.EnabledPrintButton                       = true;
     this.atButtonsPanelDialog.EnabledRefreshButton                     = true;
     this.atButtonsPanelDialog.EnabledSaveButton                        = true;
     this.atButtonsPanelDialog.EnabledScriptButton                      = true;
     this.atButtonsPanelDialog.IdDocAppearance                          = 0;
     this.atButtonsPanelDialog.Location                                 = new Point(0, 282);
     this.atButtonsPanelDialog.Name                                     = "atButtonsPanelDialog";
     this.atButtonsPanelDialog.PrintButtonText                          = "";
     this.atButtonsPanelDialog.PrintButtonVisible                       = false;
     this.atButtonsPanelDialog.ProcessedIsDialog                        = false;
     this.atButtonsPanelDialog.RefreshButtonText                        = "Обновить";
     this.atButtonsPanelDialog.RefreshButtonUseSelectItem               = true;
     this.atButtonsPanelDialog.RefreshButtonVisible                     = true;
     this.atButtonsPanelDialog.SaveButtonText                           = "Выбрать";
     this.atButtonsPanelDialog.SaveButtonUseSelectItem                  = true;
     this.atButtonsPanelDialog.SaveButtonVisible                        = true;
     this.atButtonsPanelDialog.ScriptButtonText                         = "";
     this.atButtonsPanelDialog.ScriptButtonVisible                      = false;
     this.atButtonsPanelDialog.Size                                     = new Size(736, 33);
     this.atButtonsPanelDialog.TabIndex                                 = 5;
     this.atButtonsPanelDialog.TextCancelButton                         = "Отменить";
     this.atButtonsPanelDialog.TextCloseButton                          = "Закрыть";
     this.atButtonsPanelDialog.TextPrintButton                          = "Печать...";
     this.atButtonsPanelDialog.TextRefreshButton                        = "Обновить";
     this.atButtonsPanelDialog.TextSaveButton                           = "Выбрать";
     this.atButtonsPanelDialog.TextScriptButton                         = "Скрипты...";
     this.atButtonsPanelDialog.VisibleCancelButton                      = true;
     this.atButtonsPanelDialog.VisibleCloseButton                       = false;
     this.atButtonsPanelDialog.VisiblePrintButton                       = false;
     this.atButtonsPanelDialog.VisibleRefreshButton                     = false;
     this.atButtonsPanelDialog.VisibleSaveButton                        = true;
     this.atButtonsPanelDialog.VisibleScriptButton                      = false;
     this.atButtonsPanelDialog.WidthPrintButton                         = 75;
     this.atTreeGroup1.Appearance.FocusedCell.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.atTreeGroup1.Appearance.FocusedCell.ForeColor                 = Color.Black;
     this.atTreeGroup1.Appearance.FocusedCell.Options.UseBackColor      = true;
     this.atTreeGroup1.Appearance.FocusedCell.Options.UseForeColor      = true;
     this.atTreeGroup1.Appearance.FocusedRow.BackColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.atTreeGroup1.Appearance.FocusedRow.ForeColor                  = Color.Black;
     this.atTreeGroup1.Appearance.FocusedRow.Options.UseBackColor       = true;
     this.atTreeGroup1.Appearance.FocusedRow.Options.UseForeColor       = true;
     this.atTreeGroup1.Appearance.HideSelectionRow.BackColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.atTreeGroup1.Appearance.HideSelectionRow.BackColor2           = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.atTreeGroup1.Appearance.HideSelectionRow.ForeColor            = Color.Black;
     this.atTreeGroup1.Appearance.HideSelectionRow.Options.UseBackColor = true;
     this.atTreeGroup1.Appearance.HideSelectionRow.Options.UseForeColor = true;
     this.atTreeGroup1.Appearance.SelectedRow.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.atTreeGroup1.Appearance.SelectedRow.ForeColor                 = Color.Black;
     this.atTreeGroup1.Appearance.SelectedRow.Options.UseBackColor      = true;
     this.atTreeGroup1.Appearance.SelectedRow.Options.UseForeColor      = true;
     this.atTreeGroup1.BorderStyle                                      = BorderStyles.Simple;
     this.atTreeGroup1.ColumnText                                       = "Группы ошибок";
     this.atTreeGroup1.Connection                                       = (dbconn)null;
     this.atTreeGroup1.DataMember                                       = "errorgroup";
     this.atTreeGroup1.DataRelation                                     = "errorgroup.FK_errorgroup_errorgroup";
     this.atTreeGroup1.DataSource                                       = (object)this.ds;
     this.atTreeGroup1.Dock                                             = DockStyle.Left;
     this.atTreeGroup1.FindEnableAddress                                = true;
     this.atTreeGroup1.FindEnableAgreeName                              = true;
     this.atTreeGroup1.FindEnableComment                                = true;
     this.atTreeGroup1.FindEnableCustomer                               = true;
     this.atTreeGroup1.FindEnableDest                                   = true;
     this.atTreeGroup1.FindEnableDocName                                = true;
     this.atTreeGroup1.FindEnableDocOper                                = true;
     this.atTreeGroup1.FindEnableDtAgree                                = true;
     this.atTreeGroup1.FindEnableDtDoc                                  = true;
     this.atTreeGroup1.FindEnableEditDir                                = true;
     this.atTreeGroup1.FindEnableSign                                   = true;
     this.atTreeGroup1.GridView                                         = (GridView)null;
     this.atTreeGroup1.HorzScrollVisibility                             = DevExpress.XtraTreeList.ScrollVisibility.Never;
     this.atTreeGroup1.IdDocAppearance                                  = "";
     this.atTreeGroup1.ImageIndexFieldName                              = "_imageindex";
     this.atTreeGroup1.IsSupportFilter                                  = false;
     this.atTreeGroup1.KeyFieldName                                     = "iderrorgroup";
     this.atTreeGroup1.Location                                         = new Point(0, 0);
     this.atTreeGroup1.LookAndFeel.Style                                = LookAndFeelStyle.Flat;
     this.atTreeGroup1.LookAndFeel.UseDefaultLookAndFeel                = false;
     this.atTreeGroup1.MoveItems                                        = (DataRow[])null;
     this.atTreeGroup1.Name                                             = "atTreeGroup1";
     this.atTreeGroup1.OptionsBehavior.AutoFocusNewNode                 = true;
     this.atTreeGroup1.OptionsView.ShowHorzLines                        = false;
     this.atTreeGroup1.OptionsView.ShowIndicator                        = false;
     this.atTreeGroup1.OptionsView.ShowVertLines                        = false;
     this.atTreeGroup1.ParentFieldName                                  = "parentid";
     this.atTreeGroup1.PrimaryKeyName                                   = "iderrorgroup";
     this.atTreeGroup1.Size                                             = new Size(180, 282);
     this.atTreeGroup1.TabIndex                                         = 7;
     this.atTreeGroup1.TableNameDiraction                               = "";
     this.splitterControl1.Location                                     = new Point(180, 0);
     this.splitterControl1.Name                                         = "splitterControl1";
     this.splitterControl1.Size                                         = new Size(6, 282);
     this.splitterControl1.TabIndex                                     = 8;
     this.splitterControl1.TabStop                                      = false;
     this.gridControlError.ContextMenuStrip                             = this.MenuItem;
     this.gridControlError.DataMember                                   = "errorgroup.FK_errorgroup_error";
     this.gridControlError.DataSource                                   = (object)this.ds;
     this.gridControlError.Dock                                         = DockStyle.Fill;
     this.gridControlError.EmbeddedNavigator.Name                       = "";
     this.gridControlError.Location                                     = new Point(186, 0);
     this.gridControlError.LookAndFeel.Style                            = LookAndFeelStyle.Flat;
     this.gridControlError.LookAndFeel.UseDefaultLookAndFeel            = false;
     this.gridControlError.MainView                                     = (BaseView)this.gridViewError;
     this.gridControlError.Name                                         = "gridControlError";
     this.gridControlError.RepositoryItems.AddRange(new RepositoryItem[3]
     {
         (RepositoryItem)this.ButtonEditErrorType,
         (RepositoryItem)this.ImageEditPic,
         (RepositoryItem)this.cboShowType
     });
     this.gridControlError.Size     = new Size(550, 282);
     this.gridControlError.TabIndex = 9;
     this.gridControlError.ViewCollection.AddRange(new BaseView[1]
     {
         (BaseView)this.gridViewError
     });
     this.gridViewError.Appearance.FocusedRow.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewError.Appearance.FocusedRow.BackColor2                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewError.Appearance.FocusedRow.BorderColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewError.Appearance.FocusedRow.ForeColor                    = Color.Black;
     this.gridViewError.Appearance.FocusedRow.Options.UseBackColor         = true;
     this.gridViewError.Appearance.FocusedRow.Options.UseBorderColor       = true;
     this.gridViewError.Appearance.FocusedRow.Options.UseForeColor         = true;
     this.gridViewError.Appearance.GroupPanel.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewError.Appearance.GroupPanel.BackColor2                   = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewError.Appearance.GroupPanel.Options.UseBackColor         = true;
     this.gridViewError.Appearance.HideSelectionRow.BackColor              = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewError.Appearance.HideSelectionRow.BackColor2             = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewError.Appearance.HideSelectionRow.BorderColor            = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewError.Appearance.HideSelectionRow.ForeColor              = Color.Black;
     this.gridViewError.Appearance.HideSelectionRow.Options.UseBackColor   = true;
     this.gridViewError.Appearance.HideSelectionRow.Options.UseBorderColor = true;
     this.gridViewError.Appearance.HideSelectionRow.Options.UseForeColor   = true;
     this.gridViewError.Appearance.SelectedRow.BackColor                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewError.Appearance.SelectedRow.BackColor2                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewError.Appearance.SelectedRow.BorderColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewError.Appearance.SelectedRow.ForeColor                   = Color.Black;
     this.gridViewError.Appearance.SelectedRow.Options.UseBackColor        = true;
     this.gridViewError.Appearance.SelectedRow.Options.UseBorderColor      = true;
     this.gridViewError.Appearance.SelectedRow.Options.UseForeColor        = true;
     this.gridViewError.BorderStyle = BorderStyles.Simple;
     this.gridViewError.Columns.AddRange(new GridColumn[11]
     {
         this.coliderror,
         this.colcode,
         this.colname,
         this.colerrortype_name,
         this.colmessage1,
         this.colmessage2,
         this.colmessage3,
         this.colunpack_picture,
         this.colcomment,
         this.colshowtype_name,
         this.colissave
     });
     this.gridViewError.GridControl    = this.gridControlError;
     this.gridViewError.GroupPanelText = "Панель группировки";
     this.gridViewError.Name           = "gridViewError";
     this.gridViewError.OptionsLayout.StoreVisualOptions = false;
     this.gridViewError.OptionsSelection.MultiSelect     = true;
     this.gridViewError.OptionsView.ShowAutoFilterRow    = true;
     this.gridViewError.OptionsView.ShowDetailButtons    = false;
     this.gridViewError.OptionsView.ShowFilterPanelMode  = ShowFilterPanelMode.Never;
     this.gridViewError.OptionsView.ShowIndicator        = false;
     this.coliderror.Caption   = "#";
     this.coliderror.FieldName = "iderror";
     this.coliderror.Name      = "coliderror";
     this.coliderror.OptionsColumn.AllowEdit   = false;
     this.coliderror.OptionsFilter.AllowFilter = false;
     this.coliderror.Visible                          = true;
     this.coliderror.VisibleIndex                     = 0;
     this.colcode.Caption                             = "Код";
     this.colcode.FieldName                           = "code";
     this.colcode.Name                                = "colcode";
     this.colcode.OptionsFilter.AllowFilter           = false;
     this.colcode.Visible                             = true;
     this.colcode.VisibleIndex                        = 1;
     this.colname.Caption                             = "Наименование";
     this.colname.FieldName                           = "name";
     this.colname.Name                                = "colname";
     this.colname.OptionsFilter.AllowFilter           = false;
     this.colname.Visible                             = true;
     this.colname.VisibleIndex                        = 2;
     this.colerrortype_name.Caption                   = "Тип";
     this.colerrortype_name.ColumnEdit                = (RepositoryItem)this.ButtonEditErrorType;
     this.colerrortype_name.FieldName                 = "errortype_name";
     this.colerrortype_name.Name                      = "colerrortype_name";
     this.colerrortype_name.OptionsFilter.AllowFilter = false;
     this.colerrortype_name.Visible                   = true;
     this.colerrortype_name.VisibleIndex              = 3;
     this.ButtonEditErrorType.AutoHeight              = false;
     this.ButtonEditErrorType.Buttons.AddRange(new EditorButton[2]
     {
         new EditorButton(ButtonPredefines.Minus),
         new EditorButton()
     });
     this.ButtonEditErrorType.Name          = "ButtonEditErrorType";
     this.ButtonEditErrorType.TextEditStyle = TextEditStyles.DisableTextEditor;
     this.ButtonEditErrorType.ButtonClick  += new ButtonPressedEventHandler(this.ButtonEditErrorType_ButtonClick);
     this.colmessage1.Caption   = "Сообщение 1";
     this.colmessage1.FieldName = "message1";
     this.colmessage1.Name      = "colmessage1";
     this.colmessage1.OptionsFilter.AllowFilter = false;
     this.colmessage1.Visible      = true;
     this.colmessage1.VisibleIndex = 5;
     this.colmessage2.Caption      = "Сообщение 2";
     this.colmessage2.FieldName    = "message2";
     this.colmessage2.Name         = "colmessage2";
     this.colmessage2.OptionsFilter.AllowFilter = false;
     this.colmessage2.Visible      = true;
     this.colmessage2.VisibleIndex = 6;
     this.colmessage3.Caption      = "Сообщение 3";
     this.colmessage3.FieldName    = "message3";
     this.colmessage3.Name         = "colmessage3";
     this.colmessage3.OptionsFilter.AllowFilter = false;
     this.colmessage3.Visible          = true;
     this.colmessage3.VisibleIndex     = 7;
     this.colunpack_picture.Caption    = "Картинка";
     this.colunpack_picture.ColumnEdit = (RepositoryItem)this.ImageEditPic;
     this.colunpack_picture.FieldName  = "unpack_picture";
     this.colunpack_picture.Name       = "colunpack_picture";
     this.colunpack_picture.OptionsFilter.AllowFilter = false;
     this.colunpack_picture.Visible      = true;
     this.colunpack_picture.VisibleIndex = 8;
     this.ImageEditPic.ActionButtonIndex = 1;
     this.ImageEditPic.AutoHeight        = false;
     this.ImageEditPic.Buttons.AddRange(new EditorButton[2]
     {
         new EditorButton(ButtonPredefines.Minus),
         new EditorButton(ButtonPredefines.Combo)
     });
     this.ImageEditPic.Name                          = "ImageEditPic";
     this.ImageEditPic.PopupStartSize                = new Size(292, 174);
     this.ImageEditPic.SizeMode                      = PictureSizeMode.Squeeze;
     this.colcomment.Caption                         = "Комментарий";
     this.colcomment.FieldName                       = "comment";
     this.colcomment.Name                            = "colcomment";
     this.colcomment.OptionsFilter.AllowFilter       = false;
     this.colcomment.Visible                         = true;
     this.colcomment.VisibleIndex                    = 4;
     this.colshowtype_name.Caption                   = "Отображать";
     this.colshowtype_name.ColumnEdit                = (RepositoryItem)this.cboShowType;
     this.colshowtype_name.FieldName                 = "showtype_name";
     this.colshowtype_name.Name                      = "colshowtype_name";
     this.colshowtype_name.OptionsFilter.AllowFilter = false;
     this.colshowtype_name.Visible                   = true;
     this.colshowtype_name.VisibleIndex              = 9;
     this.cboShowType.AutoHeight                     = false;
     this.cboShowType.Buttons.AddRange(new EditorButton[1]
     {
         new EditorButton(ButtonPredefines.Combo)
     });
     this.cboShowType.Items.AddRange(new object[4]
     {
         (object)"Не отображать",
         (object)"Сообщение 1",
         (object)"Сообщение 2",
         (object)"Сообщение 3"
     });
     this.cboShowType.Name               = "cboShowType";
     this.cboShowType.TextEditStyle      = TextEditStyles.DisableTextEditor;
     this.cboShowType.EditValueChanging += new ChangingEventHandler(this.cboShowType_EditValueChanging);
     this.colissave.Caption              = "Сохранять";
     this.colissave.FieldName            = "issave";
     this.colissave.Name = "colissave";
     this.colissave.OptionsFilter.AllowFilter = false;
     this.colissave.Visible      = true;
     this.colissave.VisibleIndex = 10;
     this.AutoScaleDimensions    = new SizeF(6f, 13f);
     this.AutoScaleMode          = AutoScaleMode.Font;
     this.Controls.Add((Control)this.gridControlError);
     this.Controls.Add((Control)this.splitterControl1);
     this.Controls.Add((Control)this.atTreeGroup1);
     this.Controls.Add((Control)this.atButtonsPanelDialog);
     this.Controls.Add((Control)this.atButtonsPanel1);
     this.Name         = "ErrorForm";
     this.Size         = new Size(736, 348);
     this.Text         = "Справочник ошибок";
     this.FormClosing += new FormClosing(this.ErrorForm_FormClosing);
     this.atButtonsPanel1.EndInit();
     this.MenuItem.ResumeLayout(false);
     this.ds.EndInit();
     this.atButtonsPanelDialog.EndInit();
     this.atTreeGroup1.EndInit();
     this.gridControlError.EndInit();
     this.gridViewError.EndInit();
     this.ButtonEditErrorType.EndInit();
     this.ImageEditPic.EndInit();
     this.cboShowType.EndInit();
     this.ResumeLayout(false);
 }
コード例 #2
0
 private void InitializeComponent()
 {
     this.components              = (IContainer) new Container();
     this.gridControl             = new GridControl();
     this.contextMenuStrip        = new ContextMenuStrip(this.components);
     this.createToolStripMenuItem = new ToolStripMenuItem();
     this.toolStripMenuItem1      = new ToolStripSeparator();
     this.deleteToolStripMenuItem = new ToolStripMenuItem();
     this.dataSet                  = new DataSet();
     this.goodparamname            = new DataTable();
     this.dataColumn1              = new DataColumn();
     this.dataColumn2              = new DataColumn();
     this.dataColumn3              = new DataColumn();
     this.gridView                 = new GridView();
     this.nameColumn               = new GridColumn();
     this.commentColumn            = new GridColumn();
     this.repositoryItemTextEdit12 = new AtRepositoryItemTextEdit();
     this.repositoryItemTextEdit13 = new AtRepositoryItemTextEdit();
     this.atButtonsPanel1          = new atButtonsPanel();
     this.gridControl.BeginInit();
     this.contextMenuStrip.SuspendLayout();
     this.dataSet.BeginInit();
     this.goodparamname.BeginInit();
     this.gridView.BeginInit();
     this.repositoryItemTextEdit12.BeginInit();
     this.repositoryItemTextEdit13.BeginInit();
     this.atButtonsPanel1.BeginInit();
     this.SuspendLayout();
     this.gridControl.ContextMenuStrip                  = this.contextMenuStrip;
     this.gridControl.DataMember                        = "goodparamname";
     this.gridControl.DataSource                        = (object)this.dataSet;
     this.gridControl.Dock                              = DockStyle.Fill;
     this.gridControl.EmbeddedNavigator.Name            = "";
     this.gridControl.Location                          = new Point(0, 0);
     this.gridControl.LookAndFeel.Style                 = LookAndFeelStyle.Flat;
     this.gridControl.LookAndFeel.UseDefaultLookAndFeel = false;
     this.gridControl.MainView                          = (BaseView)this.gridView;
     this.gridControl.Name                              = "gridControl";
     this.gridControl.RepositoryItems.AddRange(new RepositoryItem[2]
     {
         (RepositoryItem)this.repositoryItemTextEdit12,
         (RepositoryItem)this.repositoryItemTextEdit13
     });
     this.gridControl.Size     = new Size(746, 500);
     this.gridControl.TabIndex = 9;
     this.gridControl.ViewCollection.AddRange(new BaseView[1]
     {
         (BaseView)this.gridView
     });
     this.contextMenuStrip.Items.AddRange(new ToolStripItem[3]
     {
         (ToolStripItem)this.createToolStripMenuItem,
         (ToolStripItem)this.toolStripMenuItem1,
         (ToolStripItem)this.deleteToolStripMenuItem
     });
     this.contextMenuStrip.Name          = "contextMenuStrip";
     this.contextMenuStrip.Size          = new Size(125, 54);
     this.createToolStripMenuItem.Name   = "createToolStripMenuItem";
     this.createToolStripMenuItem.Size   = new Size(124, 22);
     this.createToolStripMenuItem.Text   = "Добавить";
     this.createToolStripMenuItem.Click += new EventHandler(this.createToolStripMenuItem_Click);
     this.toolStripMenuItem1.Name        = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size        = new Size(121, 6);
     this.deleteToolStripMenuItem.Name   = "deleteToolStripMenuItem";
     this.deleteToolStripMenuItem.Size   = new Size(124, 22);
     this.deleteToolStripMenuItem.Text   = "Удалить";
     this.deleteToolStripMenuItem.Click += new EventHandler(this.deleteToolStripMenuItem_Click);
     this.dataSet.DataSetName            = "NewDataSet";
     this.dataSet.Tables.AddRange(new DataTable[1]
     {
         this.goodparamname
     });
     this.goodparamname.Columns.AddRange(new DataColumn[3]
     {
         this.dataColumn1,
         this.dataColumn2,
         this.dataColumn3
     });
     this.goodparamname.Constraints.AddRange(new Constraint[1]
     {
         (Constraint) new UniqueConstraint("Constraint1", new string[1]
         {
             "idgoodparamname"
         }, 1 != 0)
     });
     this.goodparamname.PrimaryKey = new DataColumn[1]
     {
         this.dataColumn1
     };
     this.goodparamname.TableName = "goodparamname";
     this.dataColumn1.AllowDBNull = false;
     this.dataColumn1.Caption     = "Номер";
     this.dataColumn1.ColumnName  = "idgoodparamname";
     this.dataColumn1.DataType    = typeof(uint);
     this.dataColumn2.Caption     = "Наименование";
     this.dataColumn2.ColumnName  = "name";
     this.dataColumn3.Caption     = "Описание";
     this.dataColumn3.ColumnName  = "comment";
     this.gridView.Appearance.FocusedRow.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridView.Appearance.FocusedRow.BackColor2                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridView.Appearance.FocusedRow.BorderColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridView.Appearance.FocusedRow.ForeColor                    = Color.Black;
     this.gridView.Appearance.FocusedRow.Options.UseBackColor         = true;
     this.gridView.Appearance.FocusedRow.Options.UseBorderColor       = true;
     this.gridView.Appearance.FocusedRow.Options.UseForeColor         = true;
     this.gridView.Appearance.GroupPanel.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridView.Appearance.GroupPanel.BackColor2                   = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridView.Appearance.GroupPanel.Options.UseBackColor         = true;
     this.gridView.Appearance.HideSelectionRow.BackColor              = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridView.Appearance.HideSelectionRow.BackColor2             = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridView.Appearance.HideSelectionRow.BorderColor            = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridView.Appearance.HideSelectionRow.ForeColor              = Color.Black;
     this.gridView.Appearance.HideSelectionRow.Options.UseBackColor   = true;
     this.gridView.Appearance.HideSelectionRow.Options.UseBorderColor = true;
     this.gridView.Appearance.HideSelectionRow.Options.UseForeColor   = true;
     this.gridView.Appearance.SelectedRow.BackColor                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridView.Appearance.SelectedRow.BackColor2                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridView.Appearance.SelectedRow.BorderColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridView.Appearance.SelectedRow.ForeColor                   = Color.Black;
     this.gridView.Appearance.SelectedRow.Options.UseBackColor        = true;
     this.gridView.Appearance.SelectedRow.Options.UseBorderColor      = true;
     this.gridView.Appearance.SelectedRow.Options.UseForeColor        = true;
     this.gridView.BorderStyle = BorderStyles.Simple;
     this.gridView.Columns.AddRange(new GridColumn[2]
     {
         this.nameColumn,
         this.commentColumn
     });
     this.gridView.GridControl    = this.gridControl;
     this.gridView.GroupPanelText = "Панель группировки";
     this.gridView.Name           = "gridView";
     this.gridView.OptionsCustomization.AllowFilter = false;
     this.gridView.OptionsDetail.ShowDetailTabs     = false;
     this.gridView.OptionsView.ShowAutoFilterRow    = true;
     this.gridView.OptionsView.ShowFilterPanelMode  = ShowFilterPanelMode.Never;
     this.gridView.OptionsView.ShowGroupPanel       = false;
     this.gridView.OptionsView.ShowIndicator        = false;
     this.gridView.DoubleClick               += new EventHandler(this.gridViewModelCalc_DoubleClick);
     this.gridView.CellValueChanged          += new CellValueChangedEventHandler(this.gridViewModelCalc_CellValueChanged);
     this.nameColumn.Caption                  = "Наименование";
     this.nameColumn.FieldName                = "name";
     this.nameColumn.Name                     = "nameColumn";
     this.nameColumn.Visible                  = true;
     this.nameColumn.VisibleIndex             = 0;
     this.commentColumn.Caption               = "Описание";
     this.commentColumn.FieldName             = "comment";
     this.commentColumn.Name                  = "commentColumn";
     this.commentColumn.Visible               = true;
     this.commentColumn.VisibleIndex          = 1;
     this.repositoryItemTextEdit12.AutoHeight = false;
     this.repositoryItemTextEdit12.DisplayFormat.FormatString = "n2";
     this.repositoryItemTextEdit12.DisplayFormat.FormatType   = FormatType.Numeric;
     this.repositoryItemTextEdit12.Name       = "repositoryItemTextEdit12";
     this.repositoryItemTextEdit13.AutoHeight = false;
     this.repositoryItemTextEdit13.DisplayFormat.FormatString = "n2";
     this.repositoryItemTextEdit13.DisplayFormat.FormatType   = FormatType.Numeric;
     this.repositoryItemTextEdit13.Name               = "repositoryItemTextEdit13";
     this.atButtonsPanel1.AcceptButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButtonText            = "";
     this.atButtonsPanel1.CancelButtonUseCancelSelect = true;
     this.atButtonsPanel1.CancelButtonVisible         = true;
     this.atButtonsPanel1.CloseButtonText             = "";
     this.atButtonsPanel1.CloseButtonUseCancelSelect  = false;
     this.atButtonsPanel1.CloseButtonVisible          = false;
     this.atButtonsPanel1.DataMember                 = (string)null;
     this.atButtonsPanel1.DataSource                 = (DataSet)null;
     this.atButtonsPanel1.Dock                       = DockStyle.Bottom;
     this.atButtonsPanel1.EnabledCancelButton        = true;
     this.atButtonsPanel1.EnabledCloseButton         = true;
     this.atButtonsPanel1.EnabledPrintButton         = true;
     this.atButtonsPanel1.EnabledRefreshButton       = true;
     this.atButtonsPanel1.EnabledSaveButton          = true;
     this.atButtonsPanel1.EnabledScriptButton        = true;
     this.atButtonsPanel1.IdDocAppearance            = 0;
     this.atButtonsPanel1.Location                   = new Point(0, 500);
     this.atButtonsPanel1.Name                       = "atButtonsPanel1";
     this.atButtonsPanel1.PrintButtonText            = "";
     this.atButtonsPanel1.PrintButtonVisible         = false;
     this.atButtonsPanel1.ProcessedIsDialog          = false;
     this.atButtonsPanel1.RefreshButtonText          = "Обновить";
     this.atButtonsPanel1.RefreshButtonUseSelectItem = true;
     this.atButtonsPanel1.RefreshButtonVisible       = true;
     this.atButtonsPanel1.SaveButtonText             = "Выбрать";
     this.atButtonsPanel1.SaveButtonUseSelectItem    = true;
     this.atButtonsPanel1.SaveButtonVisible          = true;
     this.atButtonsPanel1.ScriptButtonText           = "";
     this.atButtonsPanel1.ScriptButtonVisible        = false;
     this.atButtonsPanel1.Size                       = new Size(746, 33);
     this.atButtonsPanel1.TabIndex                   = 10;
     this.atButtonsPanel1.TextCancelButton           = "Отменить";
     this.atButtonsPanel1.TextCloseButton            = "Закрыть";
     this.atButtonsPanel1.TextPrintButton            = "Печать...";
     this.atButtonsPanel1.TextRefreshButton          = "Обновить";
     this.atButtonsPanel1.TextSaveButton             = "Применить";
     this.atButtonsPanel1.TextScriptButton           = "Скрипты...";
     this.atButtonsPanel1.VisibleCancelButton        = true;
     this.atButtonsPanel1.VisibleCloseButton         = true;
     this.atButtonsPanel1.VisiblePrintButton         = false;
     this.atButtonsPanel1.VisibleRefreshButton       = false;
     this.atButtonsPanel1.VisibleSaveButton          = true;
     this.atButtonsPanel1.VisibleScriptButton        = false;
     this.atButtonsPanel1.WidthPrintButton           = 75;
     this.atButtonsPanel1.CancelEvent               += new atButtonsPanel.CancelEventDelegate(this.atButtonsPanel1_CancelEvent);
     this.AutoScaleDimensions = new SizeF(6f, 13f);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.Controls.Add((Control)this.gridControl);
     this.Controls.Add((Control)this.atButtonsPanel1);
     this.Name   = "GoodParamNameForm";
     this.Size   = new Size(746, 533);
     this.Text   = "Параметры материалов";
     this.Shown += new Shown(this.GoodParamNameForm_Shown);
     this.gridControl.EndInit();
     this.contextMenuStrip.ResumeLayout(false);
     this.dataSet.EndInit();
     this.goodparamname.EndInit();
     this.gridView.EndInit();
     this.repositoryItemTextEdit12.EndInit();
     this.repositoryItemTextEdit13.EndInit();
     this.atButtonsPanel1.EndInit();
     this.ResumeLayout(false);
 }
コード例 #3
0
 private void InitializeComponent()
 {
     this.components                   = (IContainer) new Container();
     this.ds                           = new DataSet();
     this.table_setting                = new DataTable();
     this.dataColumn1                  = new DataColumn();
     this.dataColumn2                  = new DataColumn();
     this.dataColumn3                  = new DataColumn();
     this.gridViewTable                = new GridView();
     this.gridControlTable             = new GridControl();
     this.MenuItem                     = new ContextMenuStrip(this.components);
     this.MenuItemAddRow               = new ToolStripMenuItem();
     this.MenuItemAddColumn            = new ToolStripMenuItem();
     this.toolStripSeparator3          = new ToolStripSeparator();
     this.MenuItemCreateTable          = new ToolStripMenuItem();
     this.MenuItemCreateTableFromExcel = new ToolStripMenuItem();
     this.MenuItemLoadTableFromExcel   = new ToolStripMenuItem();
     this.toolStripSeparator1          = new ToolStripSeparator();
     this.MenuItemEditRow              = new ToolStripMenuItem();
     this.MenuItemEditColumn           = new ToolStripMenuItem();
     this.toolStripSeparator2          = new ToolStripSeparator();
     this.MenuItemRemoveRow            = new ToolStripMenuItem();
     this.MenuItemRemoveColumn         = new ToolStripMenuItem();
     this.toolStripSeparator4          = new ToolStripSeparator();
     this.MenuItemClearTable           = new ToolStripMenuItem();
     this.atButtonsPanel1              = new atButtonsPanel();
     this.ds.BeginInit();
     this.table_setting.BeginInit();
     this.gridViewTable.BeginInit();
     this.gridControlTable.BeginInit();
     this.MenuItem.SuspendLayout();
     this.atButtonsPanel1.BeginInit();
     this.SuspendLayout();
     this.ds.DataSetName = "NewDataSet";
     this.ds.Tables.AddRange(new DataTable[1]
     {
         this.table_setting
     });
     this.table_setting.Columns.AddRange(new DataColumn[3]
     {
         this.dataColumn1,
         this.dataColumn2,
         this.dataColumn3
     });
     this.table_setting.TableName = "setting";
     this.dataColumn1.ColumnName  = "width";
     this.dataColumn1.DataType    = typeof(double);
     this.dataColumn2.ColumnName  = "height";
     this.dataColumn2.DataType    = typeof(double);
     this.dataColumn3.ColumnName  = "value";
     this.dataColumn3.DataType    = typeof(double);
     this.gridViewTable.Appearance.GroupPanel.BackColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewTable.Appearance.GroupPanel.BackColor2           = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewTable.Appearance.GroupPanel.Options.UseBackColor = true;
     this.gridViewTable.GridControl = this.gridControlTable;
     this.gridViewTable.Name        = "gridViewTable";
     this.gridViewTable.OptionsBehavior.AllowIncrementalSearch = true;
     this.gridViewTable.OptionsCustomization.AllowFilter       = false;
     this.gridViewTable.OptionsFilter.AllowFilterEditor        = false;
     this.gridViewTable.OptionsFilter.AllowMRUFilterList       = false;
     this.gridViewTable.OptionsView.ShowDetailButtons          = false;
     this.gridViewTable.OptionsView.ShowFilterPanelMode        = ShowFilterPanelMode.Never;
     this.gridViewTable.OptionsView.ShowIndicator = false;
     this.gridControlTable.ContextMenuStrip       = this.MenuItem;
     this.gridControlTable.Dock = DockStyle.Fill;
     this.gridControlTable.EmbeddedNavigator.Name = "";
     this.gridControlTable.Location          = new Point(0, 0);
     this.gridControlTable.LookAndFeel.Style = LookAndFeelStyle.Flat;
     this.gridControlTable.LookAndFeel.UseDefaultLookAndFeel = false;
     this.gridControlTable.MainView = (BaseView)this.gridViewTable;
     this.gridControlTable.Name     = "gridControlTable";
     this.gridControlTable.Size     = new Size(618, 328);
     this.gridControlTable.TabIndex = 0;
     this.gridControlTable.ViewCollection.AddRange(new BaseView[1]
     {
         (BaseView)this.gridViewTable
     });
     this.MenuItem.Items.AddRange(new ToolStripItem[14]
     {
         (ToolStripItem)this.MenuItemAddRow,
         (ToolStripItem)this.MenuItemAddColumn,
         (ToolStripItem)this.toolStripSeparator3,
         (ToolStripItem)this.MenuItemCreateTable,
         (ToolStripItem)this.MenuItemCreateTableFromExcel,
         (ToolStripItem)this.MenuItemLoadTableFromExcel,
         (ToolStripItem)this.toolStripSeparator1,
         (ToolStripItem)this.MenuItemEditRow,
         (ToolStripItem)this.MenuItemEditColumn,
         (ToolStripItem)this.toolStripSeparator2,
         (ToolStripItem)this.MenuItemRemoveRow,
         (ToolStripItem)this.MenuItemRemoveColumn,
         (ToolStripItem)this.toolStripSeparator4,
         (ToolStripItem)this.MenuItemClearTable
     });
     this.MenuItem.Name                               = "MenuItem";
     this.MenuItem.Size                               = new Size(250, 248);
     this.MenuItemAddRow.Name                         = "MenuItemAddRow";
     this.MenuItemAddRow.ShortcutKeys                 = Keys.Insert | Keys.Control;
     this.MenuItemAddRow.Size                         = new Size(249, 22);
     this.MenuItemAddRow.Text                         = "Добавить строку";
     this.MenuItemAddRow.Click                       += new EventHandler(this.MenuItemAddRow_Click);
     this.MenuItemAddColumn.Name                      = "MenuItemAddColumn";
     this.MenuItemAddColumn.ShortcutKeys              = Keys.Insert | Keys.Alt;
     this.MenuItemAddColumn.Size                      = new Size(249, 22);
     this.MenuItemAddColumn.Text                      = "Добавить столбец";
     this.MenuItemAddColumn.Click                    += new EventHandler(this.MenuItemAddColumn_Click);
     this.toolStripSeparator3.Name                    = "toolStripSeparator3";
     this.toolStripSeparator3.Size                    = new Size(246, 6);
     this.MenuItemCreateTable.Name                    = "MenuItemCreateTable";
     this.MenuItemCreateTable.ShortcutKeys            = Keys.Insert | Keys.Control | Keys.Alt;
     this.MenuItemCreateTable.Size                    = new Size(249, 22);
     this.MenuItemCreateTable.Text                    = "Создать таблицу";
     this.MenuItemCreateTable.Click                  += new EventHandler(this.MenuItemCreateTable_Click);
     this.MenuItemCreateTableFromExcel.Name           = "MenuItemCreateTableFromExcel";
     this.MenuItemCreateTableFromExcel.Size           = new Size(249, 22);
     this.MenuItemCreateTableFromExcel.Text           = "Создать таблицу из Excel";
     this.MenuItemCreateTableFromExcel.Click         += new EventHandler(this.MenuItemCreateTableFromExcel_Click);
     this.MenuItemLoadTableFromExcel.Name             = "MenuItemLoadTableFromExcel";
     this.MenuItemLoadTableFromExcel.Size             = new Size(249, 22);
     this.MenuItemLoadTableFromExcel.Text             = "Загрузить таблицу из Excel";
     this.MenuItemLoadTableFromExcel.Click           += new EventHandler(this.MenuItemLoadTableFromExcel_Click);
     this.toolStripSeparator1.Name                    = "toolStripSeparator1";
     this.toolStripSeparator1.Size                    = new Size(246, 6);
     this.MenuItemEditRow.Name                        = "MenuItemEditRow";
     this.MenuItemEditRow.ShortcutKeys                = Keys.Return | Keys.Control;
     this.MenuItemEditRow.Size                        = new Size(249, 22);
     this.MenuItemEditRow.Text                        = "Редактировать строку";
     this.MenuItemEditRow.Click                      += new EventHandler(this.MenuItemEditRow_Click);
     this.MenuItemEditColumn.Name                     = "MenuItemEditColumn";
     this.MenuItemEditColumn.ShortcutKeys             = Keys.Return | Keys.Alt;
     this.MenuItemEditColumn.Size                     = new Size(249, 22);
     this.MenuItemEditColumn.Text                     = "Редактировать стобец";
     this.MenuItemEditColumn.Click                   += new EventHandler(this.MenuItemEditColumn_Click);
     this.toolStripSeparator2.Name                    = "toolStripSeparator2";
     this.toolStripSeparator2.Size                    = new Size(246, 6);
     this.MenuItemRemoveRow.Name                      = "MenuItemRemoveRow";
     this.MenuItemRemoveRow.ShortcutKeys              = Keys.Delete | Keys.Control;
     this.MenuItemRemoveRow.Size                      = new Size(249, 22);
     this.MenuItemRemoveRow.Text                      = "Удалить строку";
     this.MenuItemRemoveRow.Click                    += new EventHandler(this.MenuItemRemoveRow_Click);
     this.MenuItemRemoveColumn.Name                   = "MenuItemRemoveColumn";
     this.MenuItemRemoveColumn.ShortcutKeys           = Keys.Delete | Keys.Alt;
     this.MenuItemRemoveColumn.Size                   = new Size(249, 22);
     this.MenuItemRemoveColumn.Text                   = "Удалить столбец";
     this.MenuItemRemoveColumn.Click                 += new EventHandler(this.MenuItemRemoveColumn_Click);
     this.toolStripSeparator4.Name                    = "toolStripSeparator4";
     this.toolStripSeparator4.Size                    = new Size(246, 6);
     this.MenuItemClearTable.Name                     = "MenuItemClearTable";
     this.MenuItemClearTable.Size                     = new Size(249, 22);
     this.MenuItemClearTable.Text                     = "Очистить таблицу";
     this.MenuItemClearTable.Click                   += new EventHandler(this.MenuItemClearTable_Click);
     this.atButtonsPanel1.AcceptButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButtonText            = "";
     this.atButtonsPanel1.CancelButtonUseCancelSelect = true;
     this.atButtonsPanel1.CancelButtonVisible         = true;
     this.atButtonsPanel1.CloseButtonText             = "";
     this.atButtonsPanel1.CloseButtonUseCancelSelect  = false;
     this.atButtonsPanel1.CloseButtonVisible          = false;
     this.atButtonsPanel1.DataMember                  = (string)null;
     this.atButtonsPanel1.DataSource                  = (DataSet)null;
     this.atButtonsPanel1.Dock                        = DockStyle.Bottom;
     this.atButtonsPanel1.EnabledCancelButton         = true;
     this.atButtonsPanel1.EnabledCloseButton          = true;
     this.atButtonsPanel1.EnabledPrintButton          = true;
     this.atButtonsPanel1.EnabledRefreshButton        = true;
     this.atButtonsPanel1.EnabledSaveButton           = true;
     this.atButtonsPanel1.EnabledScriptButton         = true;
     this.atButtonsPanel1.IdDocAppearance             = 0;
     this.atButtonsPanel1.Location                    = new Point(0, 328);
     this.atButtonsPanel1.Name                        = "atButtonsPanel1";
     this.atButtonsPanel1.PrintButtonText             = "";
     this.atButtonsPanel1.PrintButtonVisible          = false;
     this.atButtonsPanel1.ProcessedIsDialog           = false;
     this.atButtonsPanel1.RefreshButtonText           = "Обновить";
     this.atButtonsPanel1.RefreshButtonUseSelectItem  = true;
     this.atButtonsPanel1.RefreshButtonVisible        = true;
     this.atButtonsPanel1.SaveButtonText              = "Выбрать";
     this.atButtonsPanel1.SaveButtonUseSelectItem     = true;
     this.atButtonsPanel1.SaveButtonVisible           = true;
     this.atButtonsPanel1.ScriptButtonText            = "";
     this.atButtonsPanel1.ScriptButtonVisible         = false;
     this.atButtonsPanel1.Size                        = new Size(618, 33);
     this.atButtonsPanel1.TabIndex                    = 1;
     this.atButtonsPanel1.TextCancelButton            = "Отменить";
     this.atButtonsPanel1.TextCloseButton             = "Закрыть";
     this.atButtonsPanel1.TextPrintButton             = "Печать...";
     this.atButtonsPanel1.TextRefreshButton           = "Обновить";
     this.atButtonsPanel1.TextSaveButton              = "Применить";
     this.atButtonsPanel1.TextScriptButton            = "Скрипты...";
     this.atButtonsPanel1.VisibleCancelButton         = true;
     this.atButtonsPanel1.VisibleCloseButton          = true;
     this.atButtonsPanel1.VisiblePrintButton          = false;
     this.atButtonsPanel1.VisibleRefreshButton        = false;
     this.atButtonsPanel1.VisibleSaveButton           = true;
     this.atButtonsPanel1.VisibleScriptButton         = false;
     this.atButtonsPanel1.WidthPrintButton            = 75;
     this.AutoScaleDimensions                         = new SizeF(6f, 13f);
     this.AutoScaleMode                               = AutoScaleMode.Font;
     this.Controls.Add((Control)this.gridControlTable);
     this.Controls.Add((Control)this.atButtonsPanel1);
     this.Name = "EditTableInSettingForm";
     this.Size = new Size(618, 361);
     this.Text = "Редактирование таблицы";
     this.ds.EndInit();
     this.table_setting.EndInit();
     this.gridViewTable.EndInit();
     this.gridControlTable.EndInit();
     this.MenuItem.ResumeLayout(false);
     this.atButtonsPanel1.EndInit();
     this.ResumeLayout(false);
 }
コード例 #4
0
        private void InitializeComponent()
        {
            this.components = (IContainer) new Container();
            GridLevelNode            gridLevelNode            = new GridLevelNode();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(TemplateProductionTypeForm));

            this.gridViewTemplateParam = new GridView();
            this.colidtemplateparam    = new GridColumn();
            this.colmodelparam_name    = new GridColumn();
            this.colintvalue           = new GridColumn();
            this.cboNumericValue       = new RepositoryItemComboBox();
            this.colstrvalue           = new GridColumn();
            this.cboStrValue1          = new RepositoryItemComboBox();
            this.colstrvalue2          = new GridColumn();
            this.cboStrValue2          = new RepositoryItemComboBox();
            this.gridControlTemplate   = new GridControl();
            this.MenuItem            = new ContextMenuStrip(this.components);
            this.MenuItemAdd         = new ToolStripMenuItem();
            this.MenuItemDoublicate  = new ToolStripMenuItem();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.MenuItemRemove      = new ToolStripMenuItem();
            this.toolStripSeparator5 = new ToolStripSeparator();
            this.MenuItemMoveToGroup = new ToolStripMenuItem();
            this.ds = new ds_template();
            this.gridViewTemplate       = new GridView();
            this.colidtemplate          = new GridColumn();
            this.colproductiontype_name = new GridColumn();
            this.colname               = new GridColumn();
            this.colcomment            = new GridColumn();
            this.colpicture            = new GridColumn();
            this.PictureEdit           = new RepositoryItemPictureEdit();
            this.splitterControl1      = new SplitterControl();
            this.treeListTemplateGroup = new TreeList();
            this.coltemplategroup      = new TreeListColumn();
            this.MenuGroup             = new ContextMenuStrip(this.components);
            this.MenuGroupeAddMain     = new ToolStripMenuItem();
            this.MenuGroupeAddChild    = new ToolStripMenuItem();
            this.MenuGroupeRename      = new ToolStripMenuItem();
            this.toolStripSeparator4   = new ToolStripSeparator();
            this.MenuGroupeRemove      = new ToolStripMenuItem();
            this.toolStripSeparator3   = new ToolStripSeparator();
            this.MenuGroupSetMain      = new ToolStripMenuItem();
            this.MenuGroupMoveToGroup  = new ToolStripMenuItem();
            this.imageList1            = new ImageList(this.components);
            this.atButtonsPanel1       = new atButtonsPanel();
            this.gridViewTemplateParam.BeginInit();
            this.cboNumericValue.BeginInit();
            this.cboStrValue1.BeginInit();
            this.cboStrValue2.BeginInit();
            this.gridControlTemplate.BeginInit();
            this.MenuItem.SuspendLayout();
            this.ds.BeginInit();
            this.gridViewTemplate.BeginInit();
            this.PictureEdit.BeginInit();
            this.treeListTemplateGroup.BeginInit();
            this.MenuGroup.SuspendLayout();
            this.atButtonsPanel1.BeginInit();
            this.SuspendLayout();
            this.gridViewTemplateParam.Appearance.FocusedRow.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.FocusedRow.BackColor2                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.FocusedRow.BorderColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.FocusedRow.ForeColor                    = SystemColors.ControlText;
            this.gridViewTemplateParam.Appearance.FocusedRow.Options.UseBackColor         = true;
            this.gridViewTemplateParam.Appearance.FocusedRow.Options.UseBorderColor       = true;
            this.gridViewTemplateParam.Appearance.FocusedRow.Options.UseForeColor         = true;
            this.gridViewTemplateParam.Appearance.GroupPanel.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.GroupPanel.BackColor2                   = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.GroupPanel.Options.UseBackColor         = true;
            this.gridViewTemplateParam.Appearance.HideSelectionRow.BackColor              = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.HideSelectionRow.BackColor2             = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.HideSelectionRow.BorderColor            = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.HideSelectionRow.ForeColor              = SystemColors.ControlText;
            this.gridViewTemplateParam.Appearance.HideSelectionRow.Options.UseBackColor   = true;
            this.gridViewTemplateParam.Appearance.HideSelectionRow.Options.UseBorderColor = true;
            this.gridViewTemplateParam.Appearance.HideSelectionRow.Options.UseForeColor   = true;
            this.gridViewTemplateParam.Appearance.SelectedRow.BackColor                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.SelectedRow.BackColor2                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.SelectedRow.BorderColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplateParam.Appearance.SelectedRow.ForeColor                   = SystemColors.ControlText;
            this.gridViewTemplateParam.Appearance.SelectedRow.Options.UseBackColor        = true;
            this.gridViewTemplateParam.Appearance.SelectedRow.Options.UseBorderColor      = true;
            this.gridViewTemplateParam.Appearance.SelectedRow.Options.UseForeColor        = true;
            this.gridViewTemplateParam.Columns.AddRange(new GridColumn[5]
            {
                this.colidtemplateparam,
                this.colmodelparam_name,
                this.colintvalue,
                this.colstrvalue,
                this.colstrvalue2
            });
            this.gridViewTemplateParam.GridControl    = this.gridControlTemplate;
            this.gridViewTemplateParam.GroupPanelText = "Панель группировки";
            this.gridViewTemplateParam.Name           = "gridViewTemplateParam";
            this.gridViewTemplateParam.OptionsSelection.MultiSelect    = true;
            this.gridViewTemplateParam.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never;
            this.gridViewTemplateParam.OptionsView.ShowIndicator       = false;
            this.colidtemplateparam.Caption   = "#";
            this.colidtemplateparam.FieldName = "idtemplateparam";
            this.colidtemplateparam.Name      = "colidtemplateparam";
            this.colidtemplateparam.OptionsColumn.AllowEdit = false;
            this.colidtemplateparam.Visible                 = true;
            this.colidtemplateparam.VisibleIndex            = 0;
            this.colmodelparam_name.Caption                 = "Наименование";
            this.colmodelparam_name.FieldName               = "modelparam_name";
            this.colmodelparam_name.Name                    = "colmodelparam_name";
            this.colmodelparam_name.OptionsColumn.AllowEdit = false;
            this.colmodelparam_name.Visible                 = true;
            this.colmodelparam_name.VisibleIndex            = 1;
            this.colintvalue.Caption        = "Число";
            this.colintvalue.ColumnEdit     = (RepositoryItem)this.cboNumericValue;
            this.colintvalue.FieldName      = "intvalue";
            this.colintvalue.Name           = "colintvalue";
            this.colintvalue.Visible        = true;
            this.colintvalue.VisibleIndex   = 2;
            this.cboNumericValue.AutoHeight = false;
            this.cboNumericValue.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton(ButtonPredefines.Combo)
            });
            this.cboNumericValue.Name     = "cboNumericValue";
            this.colstrvalue.Caption      = "Строка 1";
            this.colstrvalue.ColumnEdit   = (RepositoryItem)this.cboStrValue1;
            this.colstrvalue.FieldName    = "strvalue";
            this.colstrvalue.Name         = "colstrvalue";
            this.colstrvalue.Visible      = true;
            this.colstrvalue.VisibleIndex = 3;
            this.cboStrValue1.AutoHeight  = false;
            this.cboStrValue1.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton(ButtonPredefines.Combo)
            });
            this.cboStrValue1.Name         = "cboStrValue1";
            this.colstrvalue2.Caption      = "Строка 2";
            this.colstrvalue2.ColumnEdit   = (RepositoryItem)this.cboStrValue2;
            this.colstrvalue2.FieldName    = "strvalue2";
            this.colstrvalue2.Name         = "colstrvalue2";
            this.colstrvalue2.Visible      = true;
            this.colstrvalue2.VisibleIndex = 4;
            this.cboStrValue2.AutoHeight   = false;
            this.cboStrValue2.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton(ButtonPredefines.Combo)
            });
            this.cboStrValue2.Name = "cboStrValue2";
            this.gridControlTemplate.ContextMenuStrip           = this.MenuItem;
            this.gridControlTemplate.DataMember                 = "templategroup.FK_template_templategroup";
            this.gridControlTemplate.DataSource                 = (object)this.ds;
            this.gridControlTemplate.Dock                       = DockStyle.Fill;
            this.gridControlTemplate.EmbeddedNavigator.Name     = "";
            this.gridControlTemplate.FormsUseDefaultLookAndFeel = false;
            gridLevelNode.LevelTemplate = (BaseView)this.gridViewTemplateParam;
            gridLevelNode.RelationName  = "FK_template_templateparam";
            this.gridControlTemplate.LevelTree.Nodes.AddRange(new GridLevelNode[1]
            {
                gridLevelNode
            });
            this.gridControlTemplate.Location          = new Point(203, 0);
            this.gridControlTemplate.LookAndFeel.Style = LookAndFeelStyle.Flat;
            this.gridControlTemplate.LookAndFeel.UseDefaultLookAndFeel = false;
            this.gridControlTemplate.MainView = (BaseView)this.gridViewTemplate;
            this.gridControlTemplate.Name     = "gridControlTemplate";
            this.gridControlTemplate.RepositoryItems.AddRange(new RepositoryItem[4]
            {
                (RepositoryItem)this.PictureEdit,
                (RepositoryItem)this.cboStrValue2,
                (RepositoryItem)this.cboStrValue1,
                (RepositoryItem)this.cboNumericValue
            });
            this.gridControlTemplate.Size     = new Size(669, 361);
            this.gridControlTemplate.TabIndex = 0;
            this.gridControlTemplate.ViewCollection.AddRange(new BaseView[2]
            {
                (BaseView)this.gridViewTemplate,
                (BaseView)this.gridViewTemplateParam
            });
            this.MenuItem.Items.AddRange(new ToolStripItem[6]
            {
                (ToolStripItem)this.MenuItemAdd,
                (ToolStripItem)this.MenuItemDoublicate,
                (ToolStripItem)this.toolStripSeparator1,
                (ToolStripItem)this.MenuItemRemove,
                (ToolStripItem)this.toolStripSeparator5,
                (ToolStripItem)this.MenuItemMoveToGroup
            });
            this.MenuItem.Name                    = "contextMenuStrip1";
            this.MenuItem.Size                    = new Size(252, 104);
            this.MenuItemAdd.Name                 = "MenuItemAdd";
            this.MenuItemAdd.ShortcutKeys         = Keys.Insert | Keys.Control;
            this.MenuItemAdd.Size                 = new Size(251, 22);
            this.MenuItemAdd.Text                 = "Добавить шаблон";
            this.MenuItemAdd.Click               += new EventHandler(this.MenuItemAdd_Click);
            this.MenuItemDoublicate.Name          = "MenuItemDoublicate";
            this.MenuItemDoublicate.ShortcutKeys  = Keys.Insert | Keys.Control | Keys.Alt;
            this.MenuItemDoublicate.Size          = new Size(251, 22);
            this.MenuItemDoublicate.Text          = "Дублировать шаблон";
            this.MenuItemDoublicate.Click        += new EventHandler(this.MenuItemDoublicate_Click);
            this.toolStripSeparator1.Name         = "toolStripSeparator1";
            this.toolStripSeparator1.Size         = new Size(248, 6);
            this.MenuItemRemove.Name              = "MenuItemRemove";
            this.MenuItemRemove.ShortcutKeys      = Keys.Delete | Keys.Control;
            this.MenuItemRemove.Size              = new Size(251, 22);
            this.MenuItemRemove.Text              = "Удалить шаблон";
            this.MenuItemRemove.Click            += new EventHandler(this.MenuItemRemove_Click);
            this.toolStripSeparator5.Name         = "toolStripSeparator5";
            this.toolStripSeparator5.Size         = new Size(248, 6);
            this.MenuItemMoveToGroup.Name         = "MenuItemMoveToGroup";
            this.MenuItemMoveToGroup.ShortcutKeys = Keys.F6;
            this.MenuItemMoveToGroup.Size         = new Size(251, 22);
            this.MenuItemMoveToGroup.Text         = "Переместить в группу";
            this.MenuItemMoveToGroup.Click       += new EventHandler(this.MenuItemMoveToGroup_Click);
            this.ds.DataSetName                   = "ds_template";
            this.ds.EnforceConstraints            = false;
            this.ds.SchemaSerializationMode       = SchemaSerializationMode.IncludeSchema;
            this.gridViewTemplate.Appearance.FocusedRow.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.FocusedRow.BackColor2                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.FocusedRow.BorderColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.FocusedRow.ForeColor                    = SystemColors.ControlText;
            this.gridViewTemplate.Appearance.FocusedRow.Options.UseBackColor         = true;
            this.gridViewTemplate.Appearance.FocusedRow.Options.UseBorderColor       = true;
            this.gridViewTemplate.Appearance.FocusedRow.Options.UseForeColor         = true;
            this.gridViewTemplate.Appearance.GroupPanel.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.GroupPanel.BackColor2                   = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.GroupPanel.Options.UseBackColor         = true;
            this.gridViewTemplate.Appearance.HideSelectionRow.BackColor              = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.HideSelectionRow.BackColor2             = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.HideSelectionRow.BorderColor            = Color.FromArgb(192, 192, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.HideSelectionRow.ForeColor              = SystemColors.ControlText;
            this.gridViewTemplate.Appearance.HideSelectionRow.Options.UseBackColor   = true;
            this.gridViewTemplate.Appearance.HideSelectionRow.Options.UseBorderColor = true;
            this.gridViewTemplate.Appearance.HideSelectionRow.Options.UseForeColor   = true;
            this.gridViewTemplate.Appearance.Row.ForeColor                      = SystemColors.ControlText;
            this.gridViewTemplate.Appearance.Row.Options.UseForeColor           = true;
            this.gridViewTemplate.Appearance.SelectedRow.BackColor              = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.SelectedRow.BackColor2             = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.SelectedRow.BorderColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.gridViewTemplate.Appearance.SelectedRow.ForeColor              = SystemColors.ControlText;
            this.gridViewTemplate.Appearance.SelectedRow.Options.UseBackColor   = true;
            this.gridViewTemplate.Appearance.SelectedRow.Options.UseBorderColor = true;
            this.gridViewTemplate.Appearance.SelectedRow.Options.UseForeColor   = true;
            this.gridViewTemplate.BorderStyle = BorderStyles.Simple;
            this.gridViewTemplate.Columns.AddRange(new GridColumn[5]
            {
                this.colidtemplate,
                this.colproductiontype_name,
                this.colname,
                this.colcomment,
                this.colpicture
            });
            this.gridViewTemplate.GridControl    = this.gridControlTemplate;
            this.gridViewTemplate.GroupPanelText = "Панель группировки";
            this.gridViewTemplate.Name           = "gridViewTemplate";
            this.gridViewTemplate.OptionsBehavior.AllowIncrementalSearch = true;
            this.gridViewTemplate.OptionsDetail.ShowDetailTabs           = false;
            this.gridViewTemplate.OptionsLayout.StoreVisualOptions       = false;
            this.gridViewTemplate.OptionsSelection.MultiSelect           = true;
            this.gridViewTemplate.OptionsView.RowAutoHeight          = true;
            this.gridViewTemplate.OptionsView.ShowFilterPanelMode    = ShowFilterPanelMode.Never;
            this.gridViewTemplate.OptionsView.ShowIndicator          = false;
            this.colidtemplate.AppearanceHeader.ForeColor            = SystemColors.ControlText;
            this.colidtemplate.AppearanceHeader.Options.UseForeColor = true;
            this.colidtemplate.Caption   = "#";
            this.colidtemplate.FieldName = "idtemplate";
            this.colidtemplate.Name      = "colidtemplate";
            this.colidtemplate.OptionsColumn.AllowEdit = false;
            this.colidtemplate.Visible      = true;
            this.colidtemplate.VisibleIndex = 0;
            this.colidtemplate.Width        = 53;
            this.colproductiontype_name.AppearanceCell.Options.UseTextOptions = true;
            this.colproductiontype_name.AppearanceCell.TextOptions.WordWrap   = WordWrap.Wrap;
            this.colproductiontype_name.Caption   = "Тип продукции";
            this.colproductiontype_name.FieldName = "productiontype_name";
            this.colproductiontype_name.Name      = "colproductiontype_name";
            this.colproductiontype_name.OptionsColumn.AllowEdit = false;
            this.colproductiontype_name.Visible                = true;
            this.colproductiontype_name.VisibleIndex           = 1;
            this.colname.AppearanceCell.Options.UseTextOptions = true;
            this.colname.AppearanceCell.TextOptions.WordWrap   = WordWrap.Wrap;
            this.colname.AppearanceHeader.ForeColor            = SystemColors.ControlText;
            this.colname.AppearanceHeader.Options.UseForeColor = true;
            this.colname.Caption = "Наименование";
            this.colname.CustomizationCaption = "Наименование";
            this.colname.FieldName            = "name";
            this.colname.Name         = "colname";
            this.colname.Visible      = true;
            this.colname.VisibleIndex = 2;
            this.colname.Width        = 203;
            this.colcomment.AppearanceCell.Options.UseTextOptions = true;
            this.colcomment.AppearanceCell.TextOptions.WordWrap   = WordWrap.Wrap;
            this.colcomment.AppearanceHeader.ForeColor            = SystemColors.ControlText;
            this.colcomment.AppearanceHeader.Options.UseForeColor = true;
            this.colcomment.Caption      = "Комментарий";
            this.colcomment.FieldName    = "comment";
            this.colcomment.Name         = "colcomment";
            this.colcomment.Visible      = true;
            this.colcomment.VisibleIndex = 3;
            this.colcomment.Width        = 203;
            this.colpicture.AppearanceHeader.ForeColor            = SystemColors.ControlText;
            this.colpicture.AppearanceHeader.Options.UseForeColor = true;
            this.colpicture.Caption    = "Картинка";
            this.colpicture.ColumnEdit = (RepositoryItem)this.PictureEdit;
            this.colpicture.FieldName  = "picture";
            this.colpicture.Name       = "colpicture";
            this.colpicture.OptionsColumn.AllowEdit = false;
            this.colpicture.OptionsColumn.ReadOnly  = true;
            this.colpicture.Visible        = true;
            this.colpicture.VisibleIndex   = 4;
            this.colpicture.Width          = 208;
            this.PictureEdit.Name          = "PictureEdit";
            this.PictureEdit.ReadOnly      = true;
            this.PictureEdit.ShowMenu      = false;
            this.PictureEdit.SizeMode      = PictureSizeMode.Zoom;
            this.splitterControl1.Location = new Point(197, 0);
            this.splitterControl1.Name     = "splitterControl1";
            this.splitterControl1.Size     = new Size(6, 361);
            this.splitterControl1.TabIndex = 3;
            this.splitterControl1.TabStop  = false;
            this.treeListTemplateGroup.Appearance.FocusedCell.BackColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.treeListTemplateGroup.Appearance.FocusedCell.ForeColor            = Color.Black;
            this.treeListTemplateGroup.Appearance.FocusedCell.Options.UseBackColor = true;
            this.treeListTemplateGroup.Appearance.FocusedCell.Options.UseForeColor = true;
            this.treeListTemplateGroup.Appearance.FocusedRow.BackColor             = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.treeListTemplateGroup.Appearance.FocusedRow.ForeColor             = Color.Black;
            this.treeListTemplateGroup.Appearance.FocusedRow.Options.UseBackColor  = true;
            this.treeListTemplateGroup.Appearance.FocusedRow.Options.UseForeColor  = true;
            this.treeListTemplateGroup.Appearance.SelectedRow.BackColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
            this.treeListTemplateGroup.Appearance.SelectedRow.ForeColor            = Color.Black;
            this.treeListTemplateGroup.Appearance.SelectedRow.Options.UseBackColor = true;
            this.treeListTemplateGroup.Appearance.SelectedRow.Options.UseForeColor = true;
            this.treeListTemplateGroup.BorderStyle = BorderStyles.Simple;
            this.treeListTemplateGroup.Columns.AddRange(new TreeListColumn[1]
            {
                this.coltemplategroup
            });
            this.treeListTemplateGroup.ContextMenuStrip  = this.MenuGroup;
            this.treeListTemplateGroup.DataMember        = "templategroup";
            this.treeListTemplateGroup.DataSource        = (object)this.ds;
            this.treeListTemplateGroup.Dock              = DockStyle.Left;
            this.treeListTemplateGroup.KeyFieldName      = "idtemplategroup";
            this.treeListTemplateGroup.Location          = new Point(0, 0);
            this.treeListTemplateGroup.LookAndFeel.Style = LookAndFeelStyle.Flat;
            this.treeListTemplateGroup.LookAndFeel.UseDefaultLookAndFeel = false;
            this.treeListTemplateGroup.Name = "treeListTemplateGroup";
            this.treeListTemplateGroup.OptionsBehavior.Editable  = false;
            this.treeListTemplateGroup.OptionsView.ShowHorzLines = false;
            this.treeListTemplateGroup.OptionsView.ShowIndicator = false;
            this.treeListTemplateGroup.OptionsView.ShowVertLines = false;
            this.treeListTemplateGroup.ParentFieldName           = "parentid";
            this.treeListTemplateGroup.SelectImageList           = (object)this.imageList1;
            this.treeListTemplateGroup.Size               = new Size(197, 361);
            this.treeListTemplateGroup.TabIndex           = 1;
            this.coltemplategroup.Caption                 = "Группы шаблонов";
            this.coltemplategroup.FieldName               = "name";
            this.coltemplategroup.MinWidth                = 173;
            this.coltemplategroup.Name                    = "coltemplategroup";
            this.coltemplategroup.OptionsColumn.AllowSort = false;
            this.coltemplategroup.Visible                 = true;
            this.coltemplategroup.VisibleIndex            = 0;
            this.coltemplategroup.Width                   = 93;
            this.MenuGroup.Items.AddRange(new ToolStripItem[8]
            {
                (ToolStripItem)this.MenuGroupeAddMain,
                (ToolStripItem)this.MenuGroupeAddChild,
                (ToolStripItem)this.MenuGroupeRename,
                (ToolStripItem)this.toolStripSeparator4,
                (ToolStripItem)this.MenuGroupeRemove,
                (ToolStripItem)this.toolStripSeparator3,
                (ToolStripItem)this.MenuGroupSetMain,
                (ToolStripItem)this.MenuGroupMoveToGroup
            });
            this.MenuGroup.Name                    = "contextMenuStrip1";
            this.MenuGroup.Size                    = new Size(298, 148);
            this.MenuGroupeAddMain.Name            = "MenuGroupeAddMain";
            this.MenuGroupeAddMain.ShortcutKeys    = Keys.Insert | Keys.Control;
            this.MenuGroupeAddMain.Size            = new Size(297, 22);
            this.MenuGroupeAddMain.Text            = "Добавить основную группу";
            this.MenuGroupeAddMain.Click          += new EventHandler(this.mnuAddRootGroupe_Click);
            this.MenuGroupeAddChild.Name           = "MenuGroupeAddChild";
            this.MenuGroupeAddChild.ShortcutKeys   = Keys.Insert | Keys.Shift | Keys.Control;
            this.MenuGroupeAddChild.Size           = new Size(297, 22);
            this.MenuGroupeAddChild.Text           = "Добавить дочернюю группу";
            this.MenuGroupeAddChild.Click         += new EventHandler(this.MenuGroupAddChild_Click);
            this.MenuGroupeRename.Name             = "MenuGroupeRename";
            this.MenuGroupeRename.ShortcutKeys     = Keys.Return | Keys.Control;
            this.MenuGroupeRename.Size             = new Size(297, 22);
            this.MenuGroupeRename.Text             = "Переименовать группу";
            this.MenuGroupeRename.Click           += new EventHandler(this.mnuRenameGroup_Click);
            this.toolStripSeparator4.Name          = "toolStripSeparator4";
            this.toolStripSeparator4.Size          = new Size(294, 6);
            this.MenuGroupeRemove.Name             = "MenuGroupeRemove";
            this.MenuGroupeRemove.ShortcutKeys     = Keys.Delete | Keys.Control;
            this.MenuGroupeRemove.Size             = new Size(297, 22);
            this.MenuGroupeRemove.Text             = "Удалить";
            this.MenuGroupeRemove.Click           += new EventHandler(this.MenuGroupRemove_Click);
            this.toolStripSeparator3.Name          = "toolStripSeparator3";
            this.toolStripSeparator3.Size          = new Size(294, 6);
            this.MenuGroupSetMain.Name             = "MenuGroupSetMain";
            this.MenuGroupSetMain.ShortcutKeys     = Keys.M | Keys.Shift | Keys.Control;
            this.MenuGroupSetMain.Size             = new Size(297, 22);
            this.MenuGroupSetMain.Text             = "Сделать группу основной";
            this.MenuGroupMoveToGroup.Name         = "MenuGroupMoveToGroup";
            this.MenuGroupMoveToGroup.ShortcutKeys = Keys.F6;
            this.MenuGroupMoveToGroup.Size         = new Size(297, 22);
            this.MenuGroupMoveToGroup.Text         = "Переместить в группу";
            this.imageList1.ImageStream            = (ImageListStreamer)componentResourceManager.GetObject("imageList1.ImageStream");
            this.imageList1.TransparentColor       = Color.Magenta;
            this.imageList1.Images.SetKeyName(0, "VSFolder_closed.bmp");
            this.atButtonsPanel1.AcceptButton                = atButtonsPanel.bpButtons.Save;
            this.atButtonsPanel1.CancelButton                = atButtonsPanel.bpButtons.Cancel;
            this.atButtonsPanel1.CancelButtonText            = "";
            this.atButtonsPanel1.CancelButtonUseCancelSelect = true;
            this.atButtonsPanel1.CancelButtonVisible         = true;
            this.atButtonsPanel1.CloseButtonText             = "";
            this.atButtonsPanel1.CloseButtonUseCancelSelect  = false;
            this.atButtonsPanel1.CloseButtonVisible          = false;
            this.atButtonsPanel1.DataMember                 = (string)null;
            this.atButtonsPanel1.DataSource                 = (DataSet)null;
            this.atButtonsPanel1.Dock                       = DockStyle.Bottom;
            this.atButtonsPanel1.EnabledCancelButton        = true;
            this.atButtonsPanel1.EnabledCloseButton         = true;
            this.atButtonsPanel1.EnabledPrintButton         = true;
            this.atButtonsPanel1.EnabledRefreshButton       = true;
            this.atButtonsPanel1.EnabledSaveButton          = true;
            this.atButtonsPanel1.EnabledScriptButton        = true;
            this.atButtonsPanel1.IdDocAppearance            = 0;
            this.atButtonsPanel1.Location                   = new Point(0, 361);
            this.atButtonsPanel1.Name                       = "atButtonsPanel1";
            this.atButtonsPanel1.PrintButtonText            = "";
            this.atButtonsPanel1.PrintButtonVisible         = false;
            this.atButtonsPanel1.ProcessedIsDialog          = true;
            this.atButtonsPanel1.RefreshButtonText          = "Обновить";
            this.atButtonsPanel1.RefreshButtonUseSelectItem = true;
            this.atButtonsPanel1.RefreshButtonVisible       = true;
            this.atButtonsPanel1.SaveButtonText             = "Выбрать";
            this.atButtonsPanel1.SaveButtonUseSelectItem    = true;
            this.atButtonsPanel1.SaveButtonVisible          = true;
            this.atButtonsPanel1.ScriptButtonText           = "";
            this.atButtonsPanel1.ScriptButtonVisible        = false;
            this.atButtonsPanel1.Size                       = new Size(872, 33);
            this.atButtonsPanel1.TabIndex                   = 2;
            this.atButtonsPanel1.TextCancelButton           = "Отменить";
            this.atButtonsPanel1.TextCloseButton            = "Закрыть";
            this.atButtonsPanel1.TextPrintButton            = "Обновить параметры";
            this.atButtonsPanel1.TextRefreshButton          = "Обновить";
            this.atButtonsPanel1.TextSaveButton             = "Применить";
            this.atButtonsPanel1.TextScriptButton           = "Скрипты...";
            this.atButtonsPanel1.VisibleCancelButton        = true;
            this.atButtonsPanel1.VisibleCloseButton         = true;
            this.atButtonsPanel1.VisiblePrintButton         = true;
            this.atButtonsPanel1.VisibleRefreshButton       = false;
            this.atButtonsPanel1.VisibleSaveButton          = true;
            this.atButtonsPanel1.VisibleScriptButton        = false;
            this.atButtonsPanel1.WidthPrintButton           = 130;
            this.AutoScaleDimensions = new SizeF(6f, 13f);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.Controls.Add((Control)this.gridControlTemplate);
            this.Controls.Add((Control)this.splitterControl1);
            this.Controls.Add((Control)this.treeListTemplateGroup);
            this.Controls.Add((Control)this.atButtonsPanel1);
            this.Name = "TemplateProductionTypeForm";
            this.Size = new Size(872, 394);
            this.Text = "Шаблоны продукции";
            this.gridViewTemplateParam.EndInit();
            this.cboNumericValue.EndInit();
            this.cboStrValue1.EndInit();
            this.cboStrValue2.EndInit();
            this.gridControlTemplate.EndInit();
            this.MenuItem.ResumeLayout(false);
            this.ds.EndInit();
            this.gridViewTemplate.EndInit();
            this.PictureEdit.EndInit();
            this.treeListTemplateGroup.EndInit();
            this.MenuGroup.ResumeLayout(false);
            this.atButtonsPanel1.EndInit();
            this.ResumeLayout(false);
        }
コード例 #5
0
 private void InitializeComponent()
 {
     this.components          = (IContainer) new Container();
     this.atButtonsPanel1     = new atButtonsPanel();
     this.bsError             = new BindingSource(this.components);
     this.txtName             = new TextEdit();
     this.layoutControl1      = new LayoutControl();
     this.pictureEdit1        = new PictureEdit();
     this.memMessage3         = new MemoEdit();
     this.memMessage2         = new MemoEdit();
     this.memMessage1         = new MemoEdit();
     this.chkSave             = new CheckEdit();
     this.cboShowType         = new ComboBoxEdit();
     this.buttonEditErrorType = new ButtonEdit();
     this.txtCode             = new TextEdit();
     this.memComment          = new MemoEdit();
     this.layoutControlGroup1 = new LayoutControlGroup();
     this.layoutControlItem1  = new LayoutControlItem();
     this.layoutControlItem2  = new LayoutControlItem();
     this.layoutControlItem3  = new LayoutControlItem();
     this.layoutControlItem4  = new LayoutControlItem();
     this.layoutControlItem5  = new LayoutControlItem();
     this.layoutControlItem6  = new LayoutControlItem();
     this.layoutControlItem7  = new LayoutControlItem();
     this.layoutControlItem8  = new LayoutControlItem();
     this.layoutControlItem9  = new LayoutControlItem();
     this.layoutControlItem10 = new LayoutControlItem();
     this.atButtonsPanel1.BeginInit();
     ((ISupportInitialize)this.bsError).BeginInit();
     this.txtName.Properties.BeginInit();
     this.layoutControl1.BeginInit();
     this.layoutControl1.SuspendLayout();
     this.pictureEdit1.Properties.BeginInit();
     this.memMessage3.Properties.BeginInit();
     this.memMessage2.Properties.BeginInit();
     this.memMessage1.Properties.BeginInit();
     this.chkSave.Properties.BeginInit();
     this.cboShowType.Properties.BeginInit();
     this.buttonEditErrorType.Properties.BeginInit();
     this.txtCode.Properties.BeginInit();
     this.memComment.Properties.BeginInit();
     this.layoutControlGroup1.BeginInit();
     this.layoutControlItem1.BeginInit();
     this.layoutControlItem2.BeginInit();
     this.layoutControlItem3.BeginInit();
     this.layoutControlItem4.BeginInit();
     this.layoutControlItem5.BeginInit();
     this.layoutControlItem6.BeginInit();
     this.layoutControlItem7.BeginInit();
     this.layoutControlItem8.BeginInit();
     this.layoutControlItem9.BeginInit();
     this.layoutControlItem10.BeginInit();
     this.SuspendLayout();
     this.atButtonsPanel1.AcceptButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButtonText            = "";
     this.atButtonsPanel1.CancelButtonUseCancelSelect = true;
     this.atButtonsPanel1.CancelButtonVisible         = true;
     this.atButtonsPanel1.CloseButtonText             = "";
     this.atButtonsPanel1.CloseButtonUseCancelSelect  = false;
     this.atButtonsPanel1.CloseButtonVisible          = false;
     this.atButtonsPanel1.DataMember                 = (string)null;
     this.atButtonsPanel1.DataSource                 = (DataSet)null;
     this.atButtonsPanel1.Dock                       = DockStyle.Bottom;
     this.atButtonsPanel1.EnabledCancelButton        = true;
     this.atButtonsPanel1.EnabledCloseButton         = true;
     this.atButtonsPanel1.EnabledPrintButton         = true;
     this.atButtonsPanel1.EnabledRefreshButton       = true;
     this.atButtonsPanel1.EnabledSaveButton          = true;
     this.atButtonsPanel1.EnabledScriptButton        = true;
     this.atButtonsPanel1.IdDocAppearance            = 0;
     this.atButtonsPanel1.Location                   = new Point(0, 324);
     this.atButtonsPanel1.Name                       = "atButtonsPanel1";
     this.atButtonsPanel1.PrintButtonText            = "";
     this.atButtonsPanel1.PrintButtonVisible         = false;
     this.atButtonsPanel1.ProcessedIsDialog          = false;
     this.atButtonsPanel1.RefreshButtonText          = "Обновить";
     this.atButtonsPanel1.RefreshButtonUseSelectItem = true;
     this.atButtonsPanel1.RefreshButtonVisible       = true;
     this.atButtonsPanel1.SaveButtonText             = "Выбрать";
     this.atButtonsPanel1.SaveButtonUseSelectItem    = true;
     this.atButtonsPanel1.SaveButtonVisible          = true;
     this.atButtonsPanel1.ScriptButtonText           = "";
     this.atButtonsPanel1.ScriptButtonVisible        = false;
     this.atButtonsPanel1.Size                       = new Size(800, 33);
     this.atButtonsPanel1.TabIndex                   = 0;
     this.atButtonsPanel1.TextCancelButton           = "Отменить";
     this.atButtonsPanel1.TextCloseButton            = "Закрыть";
     this.atButtonsPanel1.TextPrintButton            = "Печать...";
     this.atButtonsPanel1.TextRefreshButton          = "Обновить";
     this.atButtonsPanel1.TextSaveButton             = "Применить";
     this.atButtonsPanel1.TextScriptButton           = "Скрипты...";
     this.atButtonsPanel1.VisibleCancelButton        = true;
     this.atButtonsPanel1.VisibleCloseButton         = true;
     this.atButtonsPanel1.VisiblePrintButton         = false;
     this.atButtonsPanel1.VisibleRefreshButton       = false;
     this.atButtonsPanel1.VisibleSaveButton          = true;
     this.atButtonsPanel1.VisibleScriptButton        = false;
     this.atButtonsPanel1.WidthPrintButton           = 75;
     this.bsError.DataSource = (object)typeof(ds_error.errorRow);
     this.txtName.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "name", true));
     this.txtName.Location = new Point(225, 7);
     this.txtName.Name     = "txtName";
     this.txtName.Properties.BorderStyle = BorderStyles.Simple;
     this.txtName.Size            = new Size(271, 20);
     this.txtName.StyleController = (IStyleController)this.layoutControl1;
     this.txtName.TabIndex        = 1;
     this.layoutControl1.Controls.Add((Control)this.pictureEdit1);
     this.layoutControl1.Controls.Add((Control)this.memMessage3);
     this.layoutControl1.Controls.Add((Control)this.memMessage2);
     this.layoutControl1.Controls.Add((Control)this.memMessage1);
     this.layoutControl1.Controls.Add((Control)this.chkSave);
     this.layoutControl1.Controls.Add((Control)this.cboShowType);
     this.layoutControl1.Controls.Add((Control)this.buttonEditErrorType);
     this.layoutControl1.Controls.Add((Control)this.txtCode);
     this.layoutControl1.Controls.Add((Control)this.txtName);
     this.layoutControl1.Controls.Add((Control)this.memComment);
     this.layoutControl1.Dock     = DockStyle.Fill;
     this.layoutControl1.Location = new Point(0, 0);
     this.layoutControl1.Name     = "layoutControl1";
     this.layoutControl1.Root     = this.layoutControlGroup1;
     this.layoutControl1.Size     = new Size(800, 324);
     this.layoutControl1.TabIndex = 2;
     this.layoutControl1.Text     = "layoutControl1";
     this.pictureEdit1.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "unpack_picture", true));
     this.pictureEdit1.Location = new Point(507, 32);
     this.pictureEdit1.Name     = "pictureEdit1";
     this.pictureEdit1.Properties.BorderStyle      = BorderStyles.Simple;
     this.pictureEdit1.Properties.PictureStoreMode = PictureStoreMode.ByteArray;
     this.pictureEdit1.Properties.SizeMode         = PictureSizeMode.Zoom;
     this.pictureEdit1.Size            = new Size(287, 286);
     this.pictureEdit1.StyleController = (IStyleController)this.layoutControl1;
     this.pictureEdit1.TabIndex        = 11;
     this.memMessage3.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "message3", true));
     this.memMessage3.Location = new Point(85, 259);
     this.memMessage3.Name     = "memMessage3";
     this.memMessage3.Properties.BorderStyle = BorderStyles.Simple;
     this.memMessage3.Size            = new Size(411, 59);
     this.memMessage3.StyleController = (IStyleController)this.layoutControl1;
     this.memMessage3.TabIndex        = 10;
     this.memMessage2.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "message2", true));
     this.memMessage2.Location = new Point(85, 189);
     this.memMessage2.Name     = "memMessage2";
     this.memMessage2.Properties.BorderStyle = BorderStyles.Simple;
     this.memMessage2.Size            = new Size(411, 59);
     this.memMessage2.StyleController = (IStyleController)this.layoutControl1;
     this.memMessage2.TabIndex        = 9;
     this.memMessage1.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "message1", true));
     this.memMessage1.Location = new Point(85, 119);
     this.memMessage1.Name     = "memMessage1";
     this.memMessage1.Properties.BorderStyle = BorderStyles.Simple;
     this.memMessage1.Size            = new Size(411, 59);
     this.memMessage1.StyleController = (IStyleController)this.layoutControl1;
     this.memMessage1.TabIndex        = 8;
     this.chkSave.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "issave", true));
     this.chkSave.Location                  = new Point(394, 38);
     this.chkSave.Name                      = "chkSave";
     this.chkSave.Properties.Caption        = "Сохранять";
     this.chkSave.Properties.GlyphAlignment = HorzAlignment.Far;
     this.chkSave.Size                      = new Size(102, 19);
     this.chkSave.StyleController           = (IStyleController)this.layoutControl1;
     this.chkSave.TabIndex                  = 7;
     this.cboShowType.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "showtype_name", true));
     this.cboShowType.Location = new Point(304, 38);
     this.cboShowType.Name     = "cboShowType";
     this.cboShowType.Properties.BorderStyle = BorderStyles.Simple;
     this.cboShowType.Properties.Buttons.AddRange(new EditorButton[1]
     {
         new EditorButton(ButtonPredefines.Combo)
     });
     this.cboShowType.Properties.Items.AddRange(new object[4]
     {
         (object)"Не отображать",
         (object)"Сообщение 1",
         (object)"Сообщение 2",
         (object)"Сообщение 3"
     });
     this.cboShowType.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
     this.cboShowType.Size                  = new Size(79, 20);
     this.cboShowType.StyleController       = (IStyleController)this.layoutControl1;
     this.cboShowType.TabIndex              = 6;
     this.cboShowType.SelectedIndexChanged += new EventHandler(this.cboShowType_SelectedIndexChanged);
     this.buttonEditErrorType.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "errortype_name", true));
     this.buttonEditErrorType.Location = new Point(32, 38);
     this.buttonEditErrorType.Name     = "buttonEditErrorType";
     this.buttonEditErrorType.Properties.BorderStyle = BorderStyles.Simple;
     this.buttonEditErrorType.Properties.Buttons.AddRange(new EditorButton[2]
     {
         new EditorButton(ButtonPredefines.Minus),
         new EditorButton()
     });
     this.buttonEditErrorType.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
     this.buttonEditErrorType.Size            = new Size(186, 20);
     this.buttonEditErrorType.StyleController = (IStyleController)this.layoutControl1;
     this.buttonEditErrorType.TabIndex        = 5;
     this.buttonEditErrorType.ButtonClick    += new ButtonPressedEventHandler(this.buttonEditErrorType_ButtonClick);
     this.txtCode.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "code", true));
     this.txtCode.Location = new Point(32, 7);
     this.txtCode.Name     = "txtCode";
     this.txtCode.Properties.BorderStyle = BorderStyles.Simple;
     this.txtCode.Size            = new Size(104, 20);
     this.txtCode.StyleController = (IStyleController)this.layoutControl1;
     this.txtCode.TabIndex        = 4;
     this.memComment.DataBindings.Add(new Binding("EditValue", (object)this.bsError, "comment", true));
     this.memComment.Location = new Point(85, 69);
     this.memComment.Name     = "memComment";
     this.memComment.Properties.BorderStyle = BorderStyles.Simple;
     this.memComment.Size            = new Size(411, 39);
     this.memComment.StyleController = (IStyleController)this.layoutControl1;
     this.memComment.TabIndex        = 3;
     this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
     this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[10]
     {
         (BaseLayoutItem)this.layoutControlItem1,
         (BaseLayoutItem)this.layoutControlItem2,
         (BaseLayoutItem)this.layoutControlItem3,
         (BaseLayoutItem)this.layoutControlItem4,
         (BaseLayoutItem)this.layoutControlItem5,
         (BaseLayoutItem)this.layoutControlItem6,
         (BaseLayoutItem)this.layoutControlItem7,
         (BaseLayoutItem)this.layoutControlItem8,
         (BaseLayoutItem)this.layoutControlItem9,
         (BaseLayoutItem)this.layoutControlItem10
     });
     this.layoutControlGroup1.Location             = new Point(0, 0);
     this.layoutControlGroup1.Name                 = "layoutControlGroup1";
     this.layoutControlGroup1.Size                 = new Size(800, 324);
     this.layoutControlGroup1.Spacing              = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
     this.layoutControlGroup1.Text                 = "layoutControlGroup1";
     this.layoutControlGroup1.TextVisible          = false;
     this.layoutControlItem1.Control               = (Control)this.txtName;
     this.layoutControlItem1.CustomizationFormText = "Наименование";
     this.layoutControlItem1.Location              = new Point(140, 0);
     this.layoutControlItem1.Name                   = "layoutControlItem1";
     this.layoutControlItem1.Size                   = new Size(360, 31);
     this.layoutControlItem1.Text                   = "Наименование";
     this.layoutControlItem1.TextAlignMode          = TextAlignModeItem.AutoSize;
     this.layoutControlItem1.TextLocation           = Locations.Left;
     this.layoutControlItem1.TextSize               = new Size(73, 20);
     this.layoutControlItem2.Control                = (Control)this.memComment;
     this.layoutControlItem2.CustomizationFormText  = "Комментарий";
     this.layoutControlItem2.Location               = new Point(0, 62);
     this.layoutControlItem2.Name                   = "layoutControlItem2";
     this.layoutControlItem2.Size                   = new Size(500, 50);
     this.layoutControlItem2.Text                   = "Комментарий";
     this.layoutControlItem2.TextAlignMode          = TextAlignModeItem.CustomSize;
     this.layoutControlItem2.TextLocation           = Locations.Left;
     this.layoutControlItem2.TextSize               = new Size(73, 20);
     this.layoutControlItem3.Control                = (Control)this.txtCode;
     this.layoutControlItem3.CustomizationFormText  = "Код";
     this.layoutControlItem3.Location               = new Point(0, 0);
     this.layoutControlItem3.Name                   = "layoutControlItem3";
     this.layoutControlItem3.Size                   = new Size(140, 31);
     this.layoutControlItem3.Text                   = "Код";
     this.layoutControlItem3.TextAlignMode          = TextAlignModeItem.AutoSize;
     this.layoutControlItem3.TextLocation           = Locations.Left;
     this.layoutControlItem3.TextSize               = new Size(20, 20);
     this.layoutControlItem4.Control                = (Control)this.buttonEditErrorType;
     this.layoutControlItem4.CustomizationFormText  = "Тип";
     this.layoutControlItem4.Location               = new Point(0, 31);
     this.layoutControlItem4.Name                   = "layoutControlItem4";
     this.layoutControlItem4.Size                   = new Size(222, 31);
     this.layoutControlItem4.Text                   = "Тип";
     this.layoutControlItem4.TextAlignMode          = TextAlignModeItem.CustomSize;
     this.layoutControlItem4.TextLocation           = Locations.Left;
     this.layoutControlItem4.TextSize               = new Size(20, 20);
     this.layoutControlItem5.Control                = (Control)this.cboShowType;
     this.layoutControlItem5.CustomizationFormText  = "Отображение";
     this.layoutControlItem5.Location               = new Point(222, 31);
     this.layoutControlItem5.Name                   = "layoutControlItem5";
     this.layoutControlItem5.Size                   = new Size(165, 31);
     this.layoutControlItem5.Text                   = "Отображение";
     this.layoutControlItem5.TextAlignMode          = TextAlignModeItem.AutoSize;
     this.layoutControlItem5.TextLocation           = Locations.Left;
     this.layoutControlItem5.TextSize               = new Size(70, 20);
     this.layoutControlItem6.Control                = (Control)this.chkSave;
     this.layoutControlItem6.CustomizationFormText  = "layoutControlItem6";
     this.layoutControlItem6.Location               = new Point(387, 31);
     this.layoutControlItem6.Name                   = "layoutControlItem6";
     this.layoutControlItem6.Size                   = new Size(113, 31);
     this.layoutControlItem6.Text                   = "layoutControlItem6";
     this.layoutControlItem6.TextLocation           = Locations.Left;
     this.layoutControlItem6.TextSize               = new Size(0, 0);
     this.layoutControlItem6.TextToControlDistance  = 0;
     this.layoutControlItem6.TextVisible            = false;
     this.layoutControlItem7.Control                = (Control)this.memMessage1;
     this.layoutControlItem7.CustomizationFormText  = "Сообщение 1";
     this.layoutControlItem7.Location               = new Point(0, 112);
     this.layoutControlItem7.Name                   = "layoutControlItem7";
     this.layoutControlItem7.Size                   = new Size(500, 70);
     this.layoutControlItem7.Text                   = "Сообщение 1";
     this.layoutControlItem7.TextAlignMode          = TextAlignModeItem.CustomSize;
     this.layoutControlItem7.TextLocation           = Locations.Left;
     this.layoutControlItem7.TextSize               = new Size(73, 20);
     this.layoutControlItem8.Control                = (Control)this.memMessage2;
     this.layoutControlItem8.CustomizationFormText  = "Сообщение 2";
     this.layoutControlItem8.Location               = new Point(0, 182);
     this.layoutControlItem8.Name                   = "layoutControlItem8";
     this.layoutControlItem8.Size                   = new Size(500, 70);
     this.layoutControlItem8.Text                   = "Сообщение 2";
     this.layoutControlItem8.TextAlignMode          = TextAlignModeItem.CustomSize;
     this.layoutControlItem8.TextLocation           = Locations.Left;
     this.layoutControlItem8.TextSize               = new Size(73, 20);
     this.layoutControlItem9.Control                = (Control)this.memMessage3;
     this.layoutControlItem9.CustomizationFormText  = "Сообщение 2";
     this.layoutControlItem9.Location               = new Point(0, 252);
     this.layoutControlItem9.Name                   = "layoutControlItem9";
     this.layoutControlItem9.Size                   = new Size(500, 70);
     this.layoutControlItem9.Text                   = "Сообщение 2";
     this.layoutControlItem9.TextAlignMode          = TextAlignModeItem.CustomSize;
     this.layoutControlItem9.TextLocation           = Locations.Left;
     this.layoutControlItem9.TextSize               = new Size(73, 20);
     this.layoutControlItem10.Control               = (Control)this.pictureEdit1;
     this.layoutControlItem10.CustomizationFormText = "Иллюстрация";
     this.layoutControlItem10.Location              = new Point(500, 0);
     this.layoutControlItem10.Name                  = "layoutControlItem10";
     this.layoutControlItem10.Size                  = new Size(298, 322);
     this.layoutControlItem10.Text                  = "Иллюстрация";
     this.layoutControlItem10.TextLocation          = Locations.Top;
     this.layoutControlItem10.TextSize              = new Size(69, 20);
     this.AutoScaleDimensions = new SizeF(6f, 13f);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.Controls.Add((Control)this.layoutControl1);
     this.Controls.Add((Control)this.atButtonsPanel1);
     this.MinimumSize  = new Size(800, 357);
     this.Name         = "ErrorEditForm";
     this.Size         = new Size(800, 357);
     this.Text         = "ErrorEditForm";
     this.FormClosing += new FormClosing(this.ErrorEditForm_FormClosing);
     this.atButtonsPanel1.EndInit();
     ((ISupportInitialize)this.bsError).EndInit();
     this.txtName.Properties.EndInit();
     this.layoutControl1.EndInit();
     this.layoutControl1.ResumeLayout(false);
     this.pictureEdit1.Properties.EndInit();
     this.memMessage3.Properties.EndInit();
     this.memMessage2.Properties.EndInit();
     this.memMessage1.Properties.EndInit();
     this.chkSave.Properties.EndInit();
     this.cboShowType.Properties.EndInit();
     this.buttonEditErrorType.Properties.EndInit();
     this.txtCode.Properties.EndInit();
     this.memComment.Properties.EndInit();
     this.layoutControlGroup1.EndInit();
     this.layoutControlItem1.EndInit();
     this.layoutControlItem2.EndInit();
     this.layoutControlItem3.EndInit();
     this.layoutControlItem4.EndInit();
     this.layoutControlItem5.EndInit();
     this.layoutControlItem6.EndInit();
     this.layoutControlItem7.EndInit();
     this.layoutControlItem8.EndInit();
     this.layoutControlItem9.EndInit();
     this.layoutControlItem10.EndInit();
     this.ResumeLayout(false);
 }
コード例 #6
0
 private void InitializeComponent()
 {
     this.components              = (IContainer) new Container();
     this.atButtonsPanel1         = new atButtonsPanel();
     this.panelControlDialog      = new PanelControl();
     this.simpleButtonOk          = new SimpleButton();
     this.simpleButtonCancel      = new SimpleButton();
     this.contextMenuStrip1       = new ContextMenuStrip(this.components);
     this.toolStripMenuItemAdd    = new ToolStripMenuItem();
     this.toolStripMenuItemDouble = new ToolStripMenuItem();
     this.toolStripMenuItemDelete = new ToolStripMenuItem();
     this.gridControlDocState     = new GridControl();
     this.gridViewDocState        = new GridView();
     this.coliddocstate           = new GridColumn();
     this.colnumpos             = new GridColumn();
     this.colname               = new GridColumn();
     this.colcomment            = new GridColumn();
     this.colbeginstate         = new GridColumn();
     this.colendstate           = new GridColumn();
     this.coldocappearance_name = new GridColumn();
     this.repositoryItemComboBoxDocAppearance = new RepositoryItemComboBox();
     this.atButtonsPanel1.BeginInit();
     this.panelControlDialog.BeginInit();
     this.panelControlDialog.SuspendLayout();
     this.contextMenuStrip1.SuspendLayout();
     this.gridControlDocState.BeginInit();
     this.gridViewDocState.BeginInit();
     this.repositoryItemComboBoxDocAppearance.BeginInit();
     this.SuspendLayout();
     this.atButtonsPanel1.AcceptButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButton                = atButtonsPanel.bpButtons.None;
     this.atButtonsPanel1.CancelButtonText            = "";
     this.atButtonsPanel1.CancelButtonUseCancelSelect = true;
     this.atButtonsPanel1.CancelButtonVisible         = true;
     this.atButtonsPanel1.CloseButtonText             = "";
     this.atButtonsPanel1.CloseButtonUseCancelSelect  = false;
     this.atButtonsPanel1.CloseButtonVisible          = false;
     this.atButtonsPanel1.DataMember                 = (string)null;
     this.atButtonsPanel1.DataSource                 = (DataSet)null;
     this.atButtonsPanel1.Dock                       = DockStyle.Bottom;
     this.atButtonsPanel1.EnabledCancelButton        = true;
     this.atButtonsPanel1.EnabledCloseButton         = true;
     this.atButtonsPanel1.EnabledPrintButton         = true;
     this.atButtonsPanel1.EnabledRefreshButton       = true;
     this.atButtonsPanel1.EnabledSaveButton          = true;
     this.atButtonsPanel1.EnabledScriptButton        = true;
     this.atButtonsPanel1.IdDocAppearance            = 0;
     this.atButtonsPanel1.Location                   = new Point(0, 468);
     this.atButtonsPanel1.Name                       = "atButtonsPanel1";
     this.atButtonsPanel1.PrintButtonText            = "";
     this.atButtonsPanel1.PrintButtonVisible         = false;
     this.atButtonsPanel1.ProcessedIsDialog          = false;
     this.atButtonsPanel1.RefreshButtonText          = "Обновить";
     this.atButtonsPanel1.RefreshButtonUseSelectItem = true;
     this.atButtonsPanel1.RefreshButtonVisible       = true;
     this.atButtonsPanel1.SaveButtonText             = "Выбрать";
     this.atButtonsPanel1.SaveButtonUseSelectItem    = true;
     this.atButtonsPanel1.SaveButtonVisible          = true;
     this.atButtonsPanel1.ScriptButtonText           = "";
     this.atButtonsPanel1.ScriptButtonVisible        = false;
     this.atButtonsPanel1.Size                       = new Size(744, 33);
     this.atButtonsPanel1.TabIndex                   = 0;
     this.atButtonsPanel1.TextCancelButton           = "Отменить";
     this.atButtonsPanel1.TextCloseButton            = "Закрыть";
     this.atButtonsPanel1.TextPrintButton            = "Печать...";
     this.atButtonsPanel1.TextRefreshButton          = "Обновить";
     this.atButtonsPanel1.TextSaveButton             = "Применить";
     this.atButtonsPanel1.TextScriptButton           = "Скрипты...";
     this.atButtonsPanel1.VisibleCancelButton        = true;
     this.atButtonsPanel1.VisibleCloseButton         = true;
     this.atButtonsPanel1.VisiblePrintButton         = false;
     this.atButtonsPanel1.VisibleRefreshButton       = false;
     this.atButtonsPanel1.VisibleSaveButton          = true;
     this.atButtonsPanel1.VisibleScriptButton        = false;
     this.atButtonsPanel1.WidthPrintButton           = 75;
     this.panelControlDialog.BorderStyle             = BorderStyles.NoBorder;
     this.panelControlDialog.Controls.Add((Control)this.simpleButtonOk);
     this.panelControlDialog.Controls.Add((Control)this.simpleButtonCancel);
     this.panelControlDialog.Dock              = DockStyle.Bottom;
     this.panelControlDialog.Location          = new Point(0, 435);
     this.panelControlDialog.LookAndFeel.Style = LookAndFeelStyle.Flat;
     this.panelControlDialog.LookAndFeel.UseDefaultLookAndFeel = false;
     this.panelControlDialog.Name          = "panelControlDialog";
     this.panelControlDialog.Size          = new Size(744, 33);
     this.panelControlDialog.TabIndex      = 1;
     this.simpleButtonOk.Anchor            = AnchorStyles.Top | AnchorStyles.Right;
     this.simpleButtonOk.ButtonStyle       = BorderStyles.Simple;
     this.simpleButtonOk.DialogResult      = DialogResult.OK;
     this.simpleButtonOk.Location          = new Point(578, 6);
     this.simpleButtonOk.LookAndFeel.Style = LookAndFeelStyle.UltraFlat;
     this.simpleButtonOk.LookAndFeel.UseDefaultLookAndFeel = false;
     this.simpleButtonOk.Name                  = "simpleButtonOk";
     this.simpleButtonOk.Size                  = new Size(73, 23);
     this.simpleButtonOk.TabIndex              = 1;
     this.simpleButtonOk.Text                  = "Выбрать";
     this.simpleButtonOk.Click                += new EventHandler(this.simpleButton1_Click);
     this.simpleButtonCancel.Anchor            = AnchorStyles.Top | AnchorStyles.Right;
     this.simpleButtonCancel.ButtonStyle       = BorderStyles.Simple;
     this.simpleButtonCancel.DialogResult      = DialogResult.Cancel;
     this.simpleButtonCancel.Location          = new Point(657, 6);
     this.simpleButtonCancel.LookAndFeel.Style = LookAndFeelStyle.UltraFlat;
     this.simpleButtonCancel.LookAndFeel.UseDefaultLookAndFeel = false;
     this.simpleButtonCancel.Name     = "simpleButtonCancel";
     this.simpleButtonCancel.Size     = new Size(73, 23);
     this.simpleButtonCancel.TabIndex = 0;
     this.simpleButtonCancel.Text     = "Отменить";
     this.simpleButtonCancel.Click   += new EventHandler(this.simpleButtonCancel_Click);
     this.contextMenuStrip1.Items.AddRange(new ToolStripItem[3]
     {
         (ToolStripItem)this.toolStripMenuItemAdd,
         (ToolStripItem)this.toolStripMenuItemDouble,
         (ToolStripItem)this.toolStripMenuItemDelete
     });
     this.contextMenuStrip1.Name                                = "contextMenuStrip1";
     this.contextMenuStrip1.Size                                = new Size(220, 70);
     this.toolStripMenuItemAdd.Name                             = "toolStripMenuItemAdd";
     this.toolStripMenuItemAdd.ShortcutKeys                     = Keys.Insert | Keys.Control;
     this.toolStripMenuItemAdd.Size                             = new Size(219, 22);
     this.toolStripMenuItemAdd.Text                             = "Добавить";
     this.toolStripMenuItemAdd.Click                           += new EventHandler(this.toolStripMenuItemAdd_Click);
     this.toolStripMenuItemDouble.Name                          = "toolStripMenuItemDouble";
     this.toolStripMenuItemDouble.ShortcutKeys                  = Keys.Insert | Keys.Shift | Keys.Control;
     this.toolStripMenuItemDouble.Size                          = new Size(219, 22);
     this.toolStripMenuItemDouble.Text                          = "Дублировать";
     this.toolStripMenuItemDouble.Click                        += new EventHandler(this.toolStripMenuItemDouble_Click);
     this.toolStripMenuItemDelete.Name                          = "toolStripMenuItemDelete";
     this.toolStripMenuItemDelete.ShortcutKeys                  = Keys.Delete | Keys.Control;
     this.toolStripMenuItemDelete.Size                          = new Size(219, 22);
     this.toolStripMenuItemDelete.Text                          = "Удалить";
     this.toolStripMenuItemDelete.Click                        += new EventHandler(this.toolStripMenuItemDelete_Click);
     this.gridControlDocState.ContextMenuStrip                  = this.contextMenuStrip1;
     this.gridControlDocState.DataMember                        = "docstate";
     this.gridControlDocState.Dock                              = DockStyle.Fill;
     this.gridControlDocState.EmbeddedNavigator.Name            = "";
     this.gridControlDocState.Location                          = new Point(0, 0);
     this.gridControlDocState.LookAndFeel.Style                 = LookAndFeelStyle.Flat;
     this.gridControlDocState.LookAndFeel.UseDefaultLookAndFeel = false;
     this.gridControlDocState.MainView                          = (BaseView)this.gridViewDocState;
     this.gridControlDocState.Name                              = "gridControlDocState";
     this.gridControlDocState.RepositoryItems.AddRange(new RepositoryItem[1]
     {
         (RepositoryItem)this.repositoryItemComboBoxDocAppearance
     });
     this.gridControlDocState.Size     = new Size(744, 435);
     this.gridControlDocState.TabIndex = 3;
     this.gridControlDocState.ViewCollection.AddRange(new BaseView[1]
     {
         (BaseView)this.gridViewDocState
     });
     this.gridViewDocState.Appearance.GroupPanel.BackColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewDocState.Appearance.GroupPanel.BackColor2           = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewDocState.Appearance.GroupPanel.Options.UseBackColor = true;
     this.gridViewDocState.BorderStyle = BorderStyles.Simple;
     this.gridViewDocState.Columns.AddRange(new GridColumn[7]
     {
         this.coliddocstate,
         this.colnumpos,
         this.colname,
         this.colcomment,
         this.colbeginstate,
         this.colendstate,
         this.coldocappearance_name
     });
     this.gridViewDocState.GridControl               = this.gridControlDocState;
     this.gridViewDocState.GroupPanelText            = "Панель группировки";
     this.gridViewDocState.Name                      = "gridViewDocState";
     this.gridViewDocState.OptionsView.ShowIndicator = false;
     this.coliddocstate.Caption                      = "#";
     this.coliddocstate.FieldName                    = "iddocstate";
     this.coliddocstate.Name         = "coliddocstate";
     this.coliddocstate.Visible      = true;
     this.coliddocstate.VisibleIndex = 0;
     this.colnumpos.Caption          = "Номер";
     this.colnumpos.FieldName        = "numpos";
     this.colnumpos.Name             = "colnumpos";
     this.colnumpos.Visible          = true;
     this.colnumpos.VisibleIndex     = 1;
     this.colname.Caption            = "Наименование";
     this.colname.FieldName          = "name";
     this.colname.Name                                   = "colname";
     this.colname.Visible                                = true;
     this.colname.VisibleIndex                           = 2;
     this.colcomment.Caption                             = "Коментарий";
     this.colcomment.FieldName                           = "comment";
     this.colcomment.Name                                = "colcomment";
     this.colcomment.Visible                             = true;
     this.colcomment.VisibleIndex                        = 3;
     this.colbeginstate.Caption                          = "Начальный статус";
     this.colbeginstate.FieldName                        = "beginstate";
     this.colbeginstate.Name                             = "colbeginstate";
     this.colbeginstate.Visible                          = true;
     this.colbeginstate.VisibleIndex                     = 4;
     this.colendstate.Caption                            = "Конечный статус";
     this.colendstate.FieldName                          = "endstate";
     this.colendstate.Name                               = "colendstate";
     this.colendstate.Visible                            = true;
     this.colendstate.VisibleIndex                       = 5;
     this.coldocappearance_name.Caption                  = "Вид документа";
     this.coldocappearance_name.ColumnEdit               = (RepositoryItem)this.repositoryItemComboBoxDocAppearance;
     this.coldocappearance_name.FieldName                = "docappearance_name";
     this.coldocappearance_name.Name                     = "coldocappearance_name";
     this.coldocappearance_name.Visible                  = true;
     this.coldocappearance_name.VisibleIndex             = 6;
     this.repositoryItemComboBoxDocAppearance.AutoHeight = false;
     this.repositoryItemComboBoxDocAppearance.Buttons.AddRange(new EditorButton[1]
     {
         new EditorButton(ButtonPredefines.Combo)
     });
     this.repositoryItemComboBoxDocAppearance.Name          = "repositoryItemComboBoxDocAppearance";
     this.repositoryItemComboBoxDocAppearance.TextEditStyle = TextEditStyles.DisableTextEditor;
     this.AutoScaleDimensions = new SizeF(6f, 13f);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.Controls.Add((Control)this.gridControlDocState);
     this.Controls.Add((Control)this.panelControlDialog);
     this.Controls.Add((Control)this.atButtonsPanel1);
     this.Name = "DocStateForm";
     this.Size = new Size(744, 501);
     this.Text = "Статусы документов";
     this.atButtonsPanel1.EndInit();
     this.panelControlDialog.EndInit();
     this.panelControlDialog.ResumeLayout(false);
     this.contextMenuStrip1.ResumeLayout(false);
     this.gridControlDocState.EndInit();
     this.gridViewDocState.EndInit();
     this.repositoryItemComboBoxDocAppearance.EndInit();
     this.ResumeLayout(false);
 }
コード例 #7
0
 private void InitializeComponent()
 {
     this.components      = (IContainer) new Container();
     this.atButtonsPanel1 = new atButtonsPanel();
     this.ds = new ds_error();
     this.gridControlErrorType = new GridControl();
     this.MenuItem             = new ContextMenuStrip(this.components);
     this.MenuItemAdd          = new ToolStripMenuItem();
     this.toolStripSeparator1  = new ToolStripSeparator();
     this.MenuItemDoublicate   = new ToolStripMenuItem();
     this.toolStripSeparator2  = new ToolStripSeparator();
     this.MenuItemRemove       = new ToolStripMenuItem();
     this.gridViewErrorType    = new GridView();
     this.coliderrortype       = new GridColumn();
     this.colname    = new GridColumn();
     this.colcomment = new GridColumn();
     this.atButtonsPanel1.BeginInit();
     this.ds.BeginInit();
     this.gridControlErrorType.BeginInit();
     this.MenuItem.SuspendLayout();
     this.gridViewErrorType.BeginInit();
     this.SuspendLayout();
     this.atButtonsPanel1.AcceptButton                = atButtonsPanel.bpButtons.Save;
     this.atButtonsPanel1.CancelButton                = atButtonsPanel.bpButtons.Close;
     this.atButtonsPanel1.CancelButtonText            = "";
     this.atButtonsPanel1.CancelButtonUseCancelSelect = false;
     this.atButtonsPanel1.CancelButtonVisible         = false;
     this.atButtonsPanel1.CloseButtonText             = "";
     this.atButtonsPanel1.CloseButtonUseCancelSelect  = true;
     this.atButtonsPanel1.CloseButtonVisible          = true;
     this.atButtonsPanel1.DataMember                 = (string)null;
     this.atButtonsPanel1.DataSource                 = (DataSet)null;
     this.atButtonsPanel1.Dock                       = DockStyle.Bottom;
     this.atButtonsPanel1.EnabledCancelButton        = true;
     this.atButtonsPanel1.EnabledCloseButton         = true;
     this.atButtonsPanel1.EnabledPrintButton         = true;
     this.atButtonsPanel1.EnabledRefreshButton       = true;
     this.atButtonsPanel1.EnabledSaveButton          = true;
     this.atButtonsPanel1.EnabledScriptButton        = true;
     this.atButtonsPanel1.IdDocAppearance            = 0;
     this.atButtonsPanel1.Location                   = new Point(0, 308);
     this.atButtonsPanel1.Name                       = "atButtonsPanel1";
     this.atButtonsPanel1.PrintButtonText            = "";
     this.atButtonsPanel1.PrintButtonVisible         = false;
     this.atButtonsPanel1.ProcessedIsDialog          = true;
     this.atButtonsPanel1.RefreshButtonText          = "Обновить";
     this.atButtonsPanel1.RefreshButtonUseSelectItem = false;
     this.atButtonsPanel1.RefreshButtonVisible       = false;
     this.atButtonsPanel1.SaveButtonText             = "Выбрать";
     this.atButtonsPanel1.SaveButtonUseSelectItem    = true;
     this.atButtonsPanel1.SaveButtonVisible          = true;
     this.atButtonsPanel1.ScriptButtonText           = "";
     this.atButtonsPanel1.ScriptButtonVisible        = false;
     this.atButtonsPanel1.Size                       = new Size(431, 33);
     this.atButtonsPanel1.TabIndex                   = 1;
     this.atButtonsPanel1.TextCancelButton           = "Отменить";
     this.atButtonsPanel1.TextCloseButton            = "Закрыть";
     this.atButtonsPanel1.TextPrintButton            = "Печать...";
     this.atButtonsPanel1.TextRefreshButton          = "Обновить";
     this.atButtonsPanel1.TextSaveButton             = "Применить";
     this.atButtonsPanel1.TextScriptButton           = "Скрипты...";
     this.atButtonsPanel1.VisibleCancelButton        = true;
     this.atButtonsPanel1.VisibleCloseButton         = true;
     this.atButtonsPanel1.VisiblePrintButton         = false;
     this.atButtonsPanel1.VisibleRefreshButton       = false;
     this.atButtonsPanel1.VisibleSaveButton          = true;
     this.atButtonsPanel1.VisibleScriptButton        = false;
     this.atButtonsPanel1.WidthPrintButton           = 75;
     this.ds.DataSetName                                         = "ds_error";
     this.ds.EnforceConstraints                                  = false;
     this.ds.SchemaSerializationMode                             = SchemaSerializationMode.IncludeSchema;
     this.gridControlErrorType.ContextMenuStrip                  = this.MenuItem;
     this.gridControlErrorType.DataMember                        = "errortype";
     this.gridControlErrorType.DataSource                        = (object)this.ds;
     this.gridControlErrorType.Dock                              = DockStyle.Fill;
     this.gridControlErrorType.EmbeddedNavigator.Name            = "";
     this.gridControlErrorType.FormsUseDefaultLookAndFeel        = false;
     this.gridControlErrorType.Location                          = new Point(0, 0);
     this.gridControlErrorType.LookAndFeel.Style                 = LookAndFeelStyle.Flat;
     this.gridControlErrorType.LookAndFeel.UseDefaultLookAndFeel = false;
     this.gridControlErrorType.MainView                          = (BaseView)this.gridViewErrorType;
     this.gridControlErrorType.Name                              = "gridControlErrorType";
     this.gridControlErrorType.Size                              = new Size(431, 308);
     this.gridControlErrorType.TabIndex                          = 0;
     this.gridControlErrorType.ViewCollection.AddRange(new BaseView[1]
     {
         (BaseView)this.gridViewErrorType
     });
     this.MenuItem.Items.AddRange(new ToolStripItem[5]
     {
         (ToolStripItem)this.MenuItemAdd,
         (ToolStripItem)this.toolStripSeparator1,
         (ToolStripItem)this.MenuItemDoublicate,
         (ToolStripItem)this.toolStripSeparator2,
         (ToolStripItem)this.MenuItemRemove
     });
     this.MenuItem.Name                   = "MenuItem";
     this.MenuItem.Size                   = new Size(220, 82);
     this.MenuItemAdd.Name                = "MenuItemAdd";
     this.MenuItemAdd.ShortcutKeys        = Keys.Insert | Keys.Control;
     this.MenuItemAdd.Size                = new Size(219, 22);
     this.MenuItemAdd.Text                = "Добавить";
     this.MenuItemAdd.Click              += new EventHandler(this.MenuItemAdd_Click);
     this.toolStripSeparator1.Name        = "toolStripSeparator1";
     this.toolStripSeparator1.Size        = new Size(216, 6);
     this.MenuItemDoublicate.Name         = "MenuItemDoublicate";
     this.MenuItemDoublicate.ShortcutKeys = Keys.Insert | Keys.Shift | Keys.Control;
     this.MenuItemDoublicate.Size         = new Size(219, 22);
     this.MenuItemDoublicate.Text         = "Дублировать";
     this.MenuItemDoublicate.Click       += new EventHandler(this.MenuItemDoublicate_Click);
     this.toolStripSeparator2.Name        = "toolStripSeparator2";
     this.toolStripSeparator2.Size        = new Size(216, 6);
     this.MenuItemRemove.Name             = "MenuItemRemove";
     this.MenuItemRemove.ShortcutKeys     = Keys.Delete | Keys.Control;
     this.MenuItemRemove.Size             = new Size(219, 22);
     this.MenuItemRemove.Text             = "Удалить";
     this.MenuItemRemove.Click           += new EventHandler(this.MenuItemRemove_Click);
     this.gridViewErrorType.Appearance.FocusedRow.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.FocusedRow.BackColor2                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.FocusedRow.BorderColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.FocusedRow.ForeColor                    = Color.Black;
     this.gridViewErrorType.Appearance.FocusedRow.Options.UseBackColor         = true;
     this.gridViewErrorType.Appearance.FocusedRow.Options.UseBorderColor       = true;
     this.gridViewErrorType.Appearance.FocusedRow.Options.UseForeColor         = true;
     this.gridViewErrorType.Appearance.GroupPanel.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.GroupPanel.BackColor2                   = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.GroupPanel.Options.UseBackColor         = true;
     this.gridViewErrorType.Appearance.HideSelectionRow.BackColor              = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.HideSelectionRow.BackColor2             = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.HideSelectionRow.BorderColor            = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.HideSelectionRow.ForeColor              = Color.Black;
     this.gridViewErrorType.Appearance.HideSelectionRow.Options.UseBackColor   = true;
     this.gridViewErrorType.Appearance.HideSelectionRow.Options.UseBorderColor = true;
     this.gridViewErrorType.Appearance.HideSelectionRow.Options.UseForeColor   = true;
     this.gridViewErrorType.Appearance.SelectedRow.BackColor                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.SelectedRow.BackColor2                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.SelectedRow.BorderColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewErrorType.Appearance.SelectedRow.ForeColor                   = Color.Black;
     this.gridViewErrorType.Appearance.SelectedRow.Options.UseBackColor        = true;
     this.gridViewErrorType.Appearance.SelectedRow.Options.UseBorderColor      = true;
     this.gridViewErrorType.Appearance.SelectedRow.Options.UseForeColor        = true;
     this.gridViewErrorType.BorderStyle = BorderStyles.Simple;
     this.gridViewErrorType.Columns.AddRange(new GridColumn[3]
     {
         this.coliderrortype,
         this.colname,
         this.colcomment
     });
     this.gridViewErrorType.GridControl    = this.gridControlErrorType;
     this.gridViewErrorType.GroupPanelText = "Панель группировки";
     this.gridViewErrorType.Name           = "gridViewErrorType";
     this.gridViewErrorType.OptionsLayout.StoreVisualOptions = false;
     this.gridViewErrorType.OptionsSelection.MultiSelect     = true;
     this.gridViewErrorType.OptionsView.ShowAutoFilterRow    = true;
     this.gridViewErrorType.OptionsView.ShowDetailButtons    = false;
     this.gridViewErrorType.OptionsView.ShowIndicator        = false;
     this.gridViewErrorType.DoubleClick                         += new EventHandler(this.gridViewErrorType_DoubleClick);
     this.coliderrortype.Caption                                 = "#";
     this.coliderrortype.FieldName                               = "iderrortype";
     this.coliderrortype.Name                                    = "coliderrortype";
     this.coliderrortype.OptionsColumn.AllowEdit                 = false;
     this.coliderrortype.OptionsFilter.AllowAutoFilter           = false;
     this.coliderrortype.OptionsFilter.AllowFilter               = false;
     this.coliderrortype.OptionsFilter.ImmediateUpdateAutoFilter = false;
     this.coliderrortype.Visible                                 = true;
     this.coliderrortype.VisibleIndex                            = 0;
     this.coliderrortype.Width                                   = 62;
     this.colname.Caption   = "Наименование";
     this.colname.FieldName = "name";
     this.colname.Name      = "colname";
     this.colname.OptionsFilter.AllowAutoFilter           = false;
     this.colname.OptionsFilter.AllowFilter               = false;
     this.colname.OptionsFilter.ImmediateUpdateAutoFilter = false;
     this.colname.Visible      = true;
     this.colname.VisibleIndex = 1;
     this.colname.Width        = 183;
     this.colcomment.Caption   = "Комментарий";
     this.colcomment.FieldName = "comment";
     this.colcomment.Name      = "colcomment";
     this.colcomment.OptionsFilter.AllowAutoFilter           = false;
     this.colcomment.OptionsFilter.AllowFilter               = false;
     this.colcomment.OptionsFilter.ImmediateUpdateAutoFilter = false;
     this.colcomment.Visible      = true;
     this.colcomment.VisibleIndex = 2;
     this.colcomment.Width        = 184;
     this.AutoScaleDimensions     = new SizeF(6f, 13f);
     this.AutoScaleMode           = AutoScaleMode.Font;
     this.Controls.Add((Control)this.gridControlErrorType);
     this.Controls.Add((Control)this.atButtonsPanel1);
     this.MinimumSize  = new Size(431, 341);
     this.Name         = "ErrorTypeForm";
     this.Size         = new Size(431, 341);
     this.Text         = "Типы ошибок";
     this.FormClosing += new FormClosing(this.ErrorTypeForm_FormClosing);
     this.Shown       += new Shown(this.ErrorTypeForm_Shown);
     this.atButtonsPanel1.EndInit();
     this.ds.EndInit();
     this.gridControlErrorType.EndInit();
     this.MenuItem.ResumeLayout(false);
     this.gridViewErrorType.EndInit();
     this.ResumeLayout(false);
 }
コード例 #8
0
 private void InitializeComponent()
 {
     this.components                   = (IContainer) new Container();
     this.ds                           = new ds_advertising();
     this.atButtonsPanel1              = new atButtonsPanel();
     this.AtTreeListControl            = new AtTreeListControl();
     this.splitterControl1             = new SplitterControl();
     this.gridControlAdvertisingAction = new GridControl();
     this.MenuItem                     = new ContextMenuStrip(this.components);
     this.MenuItemAdd                  = new ToolStripMenuItem();
     this.MenuItemDoublicate           = new ToolStripMenuItem();
     this.toolStripSeparator1          = new ToolStripSeparator();
     this.MenuItemRemove               = new ToolStripMenuItem();
     this.toolStripSeparator2          = new ToolStripSeparator();
     this.MenuItemMoveToGroup          = new ToolStripMenuItem();
     this.gridViewAdvertisingAction    = new GridView();
     this.colidadvertisingaction       = new GridColumn();
     this.colname                      = new GridColumn();
     this.coldtstart                   = new GridColumn();
     this.coldtfinish                  = new GridColumn();
     this.colperc                      = new GridColumn();
     this.CalcEditSum                  = new RepositoryItemCalcEdit();
     this.colsm                        = new GridColumn();
     this.colcomment                   = new GridColumn();
     this.colvalut_shortname           = new GridColumn();
     this.cboValut                     = new RepositoryItemComboBox();
     this.colisactive                  = new GridColumn();
     this.ds.BeginInit();
     this.atButtonsPanel1.BeginInit();
     this.AtTreeListControl.BeginInit();
     this.gridControlAdvertisingAction.BeginInit();
     this.MenuItem.SuspendLayout();
     this.gridViewAdvertisingAction.BeginInit();
     this.CalcEditSum.BeginInit();
     this.cboValut.BeginInit();
     this.SuspendLayout();
     this.ds.DataSetName                                                     = "ds_advertising";
     this.ds.SchemaSerializationMode                                         = SchemaSerializationMode.IncludeSchema;
     this.atButtonsPanel1.AcceptButton                                       = atButtonsPanel.bpButtons.Save;
     this.atButtonsPanel1.CancelButton                                       = atButtonsPanel.bpButtons.Cancel;
     this.atButtonsPanel1.CancelButtonText                                   = "";
     this.atButtonsPanel1.CancelButtonUseCancelSelect                        = true;
     this.atButtonsPanel1.CancelButtonVisible                                = true;
     this.atButtonsPanel1.CloseButtonText                                    = "";
     this.atButtonsPanel1.CloseButtonUseCancelSelect                         = false;
     this.atButtonsPanel1.CloseButtonVisible                                 = false;
     this.atButtonsPanel1.DataMember                                         = (string)null;
     this.atButtonsPanel1.DataSource                                         = (DataSet)null;
     this.atButtonsPanel1.Dock                                               = DockStyle.Bottom;
     this.atButtonsPanel1.EnabledCancelButton                                = true;
     this.atButtonsPanel1.EnabledCloseButton                                 = true;
     this.atButtonsPanel1.EnabledPrintButton                                 = true;
     this.atButtonsPanel1.EnabledRefreshButton                               = true;
     this.atButtonsPanel1.EnabledSaveButton                                  = true;
     this.atButtonsPanel1.EnabledScriptButton                                = true;
     this.atButtonsPanel1.IdDocAppearance                                    = 0;
     this.atButtonsPanel1.Location                                           = new Point(0, 319);
     this.atButtonsPanel1.Name                                               = "atButtonsPanel1";
     this.atButtonsPanel1.PrintButtonText                                    = "";
     this.atButtonsPanel1.PrintButtonVisible                                 = false;
     this.atButtonsPanel1.ProcessedIsDialog                                  = true;
     this.atButtonsPanel1.RefreshButtonText                                  = "Обновить";
     this.atButtonsPanel1.RefreshButtonUseSelectItem                         = true;
     this.atButtonsPanel1.RefreshButtonVisible                               = false;
     this.atButtonsPanel1.SaveButtonText                                     = "Выбрать";
     this.atButtonsPanel1.SaveButtonUseSelectItem                            = true;
     this.atButtonsPanel1.SaveButtonVisible                                  = true;
     this.atButtonsPanel1.ScriptButtonText                                   = "";
     this.atButtonsPanel1.ScriptButtonVisible                                = false;
     this.atButtonsPanel1.Size                                               = new Size(778, 33);
     this.atButtonsPanel1.TabIndex                                           = 3;
     this.atButtonsPanel1.TextCancelButton                                   = "Отменить";
     this.atButtonsPanel1.TextCloseButton                                    = "Закрыть";
     this.atButtonsPanel1.TextPrintButton                                    = "Печать...";
     this.atButtonsPanel1.TextRefreshButton                                  = "Обновить";
     this.atButtonsPanel1.TextSaveButton                                     = "Применить";
     this.atButtonsPanel1.TextScriptButton                                   = "Скрипты...";
     this.atButtonsPanel1.VisibleCancelButton                                = true;
     this.atButtonsPanel1.VisibleCloseButton                                 = true;
     this.atButtonsPanel1.VisiblePrintButton                                 = false;
     this.atButtonsPanel1.VisibleRefreshButton                               = false;
     this.atButtonsPanel1.VisibleSaveButton                                  = true;
     this.atButtonsPanel1.VisibleScriptButton                                = false;
     this.atButtonsPanel1.WidthPrintButton                                   = 75;
     this.AtTreeListControl.Appearance.FocusedCell.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.FocusedCell.ForeColor                 = Color.Black;
     this.AtTreeListControl.Appearance.FocusedCell.Options.UseBackColor      = true;
     this.AtTreeListControl.Appearance.FocusedCell.Options.UseForeColor      = true;
     this.AtTreeListControl.Appearance.FocusedRow.BackColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.FocusedRow.ForeColor                  = Color.Black;
     this.AtTreeListControl.Appearance.FocusedRow.Options.UseBackColor       = true;
     this.AtTreeListControl.Appearance.FocusedRow.Options.UseForeColor       = true;
     this.AtTreeListControl.Appearance.HideSelectionRow.BackColor            = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.HideSelectionRow.BackColor2           = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.HideSelectionRow.ForeColor            = Color.Black;
     this.AtTreeListControl.Appearance.HideSelectionRow.Options.UseBackColor = true;
     this.AtTreeListControl.Appearance.HideSelectionRow.Options.UseForeColor = true;
     this.AtTreeListControl.Appearance.SelectedRow.BackColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.AtTreeListControl.Appearance.SelectedRow.ForeColor                 = Color.Black;
     this.AtTreeListControl.Appearance.SelectedRow.Options.UseBackColor      = true;
     this.AtTreeListControl.Appearance.SelectedRow.Options.UseForeColor      = true;
     this.AtTreeListControl.BorderStyle                                      = BorderStyles.Simple;
     this.AtTreeListControl.ColumnText                                       = "Группы акций";
     this.AtTreeListControl.Connection                                       = (dbconn)null;
     this.AtTreeListControl.DataMember                                       = "advertisingactiongroup";
     this.AtTreeListControl.DataRelation                                     = "advertisingactiongroup.FK_advertisingactiongroup_advertisingaction";
     this.AtTreeListControl.DataSource                                       = (object)this.ds;
     this.AtTreeListControl.Dock                                             = DockStyle.Left;
     this.AtTreeListControl.HorzScrollVisibility                             = DevExpress.XtraTreeList.ScrollVisibility.Never;
     this.AtTreeListControl.ImageIndexFieldName                              = "_imageindex";
     this.AtTreeListControl.IsSupportFilter                                  = false;
     this.AtTreeListControl.KeyFieldName                                     = "idadvertisingactiongroup";
     this.AtTreeListControl.Location                                         = new Point(0, 0);
     this.AtTreeListControl.LookAndFeel.Style                                = LookAndFeelStyle.Flat;
     this.AtTreeListControl.LookAndFeel.UseDefaultLookAndFeel                = false;
     this.AtTreeListControl.MoveItems                                        = (DataRow[])null;
     this.AtTreeListControl.Name                                             = "AtTreeListControl";
     this.AtTreeListControl.OptionsBehavior.AutoFocusNewNode                 = true;
     this.AtTreeListControl.OptionsView.ShowHorzLines                        = false;
     this.AtTreeListControl.OptionsView.ShowIndicator                        = false;
     this.AtTreeListControl.OptionsView.ShowVertLines                        = false;
     this.AtTreeListControl.ParentFieldName                                  = "parentid";
     this.AtTreeListControl.PrimaryKeyName                                   = "idadvertisingactiongroup";
     this.AtTreeListControl.Size                                             = new Size(215, 319);
     this.AtTreeListControl.TabIndex                                         = 0;
     this.splitterControl1.Location                                          = new Point(215, 0);
     this.splitterControl1.Name                                              = "splitterControl1";
     this.splitterControl1.Size                                              = new Size(6, 319);
     this.splitterControl1.TabIndex                                          = 1;
     this.splitterControl1.TabStop                                           = false;
     this.gridControlAdvertisingAction.ContextMenuStrip                      = this.MenuItem;
     this.gridControlAdvertisingAction.DataMember                            = "advertisingactiongroup.FK_advertisingactiongroup_advertisingaction";
     this.gridControlAdvertisingAction.DataSource                            = (object)this.ds;
     this.gridControlAdvertisingAction.Dock                                  = DockStyle.Fill;
     this.gridControlAdvertisingAction.EmbeddedNavigator.Name                = "";
     this.gridControlAdvertisingAction.Location                              = new Point(221, 0);
     this.gridControlAdvertisingAction.LookAndFeel.Style                     = LookAndFeelStyle.Flat;
     this.gridControlAdvertisingAction.LookAndFeel.UseDefaultLookAndFeel     = false;
     this.gridControlAdvertisingAction.MainView                              = (BaseView)this.gridViewAdvertisingAction;
     this.gridControlAdvertisingAction.Name                                  = "gridControlAdvertisingAction";
     this.gridControlAdvertisingAction.RepositoryItems.AddRange(new RepositoryItem[2]
     {
         (RepositoryItem)this.cboValut,
         (RepositoryItem)this.CalcEditSum
     });
     this.gridControlAdvertisingAction.Size     = new Size(557, 319);
     this.gridControlAdvertisingAction.TabIndex = 2;
     this.gridControlAdvertisingAction.ViewCollection.AddRange(new BaseView[1]
     {
         (BaseView)this.gridViewAdvertisingAction
     });
     this.MenuItem.Items.AddRange(new ToolStripItem[6]
     {
         (ToolStripItem)this.MenuItemAdd,
         (ToolStripItem)this.MenuItemDoublicate,
         (ToolStripItem)this.toolStripSeparator1,
         (ToolStripItem)this.MenuItemRemove,
         (ToolStripItem)this.toolStripSeparator2,
         (ToolStripItem)this.MenuItemMoveToGroup
     });
     this.MenuItem.Name                    = "MenuItem";
     this.MenuItem.Size                    = new Size(228, 104);
     this.MenuItemAdd.Name                 = "MenuItemAdd";
     this.MenuItemAdd.ShortcutKeys         = Keys.Insert | Keys.Control;
     this.MenuItemAdd.Size                 = new Size(227, 22);
     this.MenuItemAdd.Text                 = "Добавить";
     this.MenuItemAdd.Click               += new EventHandler(this.MenuItemAdd_Click);
     this.MenuItemDoublicate.Name          = "MenuItemDoublicate";
     this.MenuItemDoublicate.ShortcutKeys  = Keys.Insert | Keys.Shift | Keys.Control;
     this.MenuItemDoublicate.Size          = new Size(227, 22);
     this.MenuItemDoublicate.Text          = "Дублировать";
     this.MenuItemDoublicate.Click        += new EventHandler(this.MenuItemDoublicate_Click);
     this.toolStripSeparator1.Name         = "toolStripSeparator1";
     this.toolStripSeparator1.Size         = new Size(224, 6);
     this.MenuItemRemove.Name              = "MenuItemRemove";
     this.MenuItemRemove.ShortcutKeys      = Keys.Delete | Keys.Control;
     this.MenuItemRemove.Size              = new Size(227, 22);
     this.MenuItemRemove.Text              = "Удалить";
     this.MenuItemRemove.Click            += new EventHandler(this.MenuItemRemove_Click);
     this.toolStripSeparator2.Name         = "toolStripSeparator2";
     this.toolStripSeparator2.Size         = new Size(224, 6);
     this.MenuItemMoveToGroup.Name         = "MenuItemMoveToGroup";
     this.MenuItemMoveToGroup.ShortcutKeys = Keys.M | Keys.Control;
     this.MenuItemMoveToGroup.Size         = new Size(227, 22);
     this.MenuItemMoveToGroup.Text         = "Переместить в группу";
     this.MenuItemMoveToGroup.Click       += new EventHandler(this.MenuItemMoveToGroup_Click);
     this.gridViewAdvertisingAction.Appearance.FocusedRow.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.FocusedRow.BackColor2                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.FocusedRow.BorderColor                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.FocusedRow.ForeColor                    = SystemColors.ControlText;
     this.gridViewAdvertisingAction.Appearance.FocusedRow.Options.UseBackColor         = true;
     this.gridViewAdvertisingAction.Appearance.FocusedRow.Options.UseBorderColor       = true;
     this.gridViewAdvertisingAction.Appearance.FocusedRow.Options.UseForeColor         = true;
     this.gridViewAdvertisingAction.Appearance.GroupPanel.BackColor                    = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.GroupPanel.BackColor2                   = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.GroupPanel.Options.UseBackColor         = true;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.BackColor              = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.BackColor2             = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.BorderColor            = Color.FromArgb(192, 192, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.ForeColor              = SystemColors.ControlText;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.GradientMode           = LinearGradientMode.Vertical;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.Options.UseBackColor   = true;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.Options.UseBorderColor = true;
     this.gridViewAdvertisingAction.Appearance.HideSelectionRow.Options.UseForeColor   = true;
     this.gridViewAdvertisingAction.Appearance.SelectedRow.BackColor                   = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.SelectedRow.BackColor2                  = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.SelectedRow.BorderColor                 = Color.FromArgb(128, 128, (int)byte.MaxValue);
     this.gridViewAdvertisingAction.Appearance.SelectedRow.ForeColor                   = SystemColors.ControlText;
     this.gridViewAdvertisingAction.Appearance.SelectedRow.Options.UseBackColor        = true;
     this.gridViewAdvertisingAction.Appearance.SelectedRow.Options.UseBorderColor      = true;
     this.gridViewAdvertisingAction.Appearance.SelectedRow.Options.UseForeColor        = true;
     this.gridViewAdvertisingAction.BorderStyle = BorderStyles.Simple;
     this.gridViewAdvertisingAction.Columns.AddRange(new GridColumn[9]
     {
         this.colidadvertisingaction,
         this.colname,
         this.coldtstart,
         this.coldtfinish,
         this.colperc,
         this.colsm,
         this.colcomment,
         this.colvalut_shortname,
         this.colisactive
     });
     this.gridViewAdvertisingAction.GridControl    = this.gridControlAdvertisingAction;
     this.gridViewAdvertisingAction.GroupPanelText = "Панель группировки";
     this.gridViewAdvertisingAction.Name           = "gridViewAdvertisingAction";
     this.gridViewAdvertisingAction.OptionsCustomization.AllowFilter = false;
     this.gridViewAdvertisingAction.OptionsView.ShowAutoFilterRow    = true;
     this.gridViewAdvertisingAction.OptionsView.ShowDetailButtons    = false;
     this.gridViewAdvertisingAction.OptionsView.ShowIndicator        = false;
     this.gridViewAdvertisingAction.DoubleClick         += new EventHandler(this.gridViewAdvertisingAction_DoubleClick);
     this.colidadvertisingaction.Caption                 = "#";
     this.colidadvertisingaction.FieldName               = "idadvertisingaction";
     this.colidadvertisingaction.Name                    = "colidadvertisingaction";
     this.colidadvertisingaction.OptionsColumn.AllowEdit = false;
     this.colidadvertisingaction.Visible                 = true;
     this.colidadvertisingaction.VisibleIndex            = 0;
     this.colidadvertisingaction.Width                   = 29;
     this.colname.Caption          = "Наименование";
     this.colname.FieldName        = "name";
     this.colname.Name             = "colname";
     this.colname.Visible          = true;
     this.colname.VisibleIndex     = 1;
     this.colname.Width            = 64;
     this.coldtstart.Caption       = "Начало";
     this.coldtstart.FieldName     = "dtstart";
     this.coldtstart.Name          = "coldtstart";
     this.coldtstart.Visible       = true;
     this.coldtstart.VisibleIndex  = 2;
     this.coldtstart.Width         = 64;
     this.coldtfinish.Caption      = "Окончание";
     this.coldtfinish.FieldName    = "dtfinish";
     this.coldtfinish.Name         = "coldtfinish";
     this.coldtfinish.Visible      = true;
     this.coldtfinish.VisibleIndex = 3;
     this.coldtfinish.Width        = 64;
     this.colperc.Caption          = "%";
     this.colperc.ColumnEdit       = (RepositoryItem)this.CalcEditSum;
     this.colperc.FieldName        = "perc";
     this.colperc.Name             = "colperc";
     this.colperc.Visible          = true;
     this.colperc.VisibleIndex     = 4;
     this.colperc.Width            = 64;
     this.CalcEditSum.AutoHeight   = false;
     this.CalcEditSum.DisplayFormat.FormatString = "N4";
     this.CalcEditSum.DisplayFormat.FormatType   = FormatType.Numeric;
     this.CalcEditSum.EditFormat.FormatString    = "N4";
     this.CalcEditSum.EditFormat.FormatType      = FormatType.Numeric;
     this.CalcEditSum.Mask.EditMask = "N4";
     this.CalcEditSum.Name          = "CalcEditSum";
     this.colsm.Caption             = "Сумма";
     this.colsm.ColumnEdit          = (RepositoryItem)this.CalcEditSum;
     this.colsm.FieldName           = "sm";
     this.colsm.Name                      = "colsm";
     this.colsm.Visible                   = true;
     this.colsm.VisibleIndex              = 5;
     this.colsm.Width                     = 64;
     this.colcomment.Caption              = "Комментарий";
     this.colcomment.FieldName            = "comment";
     this.colcomment.Name                 = "colcomment";
     this.colcomment.Visible              = true;
     this.colcomment.VisibleIndex         = 7;
     this.colcomment.Width                = 85;
     this.colvalut_shortname.Caption      = "Валюта";
     this.colvalut_shortname.ColumnEdit   = (RepositoryItem)this.cboValut;
     this.colvalut_shortname.FieldName    = "valut_shortname";
     this.colvalut_shortname.Name         = "colvalut_shortname";
     this.colvalut_shortname.Visible      = true;
     this.colvalut_shortname.VisibleIndex = 6;
     this.colvalut_shortname.Width        = 64;
     this.cboValut.AutoHeight             = false;
     this.cboValut.Buttons.AddRange(new EditorButton[1]
     {
         new EditorButton(ButtonPredefines.Combo)
     });
     this.cboValut.Name            = "cboValut";
     this.cboValut.TextEditStyle   = TextEditStyles.DisableTextEditor;
     this.colisactive.Caption      = "V";
     this.colisactive.FieldName    = "isactive";
     this.colisactive.Name         = "colisactive";
     this.colisactive.Visible      = true;
     this.colisactive.VisibleIndex = 8;
     this.colisactive.Width        = 57;
     this.AutoScaleDimensions      = new SizeF(6f, 13f);
     this.AutoScaleMode            = AutoScaleMode.Font;
     this.Controls.Add((Control)this.gridControlAdvertisingAction);
     this.Controls.Add((Control)this.splitterControl1);
     this.Controls.Add((Control)this.AtTreeListControl);
     this.Controls.Add((Control)this.atButtonsPanel1);
     this.Name = "AdvertisingActionForm";
     this.Size = new Size(778, 352);
     this.Text = "AdvertisingActionForm";
     this.ds.EndInit();
     this.atButtonsPanel1.EndInit();
     this.AtTreeListControl.EndInit();
     this.gridControlAdvertisingAction.EndInit();
     this.MenuItem.ResumeLayout(false);
     this.gridViewAdvertisingAction.EndInit();
     this.CalcEditSum.EndInit();
     this.cboValut.EndInit();
     this.ResumeLayout(false);
 }