/// <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.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.ShopLookUpEdit = new DevExpress.XtraEditors.GridLookUpEdit(); this.ShopBindingSource = new System.Windows.Forms.BindingSource(this.components); 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.electricity_ShopsBillsViewBindingSource = new System.Windows.Forms.BindingSource(this.components); this.electricity_ShopsBillsViewBindingSource.DataSource = typeof(Building_Managment.MyCode.Electricity_ShopsBills); this.dataLayoutControl1.DataSource = electricity_ShopsBillsViewBindingSource; // //Create GridControls // DevExpress.XtraDataLayout.RetrieveFieldsParameters parameters = new DevExpress.XtraDataLayout.RetrieveFieldsParameters(); parameters.DataSourceUpdateMode = System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged; // //ShopLookUpEdit // this.ShopBindingSource.DataSource = typeof(Building_Managment.MyCode.Shop); this.ShopLookUpEdit.Properties.ValueMember = "ShopID"; this.ShopLookUpEdit.Properties.DisplayMember = "ShopLable"; this.ShopLookUpEdit.Properties.DataSource = this.ShopBindingSource; this.ShopLookUpEdit.Name = "ShopLookUpEdit"; this.ShopLookUpEdit.DataBindings.Add("EditValue", electricity_ShopsBillsViewBindingSource, "ShopLable", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); DevExpress.XtraDataLayout.RetrieveFieldParameters ShopLookUpEditRetrieveFieldParameters = new DevExpress.XtraDataLayout.RetrieveFieldParameters(); ShopLookUpEditRetrieveFieldParameters.FieldName = "ShopLable"; ShopLookUpEditRetrieveFieldParameters.ControlForField = this.ShopLookUpEdit; parameters.CustomListParameters.Add(ShopLookUpEditRetrieveFieldParameters); DevExpress.XtraDataLayout.RetrieveFieldParameters ShopLookUpEditRetrieveFieldParameters_NotGenerate = new DevExpress.XtraDataLayout.RetrieveFieldParameters(); ShopLookUpEditRetrieveFieldParameters_NotGenerate.FieldName = "Shop"; ShopLookUpEditRetrieveFieldParameters_NotGenerate.GenerateField = false; parameters.CustomListParameters.Add(ShopLookUpEditRetrieveFieldParameters_NotGenerate); // //call RetrieveFields // this.dataLayoutControl1.RetrieveFields(parameters); // // mvvmContext // this.mvvmContext.ContainerControl = this; this.mvvmContext.ViewModelType = typeof(Building_Managment.ViewModels.Electricity_ShopsBillsViewModel); // // labelControl // this.labelControl.Dock = System.Windows.Forms.DockStyle.Top; this.labelControl.Name = "labelControl"; this.labelControl.Text = "Electricity_ShopsBills - 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); // //Electricity_ShopsBillsView // 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 = "Electricity_ShopsBillsView"; this.ResumeLayout(false); }