private void InitializeComponent() { MenuButton button = new MenuButton(); ItemCommand command = new ItemCommand(); ItemCommand command2 = new ItemCommand(); ItemCommand command3 = new ItemCommand(); ItemCommand command4 = new ItemCommand(); ItemCommand command5 = new ItemCommand(); ItemCommand command6 = new ItemCommand(); ItemCommand command7 = new ItemCommand(); ItemCommand command8 = new ItemCommand(); ItemCommand command9 = new ItemCommand(); ItemCommand command10 = new ItemCommand(); ItemCommand command11 = new ItemCommand(); ItemCommand command12 = new ItemCommand(); ItemCommand command13 = new ItemCommand(); ItemCommand command14 = new ItemCommand(); ItemCommand command15 = new ItemCommand(); ItemCommand command16 = new ItemCommand(); ItemCommand command17 = new ItemCommand(); ItemCommand command18 = new ItemCommand(); ItemCommand command19 = new ItemCommand(); ItemCommand command20 = new ItemCommand(); ItemCommand command21 = new ItemCommand(); ItemCommand command22 = new ItemCommand(); ItemCommand command23 = new ItemCommand(); ItemCommand command24 = new ItemCommand(); ItemCommand command25 = new ItemCommand(); ItemCommand command26 = new ItemCommand(); ItemCommand command27 = new ItemCommand(); ItemCommand command28 = new ItemCommand(); ItemCommand command29 = new ItemCommand(); this.ucToolBar = new XucToolBar(); this.gbList = new AdvBandedGridView(); this.gridBand1 = new GridBand(); this.gcList = new GridControl(); this.gbList.BeginInit(); this.gcList.BeginInit(); base.SuspendLayout(); this.ucToolBar.ButtonAdd = BarItemVisibility.Always; this.ucToolBar.ButtonCancel = BarItemVisibility.Never; this.ucToolBar.ButtonChange = BarItemVisibility.Never; this.ucToolBar.ButtonDelete = BarItemVisibility.Always; this.ucToolBar.ButtonEdit = BarItemVisibility.Always; this.ucToolBar.ButtonExport = BarItemVisibility.Always; this.ucToolBar.ButtonOption = BarItemVisibility.Never; this.ucToolBar.ButtonPrint = BarItemVisibility.Always; this.ucToolBar.ButtonSave = BarItemVisibility.Never; this.ucToolBar.ButtonSaveNew = BarItemVisibility.Never; this.ucToolBar.Dock = DockStyle.Top; this.ucToolBar.IsClose = CloseOrNew.None; this.ucToolBar.Location = new Point(0, 0); this.ucToolBar.Name = "ucToolBar"; this.ucToolBar.NotSave = false; command.Caption = ""; command.Enable = false; command.Visibility = BarItemVisibility.Never; button.Add = command; command2.Caption = ""; command2.Enable = false; command2.Visibility = BarItemVisibility.Never; button.Cancel = command2; command3.Caption = ""; command3.Enable = false; command3.Visibility = BarItemVisibility.Never; button.Change = command3; command4.Caption = ""; command4.Enable = false; command4.Visibility = BarItemVisibility.Never; button.Close = command4; command5.Caption = ""; command5.Enable = false; command5.Visibility = BarItemVisibility.Never; button.Custom = command5; command6.Caption = ""; command6.Enable = false; command6.Visibility = BarItemVisibility.Never; button.Delete = command6; command7.Caption = ""; command7.Enable = false; command7.Visibility = BarItemVisibility.Never; button.Export = command7; command8.Caption = ""; command8.Enable = false; command8.Visibility = BarItemVisibility.Never; button.Filter = command8; command9.Caption = ""; command9.Enable = false; command9.Visibility = BarItemVisibility.Never; button.FilterCustomer = command9; command10.Caption = ""; command10.Enable = false; command10.Visibility = BarItemVisibility.Never; button.FilterStock = command10; command11.Caption = ""; command11.Enable = false; command11.Visibility = BarItemVisibility.Never; button.Find = command11; button.GClose = false; button.GCommand = false; button.GExport = false; command12.Caption = ""; command12.Enable = false; command12.Visibility = BarItemVisibility.Never; button.Go = command12; button.GOption = false; button.GPrint = false; button.GRecords = false; button.GSearchBar = false; button.GSettings = false; button.GVaildation = false; command13.Caption = ""; command13.Enable = false; command13.Visibility = BarItemVisibility.Never; button.Import = command13; command14.Caption = ""; command14.Enable = false; command14.Visibility = BarItemVisibility.Never; button.Next = command14; command15.Caption = ""; command15.Enable = false; command15.Visibility = BarItemVisibility.Never; button.PageSetup = command15; button.PHome = false; command16.Caption = ""; command16.Enable = false; command16.Visibility = BarItemVisibility.Never; button.Previous = command16; command17.Caption = ""; command17.Enable = false; command17.Visibility = BarItemVisibility.Never; button.Print = command17; command18.Caption = ""; command18.Enable = false; command18.Visibility = BarItemVisibility.Never; button.PrintPreview = command18; button.PTool = false; command19.Caption = ""; command19.Enable = false; command19.Visibility = BarItemVisibility.Never; button.Redo = command19; command20.Caption = ""; command20.Enable = false; command20.Visibility = BarItemVisibility.Never; button.Refresh = command20; command21.Caption = ""; command21.Enable = false; command21.Visibility = BarItemVisibility.Never; button.Save = command21; command22.Caption = ""; command22.Enable = false; command22.Visibility = BarItemVisibility.Never; button.SaveAndClose = command22; command23.Caption = ""; command23.Enable = false; command23.Visibility = BarItemVisibility.Never; button.SaveAndNew = command23; command24.Caption = ""; command24.Enable = false; command24.Visibility = BarItemVisibility.Never; button.Search = command24; command25.Caption = ""; command25.Enable = false; command25.Visibility = BarItemVisibility.Never; button.SearchText = command25; command26.Caption = ""; command26.Enable = false; command26.Visibility = BarItemVisibility.Never; button.Task = command26; command27.Caption = ""; command27.Enable = false; command27.Visibility = BarItemVisibility.Never; button.Undo = command27; command28.Caption = ""; command28.Enable = false; command28.Visibility = BarItemVisibility.Never; button.Vaildate = command28; command29.Caption = ""; command29.Enable = false; command29.Visibility = BarItemVisibility.Never; button.View = command29; this.ucToolBar.RibbonBar = button; this.ucToolBar.Size = new Size(0x2f9, 0x2b); this.ucToolBar.Status = Actions.Add; this.ucToolBar.TabIndex = 0; this.ucToolBar.Title = ""; this.ucToolBar.Visible = false; this.gbList.Bands.AddRange(new GridBand[] { this.gridBand1 }); this.gbList.BorderStyle = BorderStyles.NoBorder; this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus; this.gbList.GridControl = this.gcList; this.gbList.GroupSummary.AddRange(new GridSummaryItem[] { new GridGroupSummaryItem(SummaryItemType.None, "", null, "") }); this.gbList.IndicatorWidth = 0x2d; this.gbList.Name = "gbList"; this.gbList.OptionsPrint.ExpandAllDetails = true; this.gbList.OptionsPrint.PrintDetails = true; this.gbList.OptionsPrint.PrintFilterInfo = true; this.gbList.OptionsPrint.PrintPreview = true; this.gbList.OptionsSelection.InvertSelection = true; this.gbList.OptionsSelection.MultiSelect = true; this.gbList.OptionsView.ColumnAutoWidth = true; this.gbList.OptionsView.EnableAppearanceEvenRow = true; this.gbList.OptionsView.HeaderFilterButtonShowMode = FilterButtonShowMode.Button; this.gbList.OptionsView.NewItemRowPosition = NewItemRowPosition.Bottom; this.gbList.OptionsView.ShowBands = false; this.gbList.OptionsView.ShowDetailButtons = false; this.gbList.OptionsView.ShowGroupPanel = false; this.gbList.ShowButtonMode = ShowButtonModeEnum.ShowAlways; this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator); this.gbList.KeyDown += new KeyEventHandler(this.gbList_KeyDown); this.gbList.Click += new EventHandler(this.gbList_Click); this.gbList.Layout += new EventHandler(this.gbList_Layout); this.gbList.MouseDown += new MouseEventHandler(this.gbList_MouseDown); this.gbList.DoubleClick += new EventHandler(this.gbList_DoubleClick); this.gbList.RowCellClick += new RowCellClickEventHandler(this.gbList_RowCellClick); this.gridBand1.Caption = "DANH MỤC"; this.gridBand1.Name = "gridBand1"; this.gridBand1.OptionsBand.ShowCaption = false; this.gridBand1.ToolTip = "DANH MỤC"; this.gcList.Dock = DockStyle.Fill; this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false; this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false; this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false; this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false; this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false; this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}"; this.gcList.Location = new Point(0, 0x2b); this.gcList.LookAndFeel.SkinName = "Office 2007 Black"; this.gcList.MainView = this.gbList; this.gcList.Name = "gcList"; this.gcList.Size = new Size(0x2f9, 0x1c6); this.gcList.TabIndex = 10; this.gcList.UseEmbeddedNavigator = true; this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList }); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.gcList); base.Controls.Add(this.ucToolBar); this.DoubleBuffered = true; base.Name = "xucBaseBasicD"; base.Size = new Size(0x2f9, 0x1f1); this.gbList.EndInit(); this.gcList.EndInit(); base.ResumeLayout(false); }
public RibbonChangedEventArgs(MenuButton mRibbon) { this.m_ribbon = mRibbon; }