/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.dataLayoutControl1 = new DevExpress.XtraDataLayout.DataLayoutControl(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.mvvmContext = new DevExpress.Utils.MVVM.MVVMContext(this.components); this.windowsUIButtonPanelCloseButton = new DevExpress.XtraBars.Docking2010.WindowsUIButtonPanel(); this.windowsUIButtonPanelMain = new DevExpress.XtraBars.Docking2010.WindowsUIButtonPanel(); this.labelControl = new DevExpress.XtraEditors.LabelControl(); this.RentsGridControl = new DevExpress.XtraGrid.GridControl(); this.RentsGridView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.RentsBarManager = new DevExpress.XtraBars.BarManager(); this.RentsBar = new DevExpress.XtraBars.Bar(); this.RentsXtraUserControl = new DevExpress.XtraEditors.XtraUserControl(); this.RentsPopUpMenu = new DevExpress.XtraBars.PopupMenu(this.components); this.bbiRentsNew = new DevExpress.XtraBars.BarButtonItem(); this.bbiRentsEdit = new DevExpress.XtraBars.BarButtonItem(); this.bbiRentsDelete = new DevExpress.XtraBars.BarButtonItem(); this.bbiRentsRefresh = new DevExpress.XtraBars.BarButtonItem(); ((System.ComponentModel.ISupportInitialize)(this.RentsBarManager)).BeginInit(); this.SuspendLayout(); // // windowsUIButtonPanelCloseButton // this.windowsUIButtonPanelCloseButton.ButtonInterval = 0; this.windowsUIButtonPanelCloseButton.Buttons.AddRange(new DevExpress.XtraEditors.ButtonPanel.IBaseButton[] { new DevExpress.XtraBars.Docking2010.WindowsUIButton("", null, "Backward;Size32x32;GrayScaled") }); this.windowsUIButtonPanelCloseButton.ContentAlignment = System.Drawing.ContentAlignment.TopCenter; this.windowsUIButtonPanelCloseButton.Dock = System.Windows.Forms.DockStyle.Left; this.windowsUIButtonPanelCloseButton.ForeColor = System.Drawing.Color.Gray; this.windowsUIButtonPanelCloseButton.MaximumSize = new System.Drawing.Size(45, 0); this.windowsUIButtonPanelCloseButton.MinimumSize = new System.Drawing.Size(45, 0); this.windowsUIButtonPanelCloseButton.Name = "windowsUIButtonPanelCloseButton"; this.windowsUIButtonPanelCloseButton.Orientation = System.Windows.Forms.Orientation.Vertical; this.windowsUIButtonPanelCloseButton.Padding = new System.Windows.Forms.Padding(5, 5, 0, 0); this.windowsUIButtonPanelCloseButton.Text = "windowsUIButtonPanel1"; // // windowsUIButtonPanelMain // this.windowsUIButtonPanelMain.AppearanceButton.Hovered.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.windowsUIButtonPanelMain.AppearanceButton.Hovered.FontSizeDelta = -1; this.windowsUIButtonPanelMain.AppearanceButton.Hovered.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.windowsUIButtonPanelMain.AppearanceButton.Hovered.Options.UseBackColor = true; this.windowsUIButtonPanelMain.AppearanceButton.Hovered.Options.UseFont = true; this.windowsUIButtonPanelMain.AppearanceButton.Hovered.Options.UseForeColor = true; this.windowsUIButtonPanelMain.AppearanceButton.Normal.FontSizeDelta = -1; this.windowsUIButtonPanelMain.AppearanceButton.Normal.Options.UseFont = true; this.windowsUIButtonPanelMain.AppearanceButton.Pressed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(159)))), ((int)(((byte)(159))))); this.windowsUIButtonPanelMain.AppearanceButton.Pressed.FontSizeDelta = -1; this.windowsUIButtonPanelMain.AppearanceButton.Pressed.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(159)))), ((int)(((byte)(159))))); this.windowsUIButtonPanelMain.AppearanceButton.Pressed.Options.UseBackColor = true; this.windowsUIButtonPanelMain.AppearanceButton.Pressed.Options.UseFont = true; this.windowsUIButtonPanelMain.AppearanceButton.Pressed.Options.UseForeColor = true; this.windowsUIButtonPanelMain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.windowsUIButtonPanelMain.EnableImageTransparency = true; this.windowsUIButtonPanelMain.ForeColor = System.Drawing.Color.White; this.windowsUIButtonPanelMain.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.windowsUIButtonPanelMain.Name = "windowsUIButtonPanelMain"; this.windowsUIButtonPanelMain.Text = "windowsUIButtonPanelMain"; this.windowsUIButtonPanelMain.MinimumSize = new System.Drawing.Size(60, 60); this.windowsUIButtonPanelMain.MaximumSize = new System.Drawing.Size(0, 60); this.windowsUIButtonPanelMain.Dock = System.Windows.Forms.DockStyle.Bottom; this.windowsUIButtonPanelMain.UseButtonBackgroundImages = false; this.windowsUIButtonPanelMain.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Save", null, "Save;Size32x32;GrayScaled")); this.windowsUIButtonPanelMain.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Save And Close", null, "SaveAndClose;Size32x32;GrayScaled")); this.windowsUIButtonPanelMain.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Save And New", null, "SaveAndNew;Size32x32;GrayScaled")); this.windowsUIButtonPanelMain.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Reset Changes", null, "Reset;Size32x32;GrayScaled")); this.windowsUIButtonPanelMain.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Delete", null, "Edit/Delete;Size32x32;GrayScaled")); // // layoutControlGroup1 // this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Name = "Root"; this.layoutControlGroup1.TextVisible = false; // // dataLayoutControl1item.CommandPropertyName // this.dataLayoutControl1.AllowCustomization = false; this.dataLayoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.dataLayoutControl1.Root = this.layoutControlGroup1; this.paymentTypeViewBindingSource = new System.Windows.Forms.BindingSource(this.components); this.paymentTypeViewBindingSource.DataSource = typeof(Building_Managment.MyCode.PaymentType); this.dataLayoutControl1.DataSource = paymentTypeViewBindingSource; // //Create GridControls // DevExpress.XtraDataLayout.RetrieveFieldsParameters parameters = new DevExpress.XtraDataLayout.RetrieveFieldsParameters(); parameters.DataSourceUpdateMode = System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged; // //RentsGridControl // this.RentsGridControl.MainView = this.RentsGridView; this.RentsGridControl.Dock = System.Windows.Forms.DockStyle.Fill; this.RentsGridControl.Name = "RentsGridControl"; this.RentsGridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.RentsGridView }); // //RentsGridView // this.RentsGridView.GridControl = this.RentsGridControl; this.RentsGridView.Name = "RentsGridView"; this.RentsGridView.OptionsBehavior.Editable = false; this.RentsGridView.OptionsBehavior.ReadOnly = true; this.RentsGridView.OptionsView.ShowGroupPanel = false; // //RentsPopulateColumnsParameters // DevExpress.XtraGrid.Extensions.PopulateColumnsParameters RentsPopulateColumnsParameters = new DevExpress.XtraGrid.Extensions.PopulateColumnsParameters(); DevExpress.XtraGrid.Extensions.PopulateColumnParameters CustomerRentsChildPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); CustomerRentsChildPopulateColumnParameters_NotVisible.FieldName = "Customer"; CustomerRentsChildPopulateColumnParameters_NotVisible.ColumnVisible = false; RentsPopulateColumnsParameters.CustomColumnParameters.Add(CustomerRentsChildPopulateColumnParameters_NotVisible); DevExpress.XtraGrid.Extensions.PopulateColumnParameters PaymentMethodRentsChildPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); PaymentMethodRentsChildPopulateColumnParameters_NotVisible.FieldName = "PaymentMethod"; PaymentMethodRentsChildPopulateColumnParameters_NotVisible.ColumnVisible = false; RentsPopulateColumnsParameters.CustomColumnParameters.Add(PaymentMethodRentsChildPopulateColumnParameters_NotVisible); DevExpress.XtraGrid.Extensions.PopulateColumnParameters PaymentTypeRentsChildPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); PaymentTypeRentsChildPopulateColumnParameters_NotVisible.FieldName = "PaymentType"; PaymentTypeRentsChildPopulateColumnParameters_NotVisible.ColumnVisible = false; RentsPopulateColumnsParameters.CustomColumnParameters.Add(PaymentTypeRentsChildPopulateColumnParameters_NotVisible); DevExpress.XtraGrid.Extensions.PopulateColumnParameters RentDetailesRentsChildPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); RentDetailesRentsChildPopulateColumnParameters_NotVisible.FieldName = "RentDetailes"; RentDetailesRentsChildPopulateColumnParameters_NotVisible.ColumnVisible = false; RentsPopulateColumnsParameters.CustomColumnParameters.Add(RentDetailesRentsChildPopulateColumnParameters_NotVisible); DevExpress.XtraGrid.Extensions.PopulateColumnParameters ShopRentsChildPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); ShopRentsChildPopulateColumnParameters_NotVisible.FieldName = "Shop"; ShopRentsChildPopulateColumnParameters_NotVisible.ColumnVisible = false; RentsPopulateColumnsParameters.CustomColumnParameters.Add(ShopRentsChildPopulateColumnParameters_NotVisible); DevExpress.XtraGrid.Extensions.PopulateColumnParameters User_TableRentsChildPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); User_TableRentsChildPopulateColumnParameters_NotVisible.FieldName = "User_Table"; User_TableRentsChildPopulateColumnParameters_NotVisible.ColumnVisible = false; RentsPopulateColumnsParameters.CustomColumnParameters.Add(User_TableRentsChildPopulateColumnParameters_NotVisible); DevExpress.XtraGrid.Extensions.PopulateColumnParameters RentsRentsChildPopulateColumnParameters = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); RentsRentsChildPopulateColumnParameters.FieldName = "RentsRents"; RentsRentsChildPopulateColumnParameters.Path = "Rents.RentID"; RentsPopulateColumnsParameters.CustomColumnParameters.Add(RentsRentsChildPopulateColumnParameters); this.RentsGridView.PopulateColumns(typeof(Building_Managment.MyCode.Rent), RentsPopulateColumnsParameters); // //RentsBindingSource // System.Windows.Forms.BindingSource RentsBindingSource = new System.Windows.Forms.BindingSource(this.components); RentsBindingSource.DataSource = typeof(Building_Managment.MyCode.Rent); this.RentsGridControl.DataSource = RentsBindingSource; // //RentsXtraUserControl // this.RentsXtraUserControl.Controls.Add(RentsGridControl); this.RentsXtraUserControl.Name = "RentsXtraUserControl"; this.RentsXtraUserControl.MinimumSize = new System.Drawing.Size(100, 100); // //RentsNew // this.bbiRentsNew.Caption = "New"; this.bbiRentsNew.Name = "bbiRentsNew"; this.bbiRentsNew.ImageUri.Uri = "New"; this.bbiRentsNew.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; this.RentsBarManager.Items.Add(this.bbiRentsNew); this.RentsBar.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(this.bbiRentsNew)); this.RentsPopUpMenu.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(this.bbiRentsNew)); // //RentsEdit // this.bbiRentsEdit.Caption = "Edit"; this.bbiRentsEdit.Name = "bbiRentsEdit"; this.bbiRentsEdit.ImageUri.Uri = "Edit"; this.bbiRentsEdit.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; this.RentsBarManager.Items.Add(this.bbiRentsEdit); this.RentsBar.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(this.bbiRentsEdit)); this.RentsPopUpMenu.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(this.bbiRentsEdit)); // //RentsDelete // this.bbiRentsDelete.Caption = "Delete"; this.bbiRentsDelete.Name = "bbiRentsDelete"; this.bbiRentsDelete.ImageUri.Uri = "Delete"; this.bbiRentsDelete.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; this.RentsBarManager.Items.Add(this.bbiRentsDelete); this.RentsBar.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(this.bbiRentsDelete)); this.RentsPopUpMenu.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(this.bbiRentsDelete)); // //RentsRefresh // this.bbiRentsRefresh.Caption = "Refresh"; this.bbiRentsRefresh.Name = "bbiRentsRefresh"; this.bbiRentsRefresh.ImageUri.Uri = "Refresh"; this.bbiRentsRefresh.PaintStyle = DevExpress.XtraBars.BarItemPaintStyle.CaptionGlyph; this.RentsBarManager.Items.Add(this.bbiRentsRefresh); this.RentsBar.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(this.bbiRentsRefresh)); this.RentsPopUpMenu.LinksPersistInfo.Add(new DevExpress.XtraBars.LinkPersistInfo(this.bbiRentsRefresh)); // //RentsBar // this.RentsBar.BarName = "Rents"; this.RentsBar.DockCol = 0; this.RentsBar.DockRow = 0; this.RentsBar.DockStyle = DevExpress.XtraBars.BarDockStyle.Top; this.RentsBar.OptionsBar.AllowQuickCustomization = false; this.RentsBar.OptionsBar.DrawDragBorder = false; this.RentsBar.Text = "Rents"; // //RentsBarManager // this.RentsBarManager.AllowCustomization = false; this.RentsBarManager.Bars.AddRange(new DevExpress.XtraBars.Bar[] { this.RentsBar }); this.RentsBarManager.Form = RentsXtraUserControl; this.RentsBarManager.MainMenu = this.RentsBar; // // RentsPopUpMenu // this.RentsPopUpMenu.Manager = this.RentsBarManager; this.RentsPopUpMenu.Name = "RentsPopUpMenu"; // //RentsRetriveFieldParameters // DevExpress.XtraDataLayout.RetrieveFieldParameters RentsRetriveFieldParameters = new DevExpress.XtraDataLayout.RetrieveFieldParameters(); RentsRetriveFieldParameters.FieldName = "Rents"; RentsRetriveFieldParameters.ControlForField = RentsXtraUserControl; RentsRetriveFieldParameters.CreateTabGroupForItem = true; parameters.CustomListParameters.Add(RentsRetriveFieldParameters); // //call RetrieveFields // this.dataLayoutControl1.RetrieveFields(parameters); // // mvvmContext // this.mvvmContext.ContainerControl = this; this.mvvmContext.ViewModelType = typeof(Building_Managment.ViewModels.PaymentTypeViewModel); // // labelControl // this.labelControl.Dock = System.Windows.Forms.DockStyle.Top; this.labelControl.Name = "labelControl"; this.labelControl.Text = "PaymentType - Element View"; this.labelControl.AllowHtmlString = true; this.labelControl.Appearance.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.labelControl.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.labelControl.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; this.labelControl.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.Vertical; this.labelControl.Padding = new System.Windows.Forms.Padding(10, 5, 0, 0); // //PaymentTypeView // this.Appearance.BackColor = System.Drawing.Color.White; this.Appearance.Options.UseBackColor = true; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange; this.Controls.Add(this.dataLayoutControl1); this.Controls.Add(this.labelControl); this.Controls.Add(this.windowsUIButtonPanelCloseButton); this.Controls.Add(this.windowsUIButtonPanelMain); this.Size = new System.Drawing.Size(1024, 768); this.Name = "PaymentTypeView"; ((System.ComponentModel.ISupportInitialize)(this.RentsBarManager)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.gridControl = new DevExpress.XtraGrid.GridControl(); this.gridView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.mvvmContext = new DevExpress.Utils.MVVM.MVVMContext(this.components); this.labelControl = new DevExpress.XtraEditors.LabelControl(); this.windowsUIButtonPanel = new DevExpress.XtraBars.Docking2010.WindowsUIButtonPanel(); this.layoutControl = new DevExpress.XtraLayout.LayoutControl(); this.layoutControlGroup = new DevExpress.XtraLayout.LayoutControlGroup(); this.itemLabel = new DevExpress.XtraLayout.LayoutControlItem(); this.itemGrid = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl)).BeginInit(); this.layoutControl.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.mvvmContext)).BeginInit(); this.SuspendLayout(); // // windowsUIButtonPanel // this.windowsUIButtonPanel.AppearanceButton.Hovered.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.windowsUIButtonPanel.AppearanceButton.Hovered.FontSizeDelta = -1; this.windowsUIButtonPanel.AppearanceButton.Hovered.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(130)))), ((int)(((byte)(130))))); this.windowsUIButtonPanel.AppearanceButton.Hovered.Options.UseBackColor = true; this.windowsUIButtonPanel.AppearanceButton.Hovered.Options.UseFont = true; this.windowsUIButtonPanel.AppearanceButton.Hovered.Options.UseForeColor = true; this.windowsUIButtonPanel.AppearanceButton.Normal.FontSizeDelta = -1; this.windowsUIButtonPanel.AppearanceButton.Normal.Options.UseFont = true; this.windowsUIButtonPanel.AppearanceButton.Pressed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(159)))), ((int)(((byte)(159))))); this.windowsUIButtonPanel.AppearanceButton.Pressed.FontSizeDelta = -1; this.windowsUIButtonPanel.AppearanceButton.Pressed.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(159)))), ((int)(((byte)(159))))); this.windowsUIButtonPanel.AppearanceButton.Pressed.Options.UseBackColor = true; this.windowsUIButtonPanel.AppearanceButton.Pressed.Options.UseFont = true; this.windowsUIButtonPanel.AppearanceButton.Pressed.Options.UseForeColor = true; this.windowsUIButtonPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(63)))), ((int)(((byte)(63))))); this.windowsUIButtonPanel.Dock = System.Windows.Forms.DockStyle.Bottom; this.windowsUIButtonPanel.EnableImageTransparency = true; this.windowsUIButtonPanel.ForeColor = System.Drawing.Color.White; this.windowsUIButtonPanel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.windowsUIButtonPanel.Name = "windowsUIButtonPanel"; this.windowsUIButtonPanel.Text = "windowsUIButtonPanel"; this.windowsUIButtonPanel.UseButtonBackgroundImages = false; this.windowsUIButtonPanel.MinimumSize = new System.Drawing.Size(60, 60); this.windowsUIButtonPanel.MaximumSize = new System.Drawing.Size(0, 60); this.windowsUIButtonPanel.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("New", null, "New;Size32x32;GrayScaled")); this.windowsUIButtonPanel.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Edit", null, "Edit;Size32x32;GrayScaled")); this.windowsUIButtonPanel.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Delete", null, "Edit/Delete;Size32x32;GrayScaled")); this.windowsUIButtonPanel.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Refresh", null, "Refresh;Size32x32;GrayScaled")); this.windowsUIButtonPanel.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUISeparator()); this.windowsUIButtonPanel.Buttons.Add(new DevExpress.XtraBars.Docking2010.WindowsUIButton("Print", null, "Preview;Size32x32;GrayScaled")); // // labelControl // this.labelControl.AllowHtmlString = true; this.labelControl.Appearance.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.labelControl.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140))))); this.labelControl.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; this.labelControl.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.Vertical; this.labelControl.Dock = System.Windows.Forms.DockStyle.Top; this.labelControl.Name = "labelControl"; this.labelControl.Padding = new System.Windows.Forms.Padding(0, 3, 13, 6); this.labelControl.Text = "Shop"; // // gridControl // this.gridControl.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControl.Location = new System.Drawing.Point(5, 116); this.gridControl.MainView = this.gridView; this.gridControl.Name = "gridControl"; this.gridControl.Size = new System.Drawing.Size(779, 311); this.gridControl.TabIndex = 2; this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView }); // // gridView // this.gridView.GridControl = this.gridControl; this.gridView.Name = "gridView"; this.gridView.OptionsBehavior.Editable = false; this.gridView.OptionsCustomization.AllowColumnMoving = false; this.gridView.OptionsCustomization.AllowGroup = false; this.gridView.OptionsCustomization.AllowQuickHideColumns = false; this.gridView.OptionsMenu.EnableColumnMenu = false; this.gridView.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never; this.gridView.OptionsView.ShowGroupPanel = false; this.gridView.OptionsView.ShowIndicator = false; this.shopCollectionViewBindingSource = new System.Windows.Forms.BindingSource(this.components); this.shopCollectionViewBindingSource.DataSource = typeof(Building_Managment.MyCode.Shop); this.gridControl.DataSource = shopCollectionViewBindingSource; DevExpress.XtraGrid.Extensions.PopulateColumnsParameters parameters = new DevExpress.XtraGrid.Extensions.PopulateColumnsParameters(); // //Building // DevExpress.XtraGrid.Extensions.PopulateColumnParameters BuildingPopulateColumnParameters = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); BuildingPopulateColumnParameters.FieldName = "Building"; BuildingPopulateColumnParameters.Path = "Building.BuildingLable"; parameters.CustomColumnParameters.Add(BuildingPopulateColumnParameters); DevExpress.XtraGrid.Extensions.PopulateColumnParameters BuildingPopulateColumnParameters_NotGenerate = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); BuildingPopulateColumnParameters_NotGenerate.FieldName = "BuildingName"; BuildingPopulateColumnParameters_NotGenerate.ColumnVisible = false; parameters.CustomColumnParameters.Add(BuildingPopulateColumnParameters_NotGenerate); DevExpress.XtraGrid.Extensions.PopulateColumnParameters BuildingPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); BuildingPopulateColumnParameters_NotVisible.FieldName = "Building"; BuildingPopulateColumnParameters_NotVisible.ColumnVisible = false; parameters.CustomColumnParameters.Add(BuildingPopulateColumnParameters_NotVisible); DevExpress.XtraGrid.Extensions.PopulateColumnParameters Electricity_ShopsBillsPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); Electricity_ShopsBillsPopulateColumnParameters_NotVisible.FieldName = "Electricity_ShopsBills"; Electricity_ShopsBillsPopulateColumnParameters_NotVisible.ColumnVisible = false; parameters.CustomColumnParameters.Add(Electricity_ShopsBillsPopulateColumnParameters_NotVisible); DevExpress.XtraGrid.Extensions.PopulateColumnParameters RentsPopulateColumnParameters_NotVisible = new DevExpress.XtraGrid.Extensions.PopulateColumnParameters(); RentsPopulateColumnParameters_NotVisible.FieldName = "Rents"; RentsPopulateColumnParameters_NotVisible.ColumnVisible = false; parameters.CustomColumnParameters.Add(RentsPopulateColumnParameters_NotVisible); this.gridView.PopulateColumns(typeof(Building_Managment.MyCode.Shop), parameters); // // mvvmContext // this.mvvmContext.ContainerControl = this; this.mvvmContext.ViewModelType = typeof(Building_Managment.ViewModels.ShopCollectionViewModel); // // layoutControl // layoutControl.Controls.AddRange(new System.Windows.Forms.Control[] { this.labelControl, this.gridControl }); this.layoutControl.AllowCustomization = false; this.layoutControl.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl.Root = this.layoutControlGroup; // // itemLabel // this.itemLabel.Control = this.labelControl; this.itemLabel.TextVisible = false; this.itemLabel.Name = "itemLabel"; this.itemLabel.Padding = new DevExpress.XtraLayout.Utils.Padding(0); // // itemGrid // this.itemGrid.Control = this.gridControl; this.itemGrid.TextVisible = false; this.itemGrid.Name = "itemGrid"; this.itemGrid.Padding = new DevExpress.XtraLayout.Utils.Padding(0); // // layoutControlGroup // this.layoutControlGroup.GroupBordersVisible = false; this.layoutControlGroup.Add(itemLabel); this.layoutControlGroup.Add(itemGrid); this.layoutControlGroup.Name = "layoutControlGroup"; this.layoutControlGroup.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup.GroupBordersVisible = false; this.layoutControlGroup.TextVisible = false; this.layoutControlGroup.Padding = new DevExpress.XtraLayout.Utils.Padding(40, 40, 0, 0); // //ShopCollectionView // this.Appearance.BackColor = System.Drawing.Color.White; this.Appearance.Options.UseBackColor = true; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.layoutControl); this.Controls.Add(this.windowsUIButtonPanel); this.Size = new System.Drawing.Size(1024, 768); this.Name = "ShopCollectionView"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl)).EndInit(); this.layoutControl.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.mvvmContext)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.gridControl = new DevExpress.XtraGrid.GridControl(); this.gridView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.mvvmContext = new DevExpress.Utils.MVVM.MVVMContext(this.components); this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); this.ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); this.ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); this.ribbonStatusBar = new DevExpress.XtraBars.Ribbon.RibbonStatusBar(); this.bsiRecordsCount = new DevExpress.XtraBars.BarStaticItem(); this.bbiPrintPreview = new DevExpress.XtraBars.BarButtonItem(); this.popupMenu = new DevExpress.XtraBars.PopupMenu(this.components); ((System.ComponentModel.ISupportInitialize)(this.gridControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.mvvmContext)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu)).BeginInit(); this.SuspendLayout(); // // ribbonControl // this.ribbonControl.ExpandCollapseItem.Id = 0; this.ribbonControl.MaxItemId = 14; this.ribbonControl.Name = "ribbonControl"; this.ribbonControl.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { this.ribbonPage1 }); this.ribbonControl.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office2013; this.ribbonControl.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; this.ribbonControl.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; this.ribbonControl.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.bbiPrintPreview, this.bsiRecordsCount }); DevExpress.XtraBars.BarButtonItem bbiNew = new DevExpress.XtraBars.BarButtonItem(); bbiNew.Caption = "New"; bbiNew.Name = "bbiNew"; bbiNew.ImageUri.Uri = "New"; this.ribbonControl.Items.Add(bbiNew); DevExpress.XtraBars.BarButtonItem bbiEdit = new DevExpress.XtraBars.BarButtonItem(); bbiEdit.Caption = "Edit"; bbiEdit.Name = "bbiEdit"; bbiEdit.ImageUri.Uri = "Edit"; this.ribbonControl.Items.Add(bbiEdit); DevExpress.XtraBars.BarButtonItem bbiDelete = new DevExpress.XtraBars.BarButtonItem(); bbiDelete.Caption = "Delete"; bbiDelete.Name = "bbiDelete"; bbiDelete.ImageUri.Uri = "Delete"; this.ribbonControl.Items.Add(bbiDelete); DevExpress.XtraBars.BarButtonItem bbiRefresh = new DevExpress.XtraBars.BarButtonItem(); bbiRefresh.Caption = "Refresh"; bbiRefresh.Name = "bbiRefresh"; bbiRefresh.ImageUri.Uri = "Refresh"; this.ribbonControl.Items.Add(bbiRefresh); // // ribbonPage1 // this.ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { this.ribbonPageGroup1, this.ribbonPageGroup2 }); this.ribbonPage1.MergeOrder = 0; this.ribbonPage1.Name = "ribbonPage1"; this.ribbonPage1.Text = "Home"; // // ribbonPageGroup1 // this.ribbonPageGroup1.AllowTextClipping = false; this.ribbonPageGroup1.Name = "ribbonPageGroup1"; this.ribbonPageGroup1.ShowCaptionButton = false; this.ribbonPageGroup1.Text = "Login Tasks"; this.ribbonPageGroup1.ItemLinks.Add(bbiNew); this.ribbonPageGroup1.ItemLinks.Add(bbiEdit); this.ribbonPageGroup1.ItemLinks.Add(bbiDelete); this.ribbonPageGroup1.ItemLinks.Add(bbiRefresh); // // ribbonPageGroup2 // this.ribbonPageGroup2.ItemLinks.Add(this.bbiPrintPreview); this.ribbonPageGroup2.Name = "ribbonPageGroup2"; this.ribbonPageGroup2.Text = "Print and Export"; this.ribbonPageGroup2.AllowTextClipping = false; this.ribbonPageGroup2.ShowCaptionButton = false; // // ribbonStatusBar // this.ribbonStatusBar.ItemLinks.Add(this.bsiRecordsCount); this.ribbonStatusBar.Name = "ribbonStatusBar"; this.ribbonStatusBar.Ribbon = this.ribbonControl; // // bbiPrintPreview // this.bbiPrintPreview.Caption = "Print Preview"; this.bbiPrintPreview.ImageUri.Uri = "Preview"; this.bbiPrintPreview.Name = "bbiPrintPreview"; // // barStaticItem1 // this.bsiRecordsCount.Caption = "RECORDS : 2"; this.bsiRecordsCount.Name = "bsiRecordsCount"; this.bsiRecordsCount.TextAlignment = System.Drawing.StringAlignment.Near; // // gridControl // this.gridControl.Dock = System.Windows.Forms.DockStyle.Fill; this.gridControl.Location = new System.Drawing.Point(5, 116); this.gridControl.MainView = this.gridView; this.gridControl.MenuManager = this.ribbonControl; this.gridControl.Name = "gridControl"; this.gridControl.Size = new System.Drawing.Size(779, 311); this.gridControl.TabIndex = 2; this.gridControl.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView }); // // gridView // this.gridView.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.gridView.GridControl = this.gridControl; this.gridView.Name = "gridView"; this.gridView.OptionsBehavior.Editable = false; this.gridView.OptionsBehavior.ReadOnly = true; this.loginCollectionViewBindingSource = new System.Windows.Forms.BindingSource(this.components); this.loginCollectionViewBindingSource.DataSource = typeof(School_Management.Manager.Student.Login); this.gridControl.DataSource = loginCollectionViewBindingSource; DevExpress.XtraGrid.Extensions.PopulateColumnsParameters parameters = new DevExpress.XtraGrid.Extensions.PopulateColumnsParameters(); this.gridView.PopulateColumns(typeof(School_Management.Manager.Student.Login), parameters); // // popupMenu1 // this.popupMenu.ItemLinks.Add(bbiNew); this.popupMenu.ItemLinks.Add(bbiEdit); this.popupMenu.ItemLinks.Add(bbiDelete); this.popupMenu.ItemLinks.Add(bbiRefresh); this.popupMenu.Name = "popupMenu"; this.popupMenu.Ribbon = this.ribbonControl; // // mvvmContext // this.mvvmContext.ContainerControl = this; this.mvvmContext.ViewModelType = typeof(School_Management.Manager.Student.ViewModels.LoginCollectionViewModel); this.mvvmContext.BindingExpressions.Add(DevExpress.Utils.MVVM.BindingExpression.CreateCommandBinding(typeof(School_Management.Manager.Student.ViewModels.LoginCollectionViewModel), "New", bbiNew)); this.mvvmContext.BindingExpressions.Add(DevExpress.Utils.MVVM.BindingExpression.CreateParameterizedCommandBinding(typeof(School_Management.Manager.Student.ViewModels.LoginCollectionViewModel), "Edit", "SelectedEntity", bbiEdit)); this.mvvmContext.BindingExpressions.Add(DevExpress.Utils.MVVM.BindingExpression.CreateParameterizedCommandBinding(typeof(School_Management.Manager.Student.ViewModels.LoginCollectionViewModel), "Delete", "SelectedEntity", bbiDelete)); this.mvvmContext.BindingExpressions.Add(DevExpress.Utils.MVVM.BindingExpression.CreateCommandBinding(typeof(School_Management.Manager.Student.ViewModels.LoginCollectionViewModel), "Refresh", bbiRefresh)); this.mvvmContext.RegistrationExpressions.AddRange(new DevExpress.Utils.MVVM.RegistrationExpression[] { DevExpress.Utils.MVVM.RegistrationExpression.RegisterLayoutSerializationService(null, false, DevExpress.Utils.DefaultBoolean.Default, this.gridControl), DevExpress.Utils.MVVM.RegistrationExpression.RegisterWindowedDocumentManagerService(null, false, this, DevExpress.Utils.MVVM.Services.DefaultWindowedDocumentManagerServiceType.XtraForm, null) }); // //LoginCollectionView // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.ribbonStatusBar); this.Controls.Add(this.gridControl); this.Controls.Add(this.ribbonControl); this.Size = new System.Drawing.Size(1024, 768); this.Name = "LoginCollectionView"; ((System.ComponentModel.ISupportInitialize)(this.gridControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.mvvmContext)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.popupMenu)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }