public SettingsForm() { var settings = new TabFormSettings("GeneralAppSettings"); textEditRefresh.EditValue = settings.GetValue("RefreshTime"); textEditRotate.EditValue = settings.GetValue("RotateTime"); toggleSwitchAutoRefresh.EditValue = bool.Parse(settings.GetValue("AutoRefresh")); toggleSwitchAutoRotate.EditValue = bool.Parse(settings.GetValue("AutoRotate")); textEditRefresh.Validating += new CancelEventHandler(TextBox_Validating); textEditRotate.Validating += new CancelEventHandler(TextBox_Validating); var newSize = new Size(30, 30); var emptySpace = new EmptySpaceItem { SizeConstraintsType = SizeConstraintsType.Custom, MaxSize = newSize, MinSize = newSize }; var lc = new LayoutControl(); lc.Dock = DockStyle.Fill; lc.AddItem("Dashboard refresh time (in seconds):", textEditRefresh).TextVisible = true; lc.AddItem("Dashboard auto refresh:", toggleSwitchAutoRefresh).TextVisible = true; lc.AddItem("Rotate time between dashboards (in seconds):", textEditRotate).TextVisible = true; lc.AddItem("Auto rotate between dashboards:", toggleSwitchAutoRotate).TextVisible = true; lc.AddItem(emptySpace); lc.AddItem("Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString()); Controls.Add(lc); Dock = DockStyle.None; Width = 500; Height = 180; }
private void searchLookUpEdit1_Popup(object sender, EventArgs e) { //得到当前SearchLookUpEdit弹出窗体 PopupSearchLookUpEditForm form = (sender as IPopupControl).PopupWindow as PopupSearchLookUpEditForm; SearchEditLookUpPopup popup = form.Controls.OfType <SearchEditLookUpPopup>().FirstOrDefault(); LayoutControl layout = popup.Controls.OfType <LayoutControl>().FirstOrDefault(); //如果窗体内空间没有确认按钮,则自定义确认simplebutton,取消simplebutton,选中结果label if (layout.Controls.OfType <Control>().Where(ct => ct.Name == "btOK").FirstOrDefault() == null) { //得到空的空间 EmptySpaceItem a = layout.Items.Where(it => it.TypeName == "EmptySpaceItem").FirstOrDefault() as EmptySpaceItem; //得到取消按钮,重写点击事件 Control clearBtn = layout.Controls.OfType <Control>().Where(ct => ct.Name == "btClear").FirstOrDefault(); LayoutControlItem clearLCI = (LayoutControlItem)layout.GetItemByControl(clearBtn); clearBtn.Click += clearBtn_Click; //添加一个simplebutton控件(确认按钮) LayoutControlItem myLCI = (LayoutControlItem)clearLCI.Owner.CreateLayoutItem(clearLCI.Parent); myLCI.TextVisible = false; SimpleButton btOK = new SimpleButton() { Name = "btOK", Text = "确定" }; btOK.Click += btOK_Click; myLCI.Control = btOK; myLCI.SizeConstraintsType = SizeConstraintsType.Custom;//控件的大小设置为自定义 myLCI.MaxSize = clearLCI.MaxSize; myLCI.MinSize = clearLCI.MinSize; myLCI.Move(clearLCI, DevExpress.XtraLayout.Utils.InsertType.Left); } }
private void Form1_Load(object sender, EventArgs e) { LayoutControl lc = new LayoutControl(); lc.Dock = System.Windows.Forms.DockStyle.Fill; this.Controls.Add(lc); LayoutControlItem labelItem1 = lc.Root.AddItem(); labelItem1.Name = Guid.NewGuid().ToString(); labelItem1.Control = new LabelControl(); labelItem1.Control.Size = new Size(100, 100); labelItem1.Text = "1"; EmptySpaceItem emptySpace = new EmptySpaceItem(); new DevExpress.XtraLayout.Customization.LayoutItemDragController(emptySpace, labelItem1, DevExpress.XtraLayout.Utils.InsertLocation.After, DevExpress.XtraLayout.Utils.LayoutType.Vertical).DragWildItem(); LayoutControlItem labelItem2 = lc.Root.AddItem(); labelItem2.Name = Guid.NewGuid().ToString(); labelItem2.Control = new LabelControl(); labelItem2.Control.Size = new Size(100, 100); labelItem2.Text = "2"; }
/// <summary> /// 设置控件组是否显示 /// </summary> /// <returns></returns> public static void ToVisibility(this EmptySpaceItem control, bool visible) { if (visible) { control.Visibility = LayoutVisibility.Always; } else { control.Visibility = LayoutVisibility.Never; } }
void group_SelectedPageChanged(object sender, LayoutTabPageChangedEventArgs e) { LayoutControlItem layoutControlItem = e.Page.Items[0] as LayoutControlItem; LayoutTreeView tree = layoutControlItem.Control as LayoutTreeView; if (tree == null) { return; } foreach (BaseLayoutItemTreeNode item in tree.Nodes[0].Nodes) { EmptySpaceItem esItem = (item as BaseLayoutItemTreeNode).Item as EmptySpaceItem; if (esItem != null) { item.Text = "\"" + esItem.CustomizationFormText + "\""; //customize captions here } } }
private void searchLookUpEdit1_Popup(object sender, EventArgs e) { //得到当前SearchLookUpEdit弹出窗体 PopupSearchLookUpEditForm form = (sender as IPopupControl).PopupWindow as PopupSearchLookUpEditForm; SearchEditLookUpPopup popup = form.Controls.OfType <SearchEditLookUpPopup>().FirstOrDefault(); LayoutControl layout = popup.Controls.OfType <LayoutControl>().FirstOrDefault(); //如果窗体内空间没有确认按钮,则自定义确认simplebutton,取消simplebutton,选中结果label if (layout.Controls.OfType <Control>().Where(ct => ct.Name == "btOK").FirstOrDefault() == null) { //得到空的空间 EmptySpaceItem a = layout.Items.Where(it => it.TypeName == "EmptySpaceItem").FirstOrDefault() as EmptySpaceItem; //得到取消按钮,重写点击事件 Control clearBtn = layout.Controls.OfType <Control>().Where(ct => ct.Name == "btClear").FirstOrDefault(); LayoutControlItem clearLCI = (LayoutControlItem)layout.GetItemByControl(clearBtn); clearBtn.Click += clearBtn_Click; //添加一个simplebutton控件(确认按钮) LayoutControlItem myLCI = (LayoutControlItem)clearLCI.Owner.CreateLayoutItem(clearLCI.Parent); myLCI.TextVisible = false; } }
//public UCPropertyInfo2D(FrmSimpleConditionQuery2D dialog) //{ // InitializeComponent(); // _dtShow = new DataTable(); // _dtShow.Columns.AddRange(new DataColumn[] { new DataColumn("Property"), new DataColumn("Value") }); // this.gridControl1.DataSource = _dtShow; // ////IFeatureClass fc; // //Dictionary<DF2DFeatureClass, DataTable> dic = dialog.QueryDTByLayer; // //DataTable _dt = null; // //if (dialog.SelectFeatureClass != null) // //{ // // for (int i = 0; i < dialog.SelectFeatureClass.Count; i++) // // { // // this.cbLayer.Properties.Items.Add(dialog.SelectFeatureClass[i].GetFeatureClass().AliasName); // // } // // this.cbLayer.SelectedItem = this.cbLayer.Properties.Items[0]; // //} // //if (this.cbLayer.SelectedItem != null) // //{ // // foreach (KeyValuePair<DF2DFeatureClass, DataTable> v in dic) // // { // // if (v.Key.GetFeatureClass().AliasName == this.cbLayer.SelectedItem.ToString()) // // { // // _dt = v.Value; // // } // // continue; // // } // //} // //if (_dt != null) // //{ // // int _num = 1; // // ShowProperty(_dtShow, _dt, _num); // //} //} private void InitializeComponent() { DevExpress.XtraGrid.GridLevelNode gridLevelNode1 = new DevExpress.XtraGrid.GridLevelNode(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCPropertyInfo2D)); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.cbLayer = new DevExpress.XtraEditors.ComboBoxEdit(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); this.barManager1 = new DevExpress.XtraBars.BarManager(); this.bar1 = new DevExpress.XtraBars.Bar(); this.bbiFirst = new DevExpress.XtraBars.BarButtonItem(); this.bbiPreviousOne = new DevExpress.XtraBars.BarButtonItem(); this.bbiNextOne = new DevExpress.XtraBars.BarButtonItem(); this.bbiLastOne = new DevExpress.XtraBars.BarButtonItem(); this.bsiInfo = new DevExpress.XtraBars.BarStaticItem(); this.barDockControlTop = new DevExpress.XtraBars.BarDockControl(); this.barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); this.barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); this.barDockControlRight = new DevExpress.XtraBars.BarDockControl(); this.imageCollection1 = new DevExpress.Utils.ImageCollection(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cbLayer.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.barManager1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.cbLayer); this.layoutControl1.Controls.Add(this.gridControl1); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 31); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(327, 210, 543, 464); this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(284, 385); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // cbLayer // this.cbLayer.Location = new System.Drawing.Point(75, 2); this.cbLayer.Name = "cbLayer"; this.cbLayer.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cbLayer.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cbLayer.Size = new System.Drawing.Size(197, 22); this.cbLayer.StyleController = this.layoutControl1; this.cbLayer.TabIndex = 0; this.cbLayer.SelectedIndexChanged += new System.EventHandler(this.cbLayer_SelectedIndexChanged); // // gridControl1 // gridLevelNode1.RelationName = "Level1"; this.gridControl1.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] { gridLevelNode1 }); this.gridControl1.Location = new System.Drawing.Point(2, 28); this.gridControl1.MainView = this.gridView1; this.gridControl1.MenuManager = this.barManager1; this.gridControl1.Name = "gridControl1"; this.gridControl1.Size = new System.Drawing.Size(280, 345); this.gridControl1.TabIndex = 1; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 }); // // gridView1 // this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn1, this.gridColumn2 }); this.gridView1.GridControl = this.gridControl1; this.gridView1.IndicatorWidth = 30; this.gridView1.Name = "gridView1"; this.gridView1.OptionsView.ShowGroupPanel = false; // // gridColumn1 // this.gridColumn1.Caption = "属性"; this.gridColumn1.FieldName = "Property"; this.gridColumn1.Name = "gridColumn1"; this.gridColumn1.OptionsColumn.AllowEdit = false; this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 0; // // gridColumn2 // this.gridColumn2.Caption = "属性值"; this.gridColumn2.FieldName = "Value"; this.gridColumn2.Name = "gridColumn2"; this.gridColumn2.OptionsColumn.AllowEdit = false; this.gridColumn2.Visible = true; this.gridColumn2.VisibleIndex = 1; // // barManager1 // this.barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] { this.bar1 }); this.barManager1.DockControls.Add(this.barDockControlTop); this.barManager1.DockControls.Add(this.barDockControlBottom); this.barManager1.DockControls.Add(this.barDockControlLeft); this.barManager1.DockControls.Add(this.barDockControlRight); this.barManager1.Form = this; this.barManager1.Images = this.imageCollection1; this.barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { this.bbiFirst, this.bbiPreviousOne, this.bbiNextOne, this.bbiLastOne, this.bsiInfo }); this.barManager1.MaxItemId = 9; // // bar1 // this.bar1.BarName = "Tools"; this.bar1.DockCol = 0; this.bar1.DockRow = 0; this.bar1.DockStyle = DevExpress.XtraBars.BarDockStyle.Top; this.bar1.FloatLocation = new System.Drawing.Point(13, 164); this.bar1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(this.bbiFirst), new DevExpress.XtraBars.LinkPersistInfo(this.bbiPreviousOne), new DevExpress.XtraBars.LinkPersistInfo(this.bbiNextOne), new DevExpress.XtraBars.LinkPersistInfo(this.bbiLastOne), new DevExpress.XtraBars.LinkPersistInfo(this.bsiInfo) }); this.bar1.OptionsBar.AllowQuickCustomization = false; this.bar1.Text = "Tools"; // // bbiFirst // this.bbiFirst.Caption = "第一个"; this.bbiFirst.Id = 2; this.bbiFirst.ImageIndex = 0; this.bbiFirst.ImageIndexDisabled = 4; this.bbiFirst.Name = "bbiFirst"; this.bbiFirst.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbiFirst_ItemClick); // // bbiPreviousOne // this.bbiPreviousOne.Caption = "上一个"; this.bbiPreviousOne.Id = 3; this.bbiPreviousOne.ImageIndex = 1; this.bbiPreviousOne.ImageIndexDisabled = 5; this.bbiPreviousOne.Name = "bbiPreviousOne"; this.bbiPreviousOne.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbiPreviousOne_ItemClick); // // bbiNextOne // this.bbiNextOne.Caption = "下一个"; this.bbiNextOne.Id = 4; this.bbiNextOne.ImageIndex = 2; this.bbiNextOne.ImageIndexDisabled = 6; this.bbiNextOne.Name = "bbiNextOne"; this.bbiNextOne.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbiNextOne_ItemClick); // // bbiLastOne // this.bbiLastOne.Caption = "最后一个"; this.bbiLastOne.Id = 5; this.bbiLastOne.ImageIndex = 3; this.bbiLastOne.ImageIndexDisabled = 7; this.bbiLastOne.Name = "bbiLastOne"; this.bbiLastOne.ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(this.bbiLastOne_ItemClick); // // bsiInfo // this.bsiInfo.Caption = "浏览 0/0"; this.bsiInfo.Id = 8; this.bsiInfo.Name = "bsiInfo"; this.bsiInfo.TextAlignment = System.Drawing.StringAlignment.Near; // // barDockControlTop // this.barDockControlTop.CausesValidation = false; this.barDockControlTop.Dock = System.Windows.Forms.DockStyle.Top; this.barDockControlTop.Location = new System.Drawing.Point(0, 0); this.barDockControlTop.Size = new System.Drawing.Size(284, 31); // // barDockControlBottom // this.barDockControlBottom.CausesValidation = false; this.barDockControlBottom.Dock = System.Windows.Forms.DockStyle.Bottom; this.barDockControlBottom.Location = new System.Drawing.Point(0, 416); this.barDockControlBottom.Size = new System.Drawing.Size(284, 0); // // barDockControlLeft // this.barDockControlLeft.CausesValidation = false; this.barDockControlLeft.Dock = System.Windows.Forms.DockStyle.Left; this.barDockControlLeft.Location = new System.Drawing.Point(0, 31); this.barDockControlLeft.Size = new System.Drawing.Size(0, 385); // // barDockControlRight // this.barDockControlRight.CausesValidation = false; this.barDockControlRight.Dock = System.Windows.Forms.DockStyle.Right; this.barDockControlRight.Location = new System.Drawing.Point(284, 31); this.barDockControlRight.Size = new System.Drawing.Size(0, 385); // // imageCollection1 // this.imageCollection1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageCollection1.ImageStream"))); this.imageCollection1.InsertGalleryImage("first_16x16.png", "images/arrows/first_16x16.png", DevExpress.Images.ImageResourceCache.Default.GetImage("images/arrows/first_16x16.png"), 0); this.imageCollection1.Images.SetKeyName(0, "first_16x16.png"); this.imageCollection1.InsertGalleryImage("prev_16x16.png", "images/arrows/prev_16x16.png", DevExpress.Images.ImageResourceCache.Default.GetImage("images/arrows/prev_16x16.png"), 1); this.imageCollection1.Images.SetKeyName(1, "prev_16x16.png"); this.imageCollection1.InsertGalleryImage("next_16x16.png", "images/arrows/next_16x16.png", DevExpress.Images.ImageResourceCache.Default.GetImage("images/arrows/next_16x16.png"), 2); this.imageCollection1.Images.SetKeyName(2, "next_16x16.png"); this.imageCollection1.InsertGalleryImage("last_16x16.png", "images/arrows/last_16x16.png", DevExpress.Images.ImageResourceCache.Default.GetImage("images/arrows/last_16x16.png"), 3); this.imageCollection1.Images.SetKeyName(3, "last_16x16.png"); // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.emptySpaceItem1, this.layoutControlItem1, this.emptySpaceItem3, this.emptySpaceItem2, this.layoutControlItem3 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Size = new System.Drawing.Size(284, 385); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 375); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(284, 10); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem1 // this.layoutControlItem1.Control = this.gridControl1; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 26); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(284, 349); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; // // emptySpaceItem3 // this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(274, 0); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(10, 26); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(0, 0); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(10, 26); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem3 // this.layoutControlItem3.Control = this.cbLayer; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(10, 0); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(264, 26); this.layoutControlItem3.Text = "当前图层:"; this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); // // UCPropertyInfo2D // this.Controls.Add(this.layoutControl1); this.Controls.Add(this.barDockControlLeft); this.Controls.Add(this.barDockControlRight); this.Controls.Add(this.barDockControlBottom); this.Controls.Add(this.barDockControlTop); this.Name = "UCPropertyInfo2D"; this.Size = new System.Drawing.Size(284, 416); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.cbLayer.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.barManager1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.btnOK = new DevExpress.XtraEditors.SimpleButton(); this.txtLocationName = new DevExpress.XtraEditors.TextEdit(); this.cbGroups = new DevExpress.XtraEditors.ComboBoxEdit(); this.txtDuration = new DevExpress.XtraEditors.SpinEdit(); this.txtComment = new DevExpress.XtraEditors.MemoEdit(); this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.itemGroups = new DevExpress.XtraLayout.LayoutControlItem(); this.itemLocationName = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.itemComment = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.itemDuration = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.txtLocationName.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbGroups.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDuration.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtComment.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.itemGroups)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.itemLocationName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.itemComment)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.itemDuration)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.btnOK); this.layoutControl1.Controls.Add(this.txtLocationName); this.layoutControl1.Controls.Add(this.cbGroups); this.layoutControl1.Controls.Add(this.txtDuration); this.layoutControl1.Controls.Add(this.txtComment); this.layoutControl1.Controls.Add(this.btnCancel); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(288, 273); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // btnOK // this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Location = new System.Drawing.Point(12, 239); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(125, 22); this.btnOK.StyleController = this.layoutControl1; this.btnOK.TabIndex = 4; this.btnOK.Text = "确定"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // txtLocationName // this.txtLocationName.Location = new System.Drawing.Point(99, 51); this.txtLocationName.Name = "txtLocationName"; this.txtLocationName.Properties.MaxLength = 100; this.txtLocationName.Size = new System.Drawing.Size(177, 22); this.txtLocationName.StyleController = this.layoutControl1; this.txtLocationName.TabIndex = 1; this.txtLocationName.ToolTip = "特定场景名称字符数范围:1-100"; // // cbGroups // this.cbGroups.Location = new System.Drawing.Point(99, 12); this.cbGroups.Name = "cbGroups"; this.cbGroups.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cbGroups.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cbGroups.Size = new System.Drawing.Size(177, 22); this.cbGroups.StyleController = this.layoutControl1; this.cbGroups.TabIndex = 0; this.cbGroups.SelectedIndexChanged += new System.EventHandler(this.cbGroups_SelectedIndexChanged); // // txtDuration // this.txtDuration.EditValue = new decimal(new int[] { 5, 0, 0, 0 }); this.txtDuration.Location = new System.Drawing.Point(99, 196); this.txtDuration.Name = "txtDuration"; this.txtDuration.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.txtDuration.Properties.MaxValue = new decimal(new int[] { 65535, 0, 0, 0 }); this.txtDuration.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 0 }); this.txtDuration.Size = new System.Drawing.Size(177, 22); this.txtDuration.StyleController = this.layoutControl1; this.txtDuration.TabIndex = 3; this.txtDuration.ToolTip = "播放间隔必须是一个在1和65535之间的整数!"; // // txtComment // this.txtComment.Location = new System.Drawing.Point(99, 91); this.txtComment.Name = "txtComment"; this.txtComment.Properties.MaxLength = 256; this.txtComment.Size = new System.Drawing.Size(177, 89); this.txtComment.StyleController = this.layoutControl1; this.txtComment.TabIndex = 2; this.txtComment.ToolTip = "说明字符个数应在0-256之间"; this.txtComment.UseOptimizedRendering = true; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(141, 239); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(135, 22); this.btnCancel.StyleController = this.layoutControl1; this.btnCancel.TabIndex = 5; this.btnCancel.Text = "取消"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.itemGroups, this.itemLocationName, this.emptySpaceItem1, this.emptySpaceItem2, this.itemComment, this.emptySpaceItem3, this.emptySpaceItem4, this.layoutControlItem1, this.layoutControlItem2, this.itemDuration }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(288, 273); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // itemGroups // this.itemGroups.Control = this.cbGroups; this.itemGroups.CustomizationFormText = "特定场景组"; this.itemGroups.Location = new System.Drawing.Point(0, 0); this.itemGroups.Name = "itemGroups"; this.itemGroups.Size = new System.Drawing.Size(268, 26); this.itemGroups.Text = "新建特定场景组"; this.itemGroups.TextSize = new System.Drawing.Size(84, 14); // // itemLocationName // this.itemLocationName.Control = this.txtLocationName; this.itemLocationName.CustomizationFormText = "特定场景名称"; this.itemLocationName.Location = new System.Drawing.Point(0, 39); this.itemLocationName.Name = "itemLocationName"; this.itemLocationName.Size = new System.Drawing.Size(268, 26); this.itemLocationName.Text = "特定场景名称"; this.itemLocationName.TextSize = new System.Drawing.Size(84, 14); // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 26); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(268, 13); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(0, 65); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(268, 14); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // itemComment // this.itemComment.Control = this.txtComment; this.itemComment.CustomizationFormText = "说明"; this.itemComment.Location = new System.Drawing.Point(0, 79); this.itemComment.Name = "itemComment"; this.itemComment.Size = new System.Drawing.Size(268, 93); this.itemComment.Text = "说明"; this.itemComment.TextSize = new System.Drawing.Size(84, 14); // // emptySpaceItem3 // this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(0, 172); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(268, 12); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem4 // this.emptySpaceItem4.AllowHotTrack = false; this.emptySpaceItem4.CustomizationFormText = "emptySpaceItem4"; this.emptySpaceItem4.Location = new System.Drawing.Point(0, 210); this.emptySpaceItem4.Name = "emptySpaceItem4"; this.emptySpaceItem4.Size = new System.Drawing.Size(268, 17); this.emptySpaceItem4.Text = "emptySpaceItem4"; this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem1 // this.layoutControlItem1.Control = this.btnOK; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 227); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(129, 26); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; // // layoutControlItem2 // this.layoutControlItem2.Control = this.btnCancel; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(129, 227); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(139, 26); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // itemDuration // this.itemDuration.Control = this.txtDuration; this.itemDuration.CustomizationFormText = "itemDuration"; this.itemDuration.Location = new System.Drawing.Point(0, 184); this.itemDuration.Name = "itemDuration"; this.itemDuration.Size = new System.Drawing.Size(268, 26); this.itemDuration.Text = "播放间隔(秒)"; this.itemDuration.TextSize = new System.Drawing.Size(84, 14); // // FormCreateLocation // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(288, 273); this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(300, 300); this.MinimumSize = new System.Drawing.Size(290, 288); this.Name = "FormCreateLocation"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "新建特定场景"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.txtLocationName.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbGroups.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDuration.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtComment.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.itemGroups)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.itemLocationName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.itemComment)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.itemDuration)).EndInit(); this.ResumeLayout(false); }
private void InitializeQuery() { List <Sys_Schema> sys_Schemas = InitializeField(); if (gds.SelectedIndex < 0) { return; } GroupControl grid; if (gds.EditValue != null && gds.EditValue.GetType() == typeof(GroupControl)) { grid = (GroupControl)gds.EditValue; LayoutControl eLayoutControl = (LayoutControl)iDesignerHost.CreateComponent(typeof(LayoutControl), "lyc"); grid.Controls.Add(eLayoutControl); eLayoutControl.BeginUpdate(); LayoutControlGroup eLayoutControlGroup = new LayoutControlGroup(); eLayoutControlGroup.BeginUpdate(); eLayoutControl.Dock = System.Windows.Forms.DockStyle.Fill; eLayoutControl.Location = new System.Drawing.Point(2, 21); eLayoutControl.Name = "eLayoutControl"; eLayoutControl.Root = eLayoutControlGroup; eLayoutControl.Size = new System.Drawing.Size(1000, 500); eLayoutControl.TabIndex = 0; eLayoutControl.Text = "QueryLayout"; eLayoutControlGroup.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; eLayoutControlGroup.GroupBordersVisible = false; eLayoutControlGroup.Size = new Size(1000, 500); eLayoutControlGroup.Location = new Point(0, 0); eLayoutControlGroup.Name = "eLayoutControlGroup"; eLayoutControlGroup.TextVisible = false; List <BaseLayoutItem> baseLayoutItems = new List <BaseLayoutItem>(); int curLeft = 0; int curTop = 0; foreach (Sys_Schema sys_Schema in sys_Schemas) { try { string gn = string.Format("f{0}", sys_Schema.FieldName); BaseEdit baseEdit = null; if (sys_Schema.SqlDbType.Equals("bit")) { baseEdit = (CheckEdit)iDesignerHost.CreateComponent(typeof(CheckEdit), gn); baseEdit.Text = string.Empty; } else if (sys_Schema.SqlDbType.Equals("datetime")) { baseEdit = (DateEdit)iDesignerHost.CreateComponent(typeof(DateEdit), gn); } else { baseEdit = (TextEdit)iDesignerHost.CreateComponent(typeof(TextEdit), gn); } baseEdit.Width = 250; baseEdit.Properties.Appearance.Options.UseTextOptions = true; LayoutControlItem eLayoutControlItem = new LayoutControlItem(); eLayoutControlItem.Location = new System.Drawing.Point(curLeft, curTop); eLayoutControlItem.Name = "oli_" + sys_Schema.FieldName; eLayoutControlItem.Text = sys_Schema.Description; eLayoutControlItem.Size = new Size(baseEdit.Width, baseEdit.Height); eLayoutControlItem.Control = baseEdit; baseLayoutItems.Add(eLayoutControlItem); curLeft += baseEdit.Width; if (curLeft >= eLayoutControlGroup.Width) { curLeft = 0; curTop += baseEdit.Height; } } catch (Exception ex) { MessageBox.Show(ex.Message); } } if (curLeft < eLayoutControlGroup.Width && curLeft > 0) { EmptySpaceItem emptySpaceItem = new EmptySpaceItem(); emptySpaceItem.AllowHotTrack = false; emptySpaceItem.Location = new System.Drawing.Point(curLeft, curTop); emptySpaceItem.Name = "oli_Space"; emptySpaceItem.Size = new System.Drawing.Size(eLayoutControlGroup.Width - curLeft, 24); baseLayoutItems.Add(emptySpaceItem); } EmptySpaceItem emptyBottom = new EmptySpaceItem(); emptyBottom.AllowHotTrack = false; emptyBottom.Location = new System.Drawing.Point(0, curTop + 24); emptyBottom.Name = "oli_Space"; emptyBottom.Size = new System.Drawing.Size(eLayoutControlGroup.Width, 24); baseLayoutItems.Add(emptyBottom); eLayoutControlGroup.Items.AddRange(baseLayoutItems.ToArray()); eLayoutControlGroup.EndUpdate(); eLayoutControl.EndUpdate(); } }
/// <summary> /// Bind dynamic controls inside layout control /// </summary> public void BindControls() { #region Initialize if (Questionnaire == null) MessageBox.Show("Questionnaire must be bind with JSON first.", "Seminar Component"); var answerOpt = Questionnaire.Form.Settings.AnswerOptions[0] as ISeminar; if (SeminarScheduleDataSource == null) { if (answerOpt != null) { if (answerOpt.SeminarSchedule != null && answerOpt.SeminarSchedule.ScheduleValues.Count > 0) SeminarScheduleDataSource = answerOpt.SeminarSchedule.ScheduleValues; else { MessageBox.Show("\"SeminarScheduleDataSource\" property must be set first.", "Seminar Component"); return; } } else { MessageBox.Show("\"SeminarScheduleDataSource\" property must be set first.", "Seminar Component"); return; } } #endregion this.layoutControlGroupQuestion1.Clear(); Settings oSettings = Questionnaire.Form.Settings; // layoutControlGroupQuestion1 this.layoutControlGroupQuestion1.Name = "layoutControlGroupQuestion" + Guid.NewGuid().ToString(); this.layoutControlGroupQuestion1.AppearanceGroup.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.layoutControlGroupQuestion1.AppearanceGroup.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; this.layoutControlGroupQuestion1.AppearanceGroup.Options.UseFont = true; this.layoutControlGroupQuestion1.ExpandButtonVisible = true; //this.layoutControlGroupQuestion1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroupQuestion1.Padding = new DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10); this.layoutControlGroupQuestion1.ShowInCustomizationForm = false; this.layoutControlGroupQuestion1.Text = oSettings.Label + " " + oSettings.QuestionText; this.layoutControlGroupQuestion1.BeginUpdate(); IList<AnswerOption> answeroptionList = Questionnaire.Form.Settings.AnswerOptions; ISeminar answeroption = null; int iAnswerOptions = answeroptionList.Count; System.Drawing.Size newSize; int selectedIndex = 0; int idx = 0; for (int x = 0; x < iAnswerOptions; ++x) { answeroption = answeroptionList[x] as ISeminar; #region Seminar List // layoutControlItem1 this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); //lookUpEdit1 this.lookUpEdit1 = new LookUpEdit(); this.lookUpEdit1.Name = "lookUpEdit" + Guid.NewGuid().ToString(); this.lookUpEdit1.Properties.NullText = ""; this.lookUpEdit1.Properties.DisplayMember = "Name"; this.lookUpEdit1.Properties.ValueMember = "Id"; this.lookUpEdit1.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", "Seminars")); this.lookUpEdit1.Properties.ShowFooter = false; this.lookUpEdit1.Properties.ShowHeader = false; this.lookUpEdit1.ItemIndex = -1; this.lookUpEdit1.Tag = new SeminarData() { PositionIndex = "IndexPosition" + x, ControlContainer = layoutControlItem1 }; this.lookUpEdit1.Size = new System.Drawing.Size(155, 20); this.lookUpEdit1.StyleController = this.StyleController; this.lookUpEdit1.EditValueChanged += new EventHandler(lookUpEdit1_SelectedIndexChanged); this.lookUpEdit1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.lookUpEdit1.Properties.DataSource = SeminarScheduleDataSource; if (answeroption.SeminarSchedule != null && !string.IsNullOrEmpty(answeroption.SeminarSchedule.SelectedValue)) { this.lookUpEdit1.EditValue = answeroption.SeminarSchedule.SelectedValue; } else { selectedIndex = -1; } this.lookUpEdit1.ItemIndex = selectedIndex; // layoutControlItem1 this.layoutControlItem1.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem1.Control = this.lookUpEdit1; int hgt = 28; if (answeroption.SeminarSchedule != null && !string.IsNullOrEmpty(answeroption.SeminarSchedule.TextPrefix)) { this.layoutControlItem1.Text = answeroption.SeminarSchedule.TextPrefix; hgt += 20; } else { this.layoutControlItem1.TextVisible = false; } this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Top; this.layoutControlItem1.TextSize = new System.Drawing.Size(108, 13); this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.layoutControlItem1.MaxSize = new System.Drawing.Size(0, hgt); this.layoutControlItem1.MinSize = new System.Drawing.Size(0, hgt); this.layoutControlItem1.Size = new System.Drawing.Size(50, 28); this.layoutControlItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.layoutControlItem1); #endregion #region Customer Attendies //create our gridcontrol // // gridColumn1 // this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn1.Caption = "Attending"; this.gridColumn1.ColumnEdit = this.repositoryItemCheckEdit1; this.gridColumn1.FieldName = "Attending"; this.gridColumn1.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn1.Visible = true; this.gridColumn1.VisibleIndex = 0; this.gridColumn1.Width = 57; // // repositoryItemCheckEdit1 // this.repositoryItemCheckEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit(); this.repositoryItemCheckEdit1.AutoHeight = false; this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit" + Guid.NewGuid().ToString(); // // gridColumn2 // this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn2.Caption = "Name"; this.gridColumn2.FieldName = "Name"; this.gridColumn2.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn2.Visible = true; this.gridColumn2.OptionsColumn.AllowEdit = false; this.gridColumn2.VisibleIndex = 1; this.gridColumn2.Width = 66; // // gridColumn3 // this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn3.Caption = "Address"; this.gridColumn3.FieldName = "Address"; this.gridColumn3.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn3.Visible = true; this.gridColumn3.OptionsColumn.AllowEdit = false; this.gridColumn3.VisibleIndex = 2; this.gridColumn3.Width = 66; // // gridColumn4 // this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn4.Caption = "City"; this.gridColumn4.FieldName = "City"; this.gridColumn4.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn4.Visible = true; this.gridColumn4.OptionsColumn.AllowEdit = false; this.gridColumn4.VisibleIndex = 3; this.gridColumn4.Width = 66; // // gridColumn5 // this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn5.Caption = "Telephone"; this.gridColumn5.FieldName = "Telephone"; this.gridColumn5.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn5.Visible = true; this.gridColumn5.OptionsColumn.AllowEdit = false; this.gridColumn5.VisibleIndex = 4; this.gridColumn5.Width = 66; // // gridColumn6 // this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn6.Caption = "Email"; this.gridColumn6.FieldName = "Email"; this.gridColumn6.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn6.Visible = true; this.gridColumn6.OptionsColumn.AllowEdit = false; this.gridColumn6.VisibleIndex = 5; this.gridColumn6.Width = 70; // // gridColumn7 // this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn7.Caption = "AccountID"; this.gridColumn7.FieldName = "AccountID"; this.gridColumn7.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn7.Visible = false; // // gridColumn8 // this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn8.Caption = "ContactID"; this.gridColumn8.FieldName = "ContactID"; this.gridColumn8.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn8.Visible = false; // // gridView1 // this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn1, this.gridColumn2, this.gridColumn3, this.gridColumn4, this.gridColumn5, this.gridColumn6, this.gridColumn7, this.gridColumn8}); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView" + Guid.NewGuid().ToString(); this.gridView1.OptionsFind.AlwaysVisible = true; this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.OptionsView.ColumnAutoWidth = false; this.gridView1.CellValueChanging += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(gridView1_CellValueChanging); // // gridControl1 // this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl" + Guid.NewGuid().ToString(); this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemCheckEdit1}); this.gridControl1.Size = new System.Drawing.Size(412, 74); this.gridControl1.TabIndex = 11; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1}); BindAttendiesDatasource(); // // layoutControlItem2 // this.layoutControlItem2 = new LayoutControlItem(); this.layoutControlItem2.Control = this.gridControl1; this.layoutControlItem2.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem2.Text = answeroption.AttendiesLabel; this.layoutControlItem2.TextLocation = DevExpress.Utils.Locations.Top; this.layoutControlItem2.TextSize = new System.Drawing.Size(108, 13); this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.layoutControlItem2.MaxSize = new System.Drawing.Size(0, 200); this.layoutControlItem2.MinSize = new System.Drawing.Size(0, 200); this.layoutControlItem2.Size = new System.Drawing.Size(200, 200); this.layoutControlGroupQuestion1.AddItem(this.layoutControlItem2); // // simpleButton1 // this.simpleButton1 = new SimpleButton(); this.simpleButton1.Name = "simpleButton" + Guid.NewGuid().ToString(); this.simpleButton1.Size = new System.Drawing.Size(130, 22); this.simpleButton1.StyleController = this.StyleController; this.simpleButton1.Text = answeroption.AddContactButtonLabel; this.simpleButton1.Click += new EventHandler(simpleButton1_Click); // layoutControlItem2 this.layoutControlItem2 = new LayoutControlItem(); this.layoutControlItem2.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem2.Control = this.simpleButton1; this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.layoutControlItem2.MaxSize = new System.Drawing.Size(150, 24); this.layoutControlItem2.MinSize = new System.Drawing.Size(80, 24); this.layoutControlItem2.Size = new System.Drawing.Size(80, 24); this.layoutControlItem2.TextVisible = false; this.layoutControlItem2.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.layoutControlItem2); // // simpleButton1 // this.simpleButton1 = new SimpleButton(); this.simpleButton1.Name = "simpleButton" + Guid.NewGuid().ToString(); this.simpleButton1.Size = new System.Drawing.Size(130, 22); this.simpleButton1.StyleController = this.StyleController; this.simpleButton1.Text = "Refresh"; this.simpleButton1.Click += new EventHandler(simpleButton1Refresh_Click); // layoutControlItem1 this.layoutControlItem1 = new LayoutControlItem(); this.layoutControlItem1.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem1.Control = this.simpleButton1; this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.layoutControlItem1.MaxSize = new System.Drawing.Size(80, 24); this.layoutControlItem1.MinSize = new System.Drawing.Size(80, 24); this.layoutControlItem1.Size = new System.Drawing.Size(80, 24); this.layoutControlItem1.TextVisible = false; this.layoutControlItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.layoutControlItem1, this.layoutControlItem2, DevExpress.XtraLayout.Utils.InsertType.Right); // emptySpaceItem1 this.emptySpaceItem1 = new EmptySpaceItem(); this.emptySpaceItem1.Name = "emptySpaceItem" + Guid.NewGuid().ToString(); this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.emptySpaceItem1.MaxSize = new System.Drawing.Size(0, 20); this.emptySpaceItem1.MinSize = new System.Drawing.Size(0, 20); this.emptySpaceItem1.Size = new System.Drawing.Size(200, 20); this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.emptySpaceItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem1, this.layoutControlItem1, DevExpress.XtraLayout.Utils.InsertType.Right); #endregion #region Other Choices idx = 0; EmptySpaceItem esitem = new EmptySpaceItem(); esitem.Size = new Size(100, 20); this.layoutControlGroupQuestion1.AddItem(esitem); foreach (OtherChoice oChoice in answeroption.OtherChoices) { if (oChoice.Enabled) { if (!string.IsNullOrEmpty(oChoice.TextPrefix)) { // simpleLabelItem1 this.simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem(); this.simpleLabelItem1.Name = "simpleLabelItem" + Guid.NewGuid().ToString(); //this.simpleLabelItem1.ShowInCustomizationForm = false; //this.simpleLabelItem1.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.simpleLabelItem1.Text = oChoice.TextPrefix; //newSize = new System.Drawing.Size(100, 20); newSize = new System.Drawing.Size(20, 20); this.simpleLabelItem1.SizeConstraintsType = SizeConstraintsType.Custom; this.simpleLabelItem1.MaxSize = new Size(0, 0); this.simpleLabelItem1.MinSize = newSize; this.simpleLabelItem1.Size = newSize; this.simpleLabelItem1.AppearanceItemCaption.BackColor = System.Drawing.Color.Transparent; this.simpleLabelItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.simpleLabelItem1); } else { this.simpleLabelItem1 = null; } // layoutControlItem1 this.layoutControlItem1 = new LayoutControlItem(); //add textEdit1 to layout this.memoEdit1 = new MemoEdit(); this.memoEdit1.Tag = new SeminarData() { ParentPositionIndex = "IndexPosition" + x.ToString(), PositionIndex = "IndexPosition" + idx.ToString(), ControlContainer = layoutControlItem1 }; this.memoEdit1.Name = "textEdit" + Guid.NewGuid().ToString(); this.memoEdit1.Properties.ScrollBars = System.Windows.Forms.ScrollBars.None; this.memoEdit1.StyleController = this.StyleController; memoEdit1.TextChanged += new EventHandler(memoEdit1_TextChanged); memoEdit1.Click += new EventHandler(layoutControlGroupQuestion1_Click); if (string.IsNullOrEmpty(oChoice.InputValue)) { if (!string.IsNullOrEmpty(oChoice.DefaultInputValue)) { this.memoEdit1.Text = oChoice.DefaultInputValue.Trim(); memoEdit1_TextChanged(this.memoEdit1, null); } } else { this.memoEdit1.Text = oChoice.InputValue.Trim(); memoEdit1_TextChanged(this.memoEdit1, null); } this.layoutControlItem1.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem1.Control = this.memoEdit1; //int width = 0, height = 100; //if (!string.IsNullOrEmpty(oChoice.TextboxMaxWidth)) { // int.TryParse(oChoice.TextboxMaxWidth, out width); //} //if (!string.IsNullOrEmpty(oChoice.TextboxMaxHeight)) { // int.TryParse(oChoice.TextboxMaxHeight, out height); //} //newSize = new System.Drawing.Size(width, height); //this.layoutControlItem1.Size = new Size(200, 50); //this.layoutControlItem1.MaxSize = new Size(400, 50); //this.layoutControlItem1.MinSize = new Size(300, 50); this.layoutControlItem1.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem1.MinSize = new Size(0, 60); //this.layoutControlItem1.Text = oChoice.TextPrefix; this.layoutControlItem1.TextVisible = false; this.layoutControlItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); //if (this.simpleLabelItem1 != null) { // this.layoutControlGroupQuestion1.AddItem(this.layoutControlItem1,this.simpleLabelItem1, DevExpress.XtraLayout.Utils.InsertType.Right); //} else { this.layoutControlGroupQuestion1.AddItem(this.layoutControlItem1); //} idx++; } } #endregion } #region Footer string prioText = oSettings.Priority; if (oSettings.CustomerOwnership && oSettings.BVOwnership) { prioText += "(Cust+BV)"; } else if (oSettings.CustomerOwnership) { prioText += "(Cust)"; } else if (oSettings.BVOwnership) { prioText += "(BV)"; } if (oSettings.PlotDoneStatus.Trim().ToLower() == "done") { prioText += " Done"; } // simpleLabelItem1 status this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem1.Name = "simpleLabelItem" + Guid.NewGuid().ToString(); this.emptySpaceItem1.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.emptySpaceItem1.AppearanceItemCaption.Options.UseTextOptions = true; this.emptySpaceItem1.ShowInCustomizationForm = false; this.emptySpaceItem1.SizeConstraintsType = SizeConstraintsType.Custom; this.emptySpaceItem1.Text = prioText; this.emptySpaceItem1.TextVisible = true; this.emptySpaceItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem1); if (!string.IsNullOrEmpty(oSettings.QuestionHelp)) { this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem2.Name = "simpleLabelItem" + Guid.NewGuid().ToString(); this.emptySpaceItem2.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.emptySpaceItem2.AppearanceItemCaption.Options.UseTextOptions = true; this.emptySpaceItem2.ShowInCustomizationForm = false; this.emptySpaceItem2.Text = "Help"; this.emptySpaceItem2.OptionsToolTip.ToolTip = oSettings.QuestionHelp.Trim(); //apply tooltip controller from parent //if (this.ToolTipController != null && this.ToolTipController.DefaultController != null) { // this.emptySpaceItem2.OptionsToolTip.ToolTipController = ToolTipController.DefaultController; //} this.emptySpaceItem2.TextVisible = true; this.emptySpaceItem2.Size = new Size(50, 20); this.emptySpaceItem2.MaxSize = new Size(50, 20); this.emptySpaceItem2.MinSize = new Size(50, 20); this.emptySpaceItem2.SizeConstraintsType = SizeConstraintsType.Custom; this.emptySpaceItem2.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.emptySpaceItem2.AppearanceItemCaption.TextOptions.HAlignment = HorzAlignment.Far; this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem2, this.emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Right); } #endregion this.layoutControlGroupQuestion1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.EndUpdate(); Image bg = BGImage(this); if (bg != null) { this.layoutControlGroupQuestion1.BackgroundImage = bg; this.layoutControlGroupQuestion1.BackgroundImageVisible = true; } this.ControlGroup = this.layoutControlGroupQuestion1; this.ControlGroup.Tag = this; }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.spinEditWidth = new DevExpress.XtraEditors.SpinEdit(); this.radioGroup1 = new DevExpress.XtraEditors.RadioGroup(); this.txtFPS = new DevExpress.XtraEditors.SpinEdit(); this.btnBrowse = new DevExpress.XtraEditors.SimpleButton(); this.spinEditHeight = new DevExpress.XtraEditors.SpinEdit(); this.txtOpenFile = new DevExpress.XtraEditors.TextEdit(); this.btnOK = new DevExpress.XtraEditors.SimpleButton(); this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.spinEditWidth.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radioGroup1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtFPS.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditHeight.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOpenFile.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider1)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.spinEditWidth); this.layoutControl1.Controls.Add(this.radioGroup1); this.layoutControl1.Controls.Add(this.txtFPS); this.layoutControl1.Controls.Add(this.btnBrowse); this.layoutControl1.Controls.Add(this.spinEditHeight); this.layoutControl1.Controls.Add(this.txtOpenFile); this.layoutControl1.Controls.Add(this.btnOK); this.layoutControl1.Controls.Add(this.btnCancel); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(434, 178); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // spinEditWidth // this.spinEditWidth.EditValue = new decimal(new int[] { 1024, 0, 0, 0 }); this.spinEditWidth.Enabled = false; this.spinEditWidth.Location = new System.Drawing.Point(39, 118); this.spinEditWidth.Name = "spinEditWidth"; this.spinEditWidth.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditWidth.Properties.MaxValue = new decimal(new int[] { 10000000, 0, 0, 0 }); this.spinEditWidth.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditWidth.Size = new System.Drawing.Size(176, 22); this.spinEditWidth.StyleController = this.layoutControl1; this.spinEditWidth.TabIndex = 4; // // radioGroup1 // this.radioGroup1.EditValue = 0; this.radioGroup1.Location = new System.Drawing.Point(39, 12); this.radioGroup1.Name = "radioGroup1"; this.radioGroup1.Properties.Items.AddRange(new DevExpress.XtraEditors.Controls.RadioGroupItem[] { new DevExpress.XtraEditors.Controls.RadioGroupItem(0, "视频"), new DevExpress.XtraEditors.Controls.RadioGroupItem(1, "序列帧") }); this.radioGroup1.Size = new System.Drawing.Size(383, 50); this.radioGroup1.StyleController = this.layoutControl1; this.radioGroup1.TabIndex = 0; this.radioGroup1.SelectedIndexChanged += new System.EventHandler(this.radioGroup1_SelectedIndexChanged); // // txtFPS // this.txtFPS.EditValue = new decimal(new int[] { 25, 0, 0, 0 }); this.txtFPS.Location = new System.Drawing.Point(39, 92); this.txtFPS.Name = "txtFPS"; this.txtFPS.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.txtFPS.Properties.MaxValue = new decimal(new int[] { 30, 0, 0, 0 }); this.txtFPS.Properties.MinValue = new decimal(new int[] { 20, 0, 0, 0 }); this.txtFPS.Size = new System.Drawing.Size(383, 22); this.txtFPS.StyleController = this.layoutControl1; this.txtFPS.TabIndex = 3; this.txtFPS.ToolTip = "请输入20~30之间的数"; this.txtFPS.Validating += new System.ComponentModel.CancelEventHandler(this.txtFPS_Validating); // // btnBrowse // this.btnBrowse.Location = new System.Drawing.Point(351, 66); this.btnBrowse.Name = "btnBrowse"; this.btnBrowse.Size = new System.Drawing.Size(71, 22); this.btnBrowse.StyleController = this.layoutControl1; this.btnBrowse.TabIndex = 2; this.btnBrowse.Text = "浏览"; this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click); // // spinEditHeight // this.spinEditHeight.EditValue = new decimal(new int[] { 1024, 0, 0, 0 }); this.spinEditHeight.Enabled = false; this.spinEditHeight.Location = new System.Drawing.Point(246, 118); this.spinEditHeight.Name = "spinEditHeight"; this.spinEditHeight.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditHeight.Properties.MaxValue = new decimal(new int[] { 10000000, 0, 0, 0 }); this.spinEditHeight.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditHeight.Size = new System.Drawing.Size(176, 22); this.spinEditHeight.StyleController = this.layoutControl1; this.spinEditHeight.TabIndex = 5; // // txtOpenFile // this.txtOpenFile.Location = new System.Drawing.Point(39, 66); this.txtOpenFile.Name = "txtOpenFile"; this.txtOpenFile.Size = new System.Drawing.Size(308, 22); this.txtOpenFile.StyleController = this.layoutControl1; this.txtOpenFile.TabIndex = 1; // // btnOK // this.btnOK.Location = new System.Drawing.Point(206, 144); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(86, 22); this.btnOK.StyleController = this.layoutControl1; this.btnOK.TabIndex = 6; this.btnOK.Text = "确定"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(306, 144); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(88, 22); this.btnCancel.StyleController = this.layoutControl1; this.btnCancel.TabIndex = 7; this.btnCancel.Text = "取消"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem5, this.emptySpaceItem1, this.emptySpaceItem2, this.layoutControlItem6, this.emptySpaceItem3, this.layoutControlItem4, this.layoutControlItem7, this.layoutControlItem8 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "Root"; this.layoutControlGroup1.Size = new System.Drawing.Size(434, 178); this.layoutControlGroup1.Text = "Root"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.txtOpenFile; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 54); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(339, 26); this.layoutControlItem1.Text = "位置"; this.layoutControlItem1.TextSize = new System.Drawing.Size(24, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.btnBrowse; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(339, 54); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(75, 26); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // layoutControlItem3 // this.layoutControlItem3.Control = this.txtFPS; this.layoutControlItem3.CustomizationFormText = "帧数"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 80); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(414, 26); this.layoutControlItem3.Text = "帧数"; this.layoutControlItem3.TextSize = new System.Drawing.Size(24, 14); // // layoutControlItem5 // this.layoutControlItem5.Control = this.btnOK; this.layoutControlItem5.CustomizationFormText = "layoutControlItem5"; this.layoutControlItem5.Location = new System.Drawing.Point(194, 132); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(90, 26); this.layoutControlItem5.Text = "layoutControlItem5"; this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextToControlDistance = 0; this.layoutControlItem5.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 132); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(194, 26); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(284, 132); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(10, 26); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem6 // this.layoutControlItem6.Control = this.btnCancel; this.layoutControlItem6.CustomizationFormText = "layoutControlItem6"; this.layoutControlItem6.Location = new System.Drawing.Point(294, 132); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(92, 26); this.layoutControlItem6.Text = "layoutControlItem6"; this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem6.TextToControlDistance = 0; this.layoutControlItem6.TextVisible = false; // // emptySpaceItem3 // this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(386, 132); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(28, 26); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem4 // this.layoutControlItem4.Control = this.radioGroup1; this.layoutControlItem4.CustomizationFormText = "类型"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 0); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(414, 54); this.layoutControlItem4.Text = "类型"; this.layoutControlItem4.TextSize = new System.Drawing.Size(24, 14); // // layoutControlItem7 // this.layoutControlItem7.Control = this.spinEditWidth; this.layoutControlItem7.CustomizationFormText = "宽度"; this.layoutControlItem7.Location = new System.Drawing.Point(0, 106); this.layoutControlItem7.Name = "layoutControlItem7"; this.layoutControlItem7.Size = new System.Drawing.Size(207, 26); this.layoutControlItem7.Text = "宽度"; this.layoutControlItem7.TextSize = new System.Drawing.Size(24, 14); // // layoutControlItem8 // this.layoutControlItem8.Control = this.spinEditHeight; this.layoutControlItem8.CustomizationFormText = "高度"; this.layoutControlItem8.Location = new System.Drawing.Point(207, 106); this.layoutControlItem8.Name = "layoutControlItem8"; this.layoutControlItem8.Size = new System.Drawing.Size(207, 26); this.layoutControlItem8.Text = "高度"; this.layoutControlItem8.TextSize = new System.Drawing.Size(24, 14); // // dxErrorProvider1 // this.dxErrorProvider1.ContainerControl = this; // // ExportVideoDlg // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(434, 178); this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "ExportVideoDlg"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "导出视频(序列帧图)"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.spinEditWidth.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radioGroup1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtFPS.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditHeight.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtOpenFile.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dxErrorProvider1)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.dateEdit1 = new DevExpress.XtraEditors.DateEdit(); this.btnOK = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties.CalendarTimeProperties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.dateEdit1); this.layoutControl1.Controls.Add(this.btnOK); this.layoutControl1.Controls.Add(this.simpleButton2); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(305, 73); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // dateEdit1 // this.dateEdit1.EditValue = new System.DateTime(2018, 1, 31, 0, 0, 0, 0); this.dateEdit1.Location = new System.Drawing.Point(75, 12); this.dateEdit1.Name = "dateEdit1"; this.dateEdit1.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.False; this.dateEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.dateEdit1.Properties.CalendarTimeEditing = DevExpress.Utils.DefaultBoolean.True; this.dateEdit1.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.dateEdit1.Properties.CalendarView = DevExpress.XtraEditors.Repository.CalendarView.Vista; this.dateEdit1.Properties.DisplayFormat.FormatString = "F"; this.dateEdit1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.dateEdit1.Properties.EditFormat.FormatString = "F"; this.dateEdit1.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.dateEdit1.Properties.Mask.EditMask = "F"; this.dateEdit1.Properties.VistaDisplayMode = DevExpress.Utils.DefaultBoolean.True; this.dateEdit1.Size = new System.Drawing.Size(218, 22); this.dateEdit1.StyleController = this.layoutControl1; this.dateEdit1.TabIndex = 7; // // btnOK // this.btnOK.Location = new System.Drawing.Point(48, 38); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(103, 22); this.btnOK.StyleController = this.layoutControl1; this.btnOK.TabIndex = 5; this.btnOK.Text = "确定"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // simpleButton2 // this.simpleButton2.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.simpleButton2.Location = new System.Drawing.Point(175, 38); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(108, 22); this.simpleButton2.StyleController = this.layoutControl1; this.simpleButton2.TabIndex = 6; this.simpleButton2.Text = "取消"; this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem2, this.layoutControlItem4, this.layoutControlItem3, this.emptySpaceItem1, this.emptySpaceItem2, this.emptySpaceItem3 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(305, 73); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem2 // this.layoutControlItem2.Control = this.btnOK; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(36, 26); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(107, 27); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // layoutControlItem4 // this.layoutControlItem4.Control = this.dateEdit1; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 0); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(285, 26); this.layoutControlItem4.Text = "设置时间:"; this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.simpleButton2; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(163, 26); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(112, 27); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(275, 26); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(10, 27); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(0, 26); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(36, 27); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem3 // this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(143, 26); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(20, 27); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // DateSettingDialog // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.simpleButton2; this.ClientSize = new System.Drawing.Size(305, 73); this.ControlBox = false; this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "DateSettingDialog"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "时间设置"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties.CalendarTimeProperties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(ФормаВыбораТеста)); this.layoutControl1 = new LayoutControl(); this.button_отмена = new SimpleButton(); this.gridControl_тесты = new GridControl(); this.gridView = new GridView(); this.gridColumn_Наименование = new GridColumn(); this.gridColumn_проверить = new GridColumn(); this.repositoryItemCheckEdit_выбрать = new RepositoryItemCheckEdit(); this.button_ok = new SimpleButton(); this.layoutControlGroup1 = new LayoutControlGroup(); this.layoutControlItem1 = new LayoutControlItem(); this.emptySpaceItem1 = new EmptySpaceItem(); this.layoutControlItem3 = new LayoutControlItem(); this.layoutControlItem2 = new LayoutControlItem(); this.emptySpaceItem2 = new EmptySpaceItem(); this.layoutControl1.BeginInit(); this.layoutControl1.SuspendLayout(); this.gridControl_тесты.BeginInit(); this.gridView.BeginInit(); this.repositoryItemCheckEdit_выбрать.BeginInit(); this.layoutControlGroup1.BeginInit(); this.layoutControlItem1.BeginInit(); this.emptySpaceItem1.BeginInit(); this.layoutControlItem3.BeginInit(); this.layoutControlItem2.BeginInit(); this.emptySpaceItem2.BeginInit(); base.SuspendLayout(); this.layoutControl1.Controls.Add(this.button_отмена); this.layoutControl1.Controls.Add(this.gridControl_тесты); this.layoutControl1.Controls.Add(this.button_ok); 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(0x25a, 0x169); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; this.button_отмена.DialogResult = DialogResult.Cancel; this.button_отмена.Location = new Point(0x1ec, 0x14d); this.button_отмена.Name = "button_отмена"; this.button_отмена.Size = new Size(0x68, 0x16); this.button_отмена.StyleController = this.layoutControl1; this.button_отмена.TabIndex = 7; this.button_отмена.Text = "Отмена"; this.gridControl_тесты.EmbeddedNavigator.Name = ""; this.gridControl_тесты.Location = new Point(7, 0x24); this.gridControl_тесты.MainView = this.gridView; this.gridControl_тесты.Name = "gridControl_тесты"; this.gridControl_тесты.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemCheckEdit_выбрать }); this.gridControl_тесты.Size = new Size(0x24d, 0x11e); this.gridControl_тесты.TabIndex = 4; this.gridControl_тесты.ViewCollection.AddRange(new BaseView[] { this.gridView }); this.gridView.Columns.AddRange(new GridColumn[] { this.gridColumn_Наименование, this.gridColumn_проверить }); this.gridView.GridControl = this.gridControl_тесты; this.gridView.Name = "gridView"; this.gridView.OptionsCustomization.AllowFilter = false; this.gridView.OptionsCustomization.AllowGroup = false; this.gridView.OptionsCustomization.AllowRowSizing = true; this.gridView.OptionsDetail.EnableMasterViewMode = false; this.gridView.OptionsView.ShowIndicator = false; this.gridView.CustomUnboundColumnData += new CustomColumnDataEventHandler(this.gridView_CustomUnboundColumnData); this.gridColumn_Наименование.Caption = "Наименование"; this.gridColumn_Наименование.FieldName = "Наименование"; this.gridColumn_Наименование.Name = "gridColumn_Наименование"; this.gridColumn_Наименование.OptionsColumn.AllowEdit = false; this.gridColumn_Наименование.OptionsColumn.ReadOnly = true; this.gridColumn_Наименование.Visible = true; this.gridColumn_Наименование.VisibleIndex = 1; this.gridColumn_Наименование.Width = 0x3a1; this.gridColumn_проверить.Caption = "Проверить"; this.gridColumn_проверить.ColumnEdit = this.repositoryItemCheckEdit_выбрать; this.gridColumn_проверить.FieldName = "gridColumn_проверить"; this.gridColumn_проверить.Name = "gridColumn_проверить"; this.gridColumn_проверить.UnboundType = UnboundColumnType.Boolean; this.gridColumn_проверить.Visible = true; this.gridColumn_проверить.VisibleIndex = 0; this.gridColumn_проверить.Width = 0x97; this.repositoryItemCheckEdit_выбрать.AutoHeight = false; this.repositoryItemCheckEdit_выбрать.Name = "repositoryItemCheckEdit_выбрать"; this.repositoryItemCheckEdit_выбрать.NullStyle = StyleIndeterminate.Inactive; this.button_ok.DialogResult = DialogResult.OK; this.button_ok.Location = new Point(0x179, 0x14d); this.button_ok.Name = "button_ok"; this.button_ok.Size = new Size(0x68, 0x16); this.button_ok.StyleController = this.layoutControl1; this.button_ok.TabIndex = 6; this.button_ok.Text = "OK"; this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1, this.emptySpaceItem1, this.layoutControlItem3, this.layoutControlItem2, this.emptySpaceItem2 }); this.layoutControlGroup1.Location = new Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new Size(0x25a, 0x169); this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; this.layoutControlItem1.Control = this.gridControl_тесты; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new Point(0, 0x1d); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new Size(600, 0x129); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextLocation = Locations.Left; this.layoutControlItem1.TextSize = new Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new Point(0, 0x146); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new Size(370, 0x21); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new Size(0, 0); this.layoutControlItem3.Control = this.button_ok; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new Point(370, 0x146); this.layoutControlItem3.MaxSize = new Size(0x73, 0x21); this.layoutControlItem3.MinSize = new Size(0x73, 0x21); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new Size(0x73, 0x21); this.layoutControlItem3.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextLocation = Locations.Left; this.layoutControlItem3.TextSize = new Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; this.layoutControlItem2.Control = this.button_отмена; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new Point(0x1e5, 0x146); this.layoutControlItem2.MaxSize = new Size(0x73, 0x21); this.layoutControlItem2.MinSize = new Size(0x73, 0x21); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new Size(0x73, 0x21); this.layoutControlItem2.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextLocation = Locations.Left; this.layoutControlItem2.TextSize = new Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; this.emptySpaceItem2.CustomizationFormText = "Выберите тест для проверки :"; this.emptySpaceItem2.Location = new Point(0, 0); this.emptySpaceItem2.MaxSize = new Size(0, 0x1d); this.emptySpaceItem2.MinSize = new Size(10, 0x1d); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new Size(600, 0x1d); this.emptySpaceItem2.SizeConstraintsType = SizeConstraintsType.Custom; this.emptySpaceItem2.Text = "Выберите один или несколько тестов для проверки :"; this.emptySpaceItem2.TextSize = new Size(0, 20); this.emptySpaceItem2.TextVisible = true; base.AcceptButton = this.button_ok; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.CancelButton = this.button_отмена; base.ClientSize = new Size(0x25a, 0x169); base.Controls.Add(this.layoutControl1); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.Name = "ФормаВыбораТеста"; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Выбор теста формы"; base.FormClosing += new FormClosingEventHandler(this.ФормаВыбораТеста_FormClosing); base.Load += new EventHandler(this.ФормаВыбораТеста_Load); this.layoutControl1.EndInit(); this.layoutControl1.ResumeLayout(false); this.gridControl_тесты.EndInit(); this.gridView.EndInit(); this.repositoryItemCheckEdit_выбрать.EndInit(); this.layoutControlGroup1.EndInit(); this.layoutControlItem1.EndInit(); this.emptySpaceItem1.EndInit(); this.layoutControlItem3.EndInit(); this.layoutControlItem2.EndInit(); this.emptySpaceItem2.EndInit(); base.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(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmTrialXtraLayoutControl)); this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components); this.imageCollection1 = new DevExpress.Utils.ImageCollection(this.components); this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl(); this.checkEdit1 = new DevExpress.XtraEditors.CheckEdit(); this.filename = new DevExpress.XtraEditors.TextEdit(); this.btnSave = new DevExpress.XtraEditors.SimpleButton(); this.btnLoad = new DevExpress.XtraEditors.SimpleButton(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); this.dsFile = new DevExpress.XtraEditors.ComboBoxEdit(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.userCtrl_DieuKienLoc1 = new XtralayoutControl.chautv.UserCtrl_DieuKienLoc(); this.NgaySinh = new DevExpress.XtraEditors.DateEdit(); this.NgheNghiep = new DevExpress.XtraEditors.ComboBoxEdit(); this.TenNuoc = new DevExpress.XtraEditors.ComboBoxEdit(); this.NoiSinh = new DevExpress.XtraEditors.TextEdit(); this.txt_HoTen = new DevExpress.XtraEditors.TextEdit(); this.dataNavigator1 = new DevExpress.XtraEditors.DataNavigator(); this.ThongTinThem = new DevExpress.XtraEditors.MemoEdit(); this.pictureEditHinhAnh = new DevExpress.XtraEditors.PictureEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); this.splitterItem2 = new DevExpress.XtraLayout.SplitterItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.xtraUserControlLayout1 = new pl.fw.layout.test.XtraUserControlLayout(); ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit(); this.splitContainerControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.filename.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsFile.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.NgaySinh.Properties.VistaTimeProperties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.NgaySinh.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.NgheNghiep.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.TenNuoc.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.NoiSinh.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txt_HoTen.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ThongTinThem.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEditHinhAnh.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); this.SuspendLayout(); // // defaultLookAndFeel1 // this.defaultLookAndFeel1.LookAndFeel.SkinName = "Money Twins"; // // imageCollection1 // this.imageCollection1.ImageStream = ((DevExpress.Utils.ImageCollectionStreamer)(resources.GetObject("imageCollection1.ImageStream"))); // // splitContainerControl1 // this.splitContainerControl1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly; this.splitContainerControl1.Dock = System.Windows.Forms.DockStyle.Bottom; this.splitContainerControl1.Horizontal = false; this.splitContainerControl1.Location = new System.Drawing.Point(0, 176); this.splitContainerControl1.Name = "splitContainerControl1"; this.splitContainerControl1.Panel1.Controls.Add(this.checkEdit1); this.splitContainerControl1.Panel1.Controls.Add(this.filename); this.splitContainerControl1.Panel1.Controls.Add(this.btnSave); this.splitContainerControl1.Panel1.Controls.Add(this.btnLoad); this.splitContainerControl1.Panel1.Controls.Add(this.labelControl2); this.splitContainerControl1.Panel1.Controls.Add(this.labelControl1); this.splitContainerControl1.Panel1.Controls.Add(this.dsFile); this.splitContainerControl1.Panel1.Text = "Panel1"; this.splitContainerControl1.Panel2.Controls.Add(this.layoutControl1); this.splitContainerControl1.Panel2.Text = "Panel2"; this.splitContainerControl1.Size = new System.Drawing.Size(827, 451); this.splitContainerControl1.SplitterPosition = 92; this.splitContainerControl1.TabIndex = 0; this.splitContainerControl1.Text = "splitContainerControl1"; // // checkEdit1 // this.checkEdit1.Location = new System.Drawing.Point(26, 64); this.checkEdit1.Name = "checkEdit1"; this.checkEdit1.Properties.Caption = "Thiết kế"; this.checkEdit1.Size = new System.Drawing.Size(75, 18); this.checkEdit1.TabIndex = 5; this.checkEdit1.CheckedChanged += new System.EventHandler(this.checkEdit1_CheckedChanged); // // filename // this.filename.Location = new System.Drawing.Point(373, 37); this.filename.Name = "filename"; this.filename.Size = new System.Drawing.Size(108, 20); this.filename.TabIndex = 4; // // btnSave // this.btnSave.Location = new System.Drawing.Point(487, 34); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(61, 24); this.btnSave.TabIndex = 3; this.btnSave.Text = "Save"; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // btnLoad // this.btnLoad.Location = new System.Drawing.Point(238, 34); this.btnLoad.Name = "btnLoad"; this.btnLoad.Size = new System.Drawing.Size(61, 23); this.btnLoad.TabIndex = 2; this.btnLoad.Text = "Load"; this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click); // // labelControl2 // this.labelControl2.Location = new System.Drawing.Point(309, 41); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(52, 13); this.labelControl2.TabIndex = 1; this.labelControl2.Text = "File name :"; // // labelControl1 // this.labelControl1.Location = new System.Drawing.Point(28, 40); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(47, 13); this.labelControl1.TabIndex = 1; this.labelControl1.Text = "Load file :"; // // dsFile // this.dsFile.Location = new System.Drawing.Point(81, 36); this.dsFile.Name = "dsFile"; this.dsFile.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.dsFile.Size = new System.Drawing.Size(151, 20); this.dsFile.TabIndex = 0; // // layoutControl1 // this.layoutControl1.Controls.Add(this.userCtrl_DieuKienLoc1); this.layoutControl1.Controls.Add(this.NgaySinh); this.layoutControl1.Controls.Add(this.NgheNghiep); this.layoutControl1.Controls.Add(this.TenNuoc); this.layoutControl1.Controls.Add(this.NoiSinh); this.layoutControl1.Controls.Add(this.txt_HoTen); this.layoutControl1.Controls.Add(this.dataNavigator1); this.layoutControl1.Controls.Add(this.ThongTinThem); this.layoutControl1.Controls.Add(this.pictureEditHinhAnh); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.OptionsCustomizationForm.ShowPropertyGrid = true; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(821, 347); this.layoutControl1.TabIndex = 2; this.layoutControl1.Text = "layoutControl1"; // // userCtrl_DieuKienLoc1 // this.userCtrl_DieuKienLoc1.Location = new System.Drawing.Point(11, 29); this.userCtrl_DieuKienLoc1.Name = "userCtrl_DieuKienLoc1"; this.userCtrl_DieuKienLoc1.Size = new System.Drawing.Size(800, 66); this.userCtrl_DieuKienLoc1.TabIndex = 21; // // NgaySinh // this.NgaySinh.EditValue = null; this.NgaySinh.Location = new System.Drawing.Point(404, 140); this.NgaySinh.Name = "NgaySinh"; this.NgaySinh.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.NgaySinh.Properties.VistaTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.NgaySinh.Size = new System.Drawing.Size(274, 20); this.NgaySinh.StyleController = this.layoutControl1; this.NgaySinh.TabIndex = 20; // // NgheNghiep // this.NgheNghiep.Location = new System.Drawing.Point(404, 233); this.NgheNghiep.Name = "NgheNghiep"; this.NgheNghiep.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.NgheNghiep.Size = new System.Drawing.Size(274, 20); this.NgheNghiep.StyleController = this.layoutControl1; this.NgheNghiep.TabIndex = 19; // // TenNuoc // this.TenNuoc.Location = new System.Drawing.Point(404, 202); this.TenNuoc.Name = "TenNuoc"; this.TenNuoc.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.TenNuoc.Size = new System.Drawing.Size(274, 20); this.TenNuoc.StyleController = this.layoutControl1; this.TenNuoc.TabIndex = 18; // // NoiSinh // this.NoiSinh.Location = new System.Drawing.Point(404, 171); this.NoiSinh.Name = "NoiSinh"; this.NoiSinh.Size = new System.Drawing.Size(410, 20); this.NoiSinh.StyleController = this.layoutControl1; this.NoiSinh.TabIndex = 17; // // txt_HoTen // this.txt_HoTen.Location = new System.Drawing.Point(404, 109); this.txt_HoTen.Name = "txt_HoTen"; this.txt_HoTen.Size = new System.Drawing.Size(410, 20); this.txt_HoTen.StyleController = this.layoutControl1; this.txt_HoTen.TabIndex = 15; // // dataNavigator1 // this.dataNavigator1.Location = new System.Drawing.Point(371, 321); this.dataNavigator1.Name = "dataNavigator1"; this.dataNavigator1.Size = new System.Drawing.Size(443, 19); this.dataNavigator1.StyleController = this.layoutControl1; this.dataNavigator1.TabIndex = 14; this.dataNavigator1.Text = "dataNavigator1"; // // ThongTinThem // this.ThongTinThem.Location = new System.Drawing.Point(11, 291); this.ThongTinThem.Name = "ThongTinThem"; this.ThongTinThem.Size = new System.Drawing.Size(800, 16); this.ThongTinThem.StyleController = this.layoutControl1; this.ThongTinThem.TabIndex = 12; // // pictureEditHinhAnh // this.pictureEditHinhAnh.Location = new System.Drawing.Point(8, 109); this.pictureEditHinhAnh.Name = "pictureEditHinhAnh"; this.pictureEditHinhAnh.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom; this.pictureEditHinhAnh.Size = new System.Drawing.Size(299, 144); this.pictureEditHinhAnh.StyleController = this.layoutControl1; this.pictureEditHinhAnh.TabIndex = 4; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.splitterItem1, this.splitterItem2, this.emptySpaceItem1, this.layoutControlItem11, this.emptySpaceItem2, this.layoutControlItem7, this.layoutControlItem4, this.emptySpaceItem3, this.layoutControlItem8, this.emptySpaceItem4, this.layoutControlItem6, this.layoutControlGroup2, this.layoutControlItem5, this.layoutControlGroup3}); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(821, 347); this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.pictureEditHinhAnh; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 101); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(310, 155); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextLocation = DevExpress.Utils.Locations.Left; this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; // // splitterItem1 // this.splitterItem1.CustomizationFormText = "splitterItem1"; this.splitterItem1.Location = new System.Drawing.Point(310, 101); this.splitterItem1.Name = "splitterItem1"; this.splitterItem1.Size = new System.Drawing.Size(6, 155); // // splitterItem2 // this.splitterItem2.CustomizationFormText = "splitterItem2"; this.splitterItem2.Location = new System.Drawing.Point(0, 256); this.splitterItem2.Name = "splitterItem2"; this.splitterItem2.Size = new System.Drawing.Size(817, 6); // // emptySpaceItem1 // this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(681, 225); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(136, 31); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem11 // this.layoutControlItem11.Control = this.dataNavigator1; this.layoutControlItem11.CustomizationFormText = "layoutControlItem11"; this.layoutControlItem11.Location = new System.Drawing.Point(363, 313); this.layoutControlItem11.Name = "layoutControlItem11"; this.layoutControlItem11.Size = new System.Drawing.Size(454, 30); this.layoutControlItem11.Text = "layoutControlItem11"; this.layoutControlItem11.TextLocation = DevExpress.Utils.Locations.Left; this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem11.TextToControlDistance = 0; this.layoutControlItem11.TextVisible = false; // // emptySpaceItem2 // this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(0, 313); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(363, 30); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem7 // this.layoutControlItem7.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.layoutControlItem7.AppearanceItemCaption.Options.UseFont = true; this.layoutControlItem7.AppearanceItemCaption.Options.UseTextOptions = true; this.layoutControlItem7.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.layoutControlItem7.Control = this.NgheNghiep; this.layoutControlItem7.CustomizationFormText = "Job :"; this.layoutControlItem7.Location = new System.Drawing.Point(316, 225); this.layoutControlItem7.Name = "layoutControlItem7"; this.layoutControlItem7.Size = new System.Drawing.Size(365, 31); this.layoutControlItem7.Text = "Nghề nghiệp :"; this.layoutControlItem7.TextLocation = DevExpress.Utils.Locations.Left; this.layoutControlItem7.TextSize = new System.Drawing.Size(75, 20); // // layoutControlItem4 // this.layoutControlItem4.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.layoutControlItem4.AppearanceItemCaption.Options.UseFont = true; this.layoutControlItem4.AppearanceItemCaption.Options.UseTextOptions = true; this.layoutControlItem4.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.layoutControlItem4.Control = this.NoiSinh; this.layoutControlItem4.CustomizationFormText = "Place birthday :"; this.layoutControlItem4.Location = new System.Drawing.Point(316, 163); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(501, 31); this.layoutControlItem4.Text = "Nơi sinh :"; this.layoutControlItem4.TextLocation = DevExpress.Utils.Locations.Left; this.layoutControlItem4.TextSize = new System.Drawing.Size(75, 20); // // emptySpaceItem3 // this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(681, 132); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(136, 31); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem8 // this.layoutControlItem8.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.layoutControlItem8.AppearanceItemCaption.Options.UseFont = true; this.layoutControlItem8.AppearanceItemCaption.Options.UseTextOptions = true; this.layoutControlItem8.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.layoutControlItem8.Control = this.NgaySinh; this.layoutControlItem8.CustomizationFormText = "layoutControlItem8"; this.layoutControlItem8.Location = new System.Drawing.Point(316, 132); this.layoutControlItem8.Name = "layoutControlItem8"; this.layoutControlItem8.Size = new System.Drawing.Size(365, 31); this.layoutControlItem8.Text = "Ngày sinh :"; this.layoutControlItem8.TextLocation = DevExpress.Utils.Locations.Left; this.layoutControlItem8.TextSize = new System.Drawing.Size(75, 20); // // emptySpaceItem4 // this.emptySpaceItem4.CustomizationFormText = "emptySpaceItem4"; this.emptySpaceItem4.Location = new System.Drawing.Point(681, 194); this.emptySpaceItem4.Name = "emptySpaceItem4"; this.emptySpaceItem4.Size = new System.Drawing.Size(136, 31); this.emptySpaceItem4.Text = "emptySpaceItem4"; this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem6 // this.layoutControlItem6.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.layoutControlItem6.AppearanceItemCaption.Options.UseFont = true; this.layoutControlItem6.AppearanceItemCaption.Options.UseTextOptions = true; this.layoutControlItem6.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.layoutControlItem6.Control = this.TenNuoc; this.layoutControlItem6.CustomizationFormText = "Country :"; this.layoutControlItem6.Location = new System.Drawing.Point(316, 194); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(365, 31); this.layoutControlItem6.Text = "Tên nước :"; this.layoutControlItem6.TextLocation = DevExpress.Utils.Locations.Left; this.layoutControlItem6.TextSize = new System.Drawing.Size(75, 20); // // layoutControlGroup2 // this.layoutControlGroup2.AppearanceGroup.Font = new System.Drawing.Font("Tahoma", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.layoutControlGroup2.AppearanceGroup.Options.UseFont = true; this.layoutControlGroup2.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.layoutControlGroup2.AppearanceItemCaption.Options.UseFont = true; this.layoutControlGroup2.CustomizationFormText = "Thông tin thêm"; this.layoutControlGroup2.ExpandButtonVisible = true; this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem9}); this.layoutControlGroup2.Location = new System.Drawing.Point(0, 262); this.layoutControlGroup2.Name = "layoutControlGroup2"; this.layoutControlGroup2.Size = new System.Drawing.Size(817, 51); this.layoutControlGroup2.Text = "Thông tin thêm"; // // layoutControlItem9 // this.layoutControlItem9.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.layoutControlItem9.AppearanceItemCaption.Options.UseFont = true; this.layoutControlItem9.Control = this.ThongTinThem; this.layoutControlItem9.CustomizationFormText = "The Plot:"; this.layoutControlItem9.Location = new System.Drawing.Point(0, 0); this.layoutControlItem9.Name = "layoutControlItem9"; this.layoutControlItem9.Size = new System.Drawing.Size(811, 27); this.layoutControlItem9.Text = "The Plot:"; this.layoutControlItem9.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; this.layoutControlItem9.TextLocation = DevExpress.Utils.Locations.Top; this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem9.TextToControlDistance = 0; this.layoutControlItem9.TextVisible = false; // // layoutControlItem5 // this.layoutControlItem5.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.layoutControlItem5.AppearanceItemCaption.Options.UseFont = true; this.layoutControlItem5.AppearanceItemCaption.Options.UseTextOptions = true; this.layoutControlItem5.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.layoutControlItem5.Control = this.txt_HoTen; this.layoutControlItem5.CustomizationFormText = "Name :"; this.layoutControlItem5.ImageAlignment = System.Drawing.ContentAlignment.MiddleRight; this.layoutControlItem5.Location = new System.Drawing.Point(316, 101); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(501, 31); this.layoutControlItem5.Text = "Họ và tên :"; this.layoutControlItem5.TextLocation = DevExpress.Utils.Locations.Left; this.layoutControlItem5.TextSize = new System.Drawing.Size(75, 20); // // layoutControlGroup3 // this.layoutControlGroup3.CustomizationFormText = "Điều kiện lọc"; this.layoutControlGroup3.ExpandButtonVisible = true; this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem2}); this.layoutControlGroup3.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup3.Name = "layoutControlGroup3"; this.layoutControlGroup3.Size = new System.Drawing.Size(817, 101); this.layoutControlGroup3.Text = "Điều kiện lọc"; // // layoutControlItem2 // this.layoutControlItem2.Control = this.userCtrl_DieuKienLoc1; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 0); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(811, 77); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextLocation = DevExpress.Utils.Locations.Left; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // xtraUserControlLayout1 // this.xtraUserControlLayout1.Location = new System.Drawing.Point(14, 58); this.xtraUserControlLayout1.Name = "xtraUserControlLayout1"; this.xtraUserControlLayout1.Size = new System.Drawing.Size(350, 93); this.xtraUserControlLayout1.TabIndex = 1; // // frmTrialXtraLayoutControl // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(827, 627); this.Controls.Add(this.xtraUserControlLayout1); this.Controls.Add(this.splitContainerControl1); this.Name = "frmTrialXtraLayoutControl"; this.Text = "Demo Xtralayout"; this.Load += new System.EventHandler(this.frmDemoXtralayout2_Load_1); ((System.ComponentModel.ISupportInitialize)(this.imageCollection1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit(); this.splitContainerControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.checkEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.filename.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsFile.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.NgaySinh.Properties.VistaTimeProperties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.NgaySinh.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.NgheNghiep.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.TenNuoc.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.NoiSinh.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txt_HoTen.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ThongTinThem.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureEditHinhAnh.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); this.ResumeLayout(false); }
private void Initialize() { /** * if ui is needed, we will just leave this method. * we will just use the grid control default of this module (gcReport) */ if (m_CallingEnvironment == eCallingEnvironment.BrightSales_SendEmail || m_IsWebPortalCall) return; this.layoutControl = new LayoutControl(); this.layoutControl.Name = "layoutControl" + Guid.NewGuid().ToString(); this.layoutControl.Dock = DockStyle.Fill; this.Controls.Add(layoutControl); this.layoutControlGroup1 = new LayoutControlGroup(); this.layoutControlGroup1.Name = "layoutControlGroup" + Guid.NewGuid().ToString(); this.layoutControlGroup1.Text = this.Text; this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(10, 10, 10, 10); this.layoutControlGroup1.ShowInCustomizationForm = false; this.emptySpaceItemLoading = new EmptySpaceItem(); this.emptySpaceItemLoading.Text = "Loading view display. Please wait..."; this.emptySpaceItemLoading.AppearanceItemCaption.Font = new Font("Arial", 10f, FontStyle.Bold); this.emptySpaceItemLoading.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.emptySpaceItemLoading.TextVisible = true; this.emptySpaceItemLoading.Size = new Size(100, 20); this.emptySpaceItemLoading.MaxSize = new Size(100, 20); this.emptySpaceItemLoading.MinSize = new Size(100, 20); this.emptySpaceItemLoading.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlGroup1.AddItem(emptySpaceItemLoading); /** * grid control and grid view. */ this.gridControl1 = new GridControl(); this.gridView1 = new GridView(); this.gridControl1.Name = "gridControl" + Guid.NewGuid().ToString(); this.gridControl1.MainView = this.gridView1; this.gridControl1.ViewCollection.AddRange(new BaseView[] { this.gridView1 }); this.gridView1.Name = "gridView" + Guid.NewGuid().ToString(); this.gridView1.GridControl = this.gridControl1; this.gridView1.OptionsFind.AlwaysVisible = false; this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView1.OptionsBehavior.AutoPopulateColumns = true; this.gridView1.OptionsSelection.MultiSelect = false; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.OptionsView.ColumnAutoWidth = false; this.gridView1.OptionsBehavior.Editable = false; this.gridView1.PopupMenuShowing += new DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventHandler(gridView1_PopupMenuShowing); this.gridView1.ColumnFilterChanged += new EventHandler(gridView1_ColumnFilterChanged); this.gridView1.DragObjectDrop += gridView1_DragObjectDrop; this.labelControl1 = new LabelControl(); this.labelControl1.Name = "labelControl" + Guid.NewGuid().ToString(); this.labelControl1.Text = "Records: 0"; this.labelControl1.Size = new System.Drawing.Size(120, 22); this.layoutControl.BeginUpdate(); this.layoutControlItem1 = new LayoutControlItem(); this.layoutControlItem1.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem1.Control = gridControl1; this.layoutControlItem1.TextVisible = false; this.layoutControlGroup1.AddItem(this.layoutControlItem1); this.emptySpaceItem1 = new EmptySpaceItem(); this.layoutControlGroup1.AddItem(emptySpaceItem1); /** * [@jeff 06.18.2012]: https://brightvision.jira.com/browse/PLATFORM-1462 * added label to display the current grid record count. */ this.layoutControlItem5 = new LayoutControlItem(); this.layoutControlItem5.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem5.Control = labelControl1; this.layoutControlItem5.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem5.MaxSize = new Size(130, 30); this.layoutControlItem5.MinSize = new Size(80, 24); this.layoutControlItem5.Size = new Size(this.labelControl1.Width + 8, this.labelControl1.Height + 8); this.layoutControlItem5.TextVisible = false; this.layoutControlItem5.ShowInCustomizationForm = false; this.layoutControlItem5.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 3, 3, 5); this.layoutControlGroup1.AddItem(layoutControlItem5, emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Left); /** * show report. */ this.btnShowReport = new SimpleButton(); this.btnShowReport.Name = "simpleButton" + Guid.NewGuid().ToString(); this.btnShowReport.Text = "Show Report"; this.btnShowReport.Size = new System.Drawing.Size(90, 22); this.btnShowReport.Enabled = false; this.btnShowReport.Click += new EventHandler(btnShowReport_Click); this.layoutControlItem4 = new LayoutControlItem(); this.layoutControlItem4.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem4.Control = btnShowReport; this.layoutControlItem4.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem4.MaxSize = new Size(100, 30); this.layoutControlItem4.MinSize = new Size(80, 24); this.layoutControlItem4.Size = new Size(this.btnShowReport.Width + 8, this.btnShowReport.Height + 8); this.layoutControlItem4.TextVisible = false; this.layoutControlItem4.ShowInCustomizationForm = false; this.layoutControlItem4.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 3, 3, 5); this.layoutControlGroup1.AddItem(layoutControlItem4, emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Left); /** * Save As Account Per PDF. */ this.btnSaveReportPerPdf = new SimpleButton(); this.btnSaveReportPerPdf.Name = "simpleButton" + Guid.NewGuid().ToString(); this.btnSaveReportPerPdf.Text = "Save Account Per PDF"; this.btnSaveReportPerPdf.Size = new System.Drawing.Size(170, 22); this.btnSaveReportPerPdf.Enabled = false; this.btnSaveReportPerPdf.Click += new EventHandler(btnSaveReportPerPdf_Click); this.layoutControlItem7 = new LayoutControlItem(); this.layoutControlItem7.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.layoutControlItem7.Control = btnSaveReportPerPdf; this.layoutControlItem7.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem7.MaxSize = new Size(180, 30); this.layoutControlItem7.MinSize = new Size(80, 24); this.layoutControlItem7.Size = new Size(this.btnSaveReportPerPdf.Width + 8, this.btnSaveReportPerPdf.Height + 8); this.layoutControlItem7.TextVisible = false; this.layoutControlItem7.ShowInCustomizationForm = false; this.layoutControlItem7.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 3, 3, 5); this.layoutControlGroup1.AddItem(layoutControlItem7, emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Left); /** * hide (Save As Account Per PDF) button * if not called by bright manager application. */ //if (m_CallingEnvironment != eCallingEnvironment.BrightManager_ViewDisplay) // layoutControlItem7.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; this.layoutControl.Root = layoutControlGroup1; this.layoutControl.Root.GroupBordersVisible = false; this.layoutControl.EndUpdate(); this.Tag = this; }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(едакторМаски)); this.textEdit_СтрокаЦеликом = new TextEdit(); this.layoutControl1 = new LayoutControl(); this.simpleButton1 = new SimpleButton(); this.simpleButton_Отмена = new SimpleButton(); this.radioGroup_УстановкаФильтра = new RadioGroup(); this.simpleButton_ОК = new SimpleButton(); this.textEdit_ФильтрЗначение = new TextEdit(); this.comboBoxEdit_ФильтрСтолбец = new ComboBoxEdit(); this.layoutControlGroup1 = new LayoutControlGroup(); this.layoutControlItem1 = new LayoutControlItem(); this.layoutControlItem2 = new LayoutControlItem(); this.emptySpaceItem1 = new EmptySpaceItem(); this.layoutControlItem5 = new LayoutControlItem(); this.layoutControlItem6 = new LayoutControlItem(); this.layoutControlGroup2 = new LayoutControlGroup(); this.layoutControlItem3 = new LayoutControlItem(); this.layoutControlItem4 = new LayoutControlItem(); this.layoutControlItem7 = new LayoutControlItem(); this.textEdit_СтрокаЦеликом.Properties.BeginInit(); this.layoutControl1.BeginInit(); this.layoutControl1.SuspendLayout(); this.radioGroup_УстановкаФильтра.Properties.BeginInit(); this.textEdit_ФильтрЗначение.Properties.BeginInit(); this.comboBoxEdit_ФильтрСтолбец.Properties.BeginInit(); this.layoutControlGroup1.BeginInit(); this.layoutControlItem1.BeginInit(); this.layoutControlItem2.BeginInit(); this.emptySpaceItem1.BeginInit(); this.layoutControlItem5.BeginInit(); this.layoutControlItem6.BeginInit(); this.layoutControlGroup2.BeginInit(); this.layoutControlItem3.BeginInit(); this.layoutControlItem4.BeginInit(); this.layoutControlItem7.BeginInit(); base.SuspendLayout(); this.textEdit_СтрокаЦеликом.Location = new Point(7, 7); this.textEdit_СтрокаЦеликом.Name = "textEdit_СтрокаЦеликом"; this.textEdit_СтрокаЦеликом.Properties.ReadOnly = true; this.textEdit_СтрокаЦеликом.Size = new Size(0x19d, 20); this.textEdit_СтрокаЦеликом.StyleController = this.layoutControl1; this.textEdit_СтрокаЦеликом.TabIndex = 0; this.layoutControl1.Controls.Add(this.simpleButton1); this.layoutControl1.Controls.Add(this.textEdit_СтрокаЦеликом); this.layoutControl1.Controls.Add(this.simpleButton_Отмена); this.layoutControl1.Controls.Add(this.radioGroup_УстановкаФильтра); this.layoutControl1.Controls.Add(this.simpleButton_ОК); this.layoutControl1.Controls.Add(this.textEdit_ФильтрЗначение); this.layoutControl1.Controls.Add(this.comboBoxEdit_ФильтрСтолбец); 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(0x1aa, 0xb3); this.layoutControl1.TabIndex = 9; this.layoutControl1.Text = "layoutControl1"; this.simpleButton1.Image = Resources.plus4; this.simpleButton1.Location = new Point(10, 0x71); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new Size(0x1d, 0x18); this.simpleButton1.StyleController = this.layoutControl1; this.simpleButton1.TabIndex = 9; this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click); this.simpleButton_Отмена.DialogResult = DialogResult.Cancel; this.simpleButton_Отмена.Location = new Point(0x12e, 0x97); this.simpleButton_Отмена.Name = "simpleButton_Отмена"; this.simpleButton_Отмена.Size = new Size(0x76, 0x16); this.simpleButton_Отмена.StyleController = this.layoutControl1; this.simpleButton_Отмена.TabIndex = 8; this.simpleButton_Отмена.Text = "Отмена"; this.radioGroup_УстановкаФильтра.Location = new Point(7, 0x26); this.radioGroup_УстановкаФильтра.Name = "radioGroup_УстановкаФильтра"; this.radioGroup_УстановкаФильтра.Properties.Columns = 2; this.radioGroup_УстановкаФильтра.Properties.Items.AddRange(new RadioGroupItem[] { new RadioGroupItem(null, "Без отбора"), new RadioGroupItem(null, "Наложить фильтр") }); this.radioGroup_УстановкаФильтра.Size = new Size(0x19d, 0x2b); this.radioGroup_УстановкаФильтра.StyleController = this.layoutControl1; this.radioGroup_УстановкаФильтра.TabIndex = 2; this.radioGroup_УстановкаФильтра.SelectedIndexChanged += new EventHandler(this.radioGroup_УстановкаФильтра_SelectedIndexChanged); this.simpleButton_ОК.Location = new Point(0xae, 0x97); this.simpleButton_ОК.Name = "simpleButton_ОК"; this.simpleButton_ОК.Size = new Size(0x75, 0x16); this.simpleButton_ОК.StyleController = this.layoutControl1; this.simpleButton_ОК.TabIndex = 7; this.simpleButton_ОК.Text = "ОК"; this.simpleButton_ОК.Click += new EventHandler(this.simpleButton_ОК_Click); this.textEdit_ФильтрЗначение.Location = new Point(0x123, 0x71); this.textEdit_ФильтрЗначение.Name = "textEdit_ФильтрЗначение"; this.textEdit_ФильтрЗначение.Size = new Size(0x7e, 20); this.textEdit_ФильтрЗначение.StyleController = this.layoutControl1; this.textEdit_ФильтрЗначение.TabIndex = 1; this.textEdit_ФильтрЗначение.EditValueChanged += new EventHandler(this.textEdit_ФильтрЗначение_EditValueChanged); this.comboBoxEdit_ФильтрСтолбец.Location = new Point(0x67, 0x71); this.comboBoxEdit_ФильтрСтолбец.Name = "comboBoxEdit_ФильтрСтолбец"; this.comboBoxEdit_ФильтрСтолбец.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.comboBoxEdit_ФильтрСтолбец.Size = new Size(0x7c, 20); this.comboBoxEdit_ФильтрСтолбец.StyleController = this.layoutControl1; this.comboBoxEdit_ФильтрСтолбец.TabIndex = 4; this.comboBoxEdit_ФильтрСтолбец.SelectedValueChanged += new EventHandler(this.comboBoxEdit_ФильтрСтолбец_SelectedValueChanged); this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.emptySpaceItem1, this.layoutControlItem5, this.layoutControlItem6, this.layoutControlGroup2 }); this.layoutControlGroup1.Location = new Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new Size(0x1aa, 0xb3); this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; this.layoutControlItem1.Control = this.textEdit_СтрокаЦеликом; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new Size(0x1a8, 0x1f); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextLocation = Locations.Left; this.layoutControlItem1.TextSize = new Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; this.layoutControlItem2.Control = this.radioGroup_УстановкаФильтра; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new Point(0, 0x1f); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new Size(0x1a8, 0x36); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextLocation = Locations.Left; this.layoutControlItem2.TextSize = new Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new Point(0, 0x90); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new Size(0xa7, 0x21); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new Size(0, 0); this.layoutControlItem5.Control = this.simpleButton_ОК; this.layoutControlItem5.CustomizationFormText = "layoutControlItem5"; this.layoutControlItem5.Location = new Point(0xa7, 0x90); this.layoutControlItem5.MaxSize = new Size(0x80, 0x21); this.layoutControlItem5.MinSize = new Size(0x80, 0x21); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new Size(0x80, 0x21); this.layoutControlItem5.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem5.Text = "layoutControlItem5"; this.layoutControlItem5.TextLocation = Locations.Left; this.layoutControlItem5.TextSize = new Size(0, 0); this.layoutControlItem5.TextToControlDistance = 0; this.layoutControlItem5.TextVisible = false; this.layoutControlItem6.Control = this.simpleButton_Отмена; this.layoutControlItem6.CustomizationFormText = "layoutControlItem6"; this.layoutControlItem6.Location = new Point(0x127, 0x90); this.layoutControlItem6.MaxSize = new Size(0x81, 0x21); this.layoutControlItem6.MinSize = new Size(0x81, 0x21); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new Size(0x81, 0x21); this.layoutControlItem6.SizeConstraintsType = SizeConstraintsType.Custom; 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.layoutControlGroup2.CustomizationFormText = "Фильтр"; this.layoutControlGroup2.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem3, this.layoutControlItem4, this.layoutControlItem7 }); this.layoutControlGroup2.Location = new Point(0, 0x55); this.layoutControlGroup2.Name = "layoutControlGroup2"; this.layoutControlGroup2.Size = new Size(0x1a8, 0x3b); this.layoutControlGroup2.Text = "Фильтр"; this.layoutControlItem3.Control = this.comboBoxEdit_ФильтрСтолбец; this.layoutControlItem3.CustomizationFormText = "Столбец"; this.layoutControlItem3.Location = new Point(40, 0); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new Size(0xbc, 0x23); this.layoutControlItem3.Text = "Столбец"; this.layoutControlItem3.TextLocation = Locations.Left; this.layoutControlItem3.TextSize = new Size(0x30, 20); this.layoutControlItem4.Control = this.textEdit_ФильтрЗначение; this.layoutControlItem4.CustomizationFormText = "Значение"; this.layoutControlItem4.Location = new Point(0xe4, 0); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new Size(190, 0x23); this.layoutControlItem4.Text = "Значение"; this.layoutControlItem4.TextLocation = Locations.Left; this.layoutControlItem4.TextSize = new Size(0x30, 20); this.layoutControlItem7.Control = this.simpleButton1; this.layoutControlItem7.CustomizationFormText = "layoutControlItem7"; this.layoutControlItem7.Location = new Point(0, 0); this.layoutControlItem7.Name = "layoutControlItem7"; this.layoutControlItem7.Size = new Size(40, 0x23); this.layoutControlItem7.Text = "layoutControlItem7"; this.layoutControlItem7.TextLocation = Locations.Left; this.layoutControlItem7.TextSize = new Size(0, 0); this.layoutControlItem7.TextToControlDistance = 0; this.layoutControlItem7.TextVisible = false; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(0x1aa, 0xb3); base.Controls.Add(this.layoutControl1); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.Name = "РедакторМаски"; base.StartPosition = FormStartPosition.CenterScreen; this.Text = "Редактор маски"; this.textEdit_СтрокаЦеликом.Properties.EndInit(); this.layoutControl1.EndInit(); this.layoutControl1.ResumeLayout(false); this.radioGroup_УстановкаФильтра.Properties.EndInit(); this.textEdit_ФильтрЗначение.Properties.EndInit(); this.comboBoxEdit_ФильтрСтолбец.Properties.EndInit(); this.layoutControlGroup1.EndInit(); this.layoutControlItem1.EndInit(); this.layoutControlItem2.EndInit(); this.emptySpaceItem1.EndInit(); this.layoutControlItem5.EndInit(); this.layoutControlItem6.EndInit(); this.layoutControlGroup2.EndInit(); this.layoutControlItem3.EndInit(); this.layoutControlItem4.EndInit(); this.layoutControlItem7.EndInit(); base.ResumeLayout(false); }
private void InitializeQuery() { try { if (this.QueryControl == null) { return; } this.QueryControl.DoubleClick += QueryAutoClear; this.QueryControl.Controls.Clear(); this.Width = 1024; this.QueryControl.Width = 1024; LayoutControl eLayoutControl = new LayoutControl(); eLayoutControl.BeginUpdate(); eLayoutControl.AllowCustomization = false; LayoutControlGroup eLayoutControlGroup = new LayoutControlGroup(); eLayoutControl.Dock = System.Windows.Forms.DockStyle.Fill; eLayoutControl.Location = new System.Drawing.Point(2, 21); eLayoutControl.Name = "eLayoutControl"; eLayoutControl.Root = eLayoutControlGroup; eLayoutControl.Size = new System.Drawing.Size(1000, 90); eLayoutControl.TabIndex = 0; eLayoutControl.Text = "QueryLayout"; eLayoutControlGroup.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; eLayoutControlGroup.GroupBordersVisible = false; eLayoutControlGroup.Location = new Point(0, 0); eLayoutControlGroup.Name = "eLayoutControlGroup"; eLayoutControlGroup.Size = new Size(1000, 90); eLayoutControlGroup.TextVisible = false; this.QueryControl.Controls.Add(eLayoutControl); List <BaseLayoutItem> baseLayoutItems = new List <BaseLayoutItem>(); List <string> baseControls = new List <string>(); int curLeft = 0; int curTop = 0; foreach (Sys_Bind sys_Bind in BindList.Where(b => b.Bind_Name.StartsWith("@") && !string.IsNullOrEmpty(b.Bind_Field) && !b.Bind_Field.Contains(".") && WorkSetList.Find(w => w.WorkSet_Id == b.Bind_WorkSet && (w.WorkSet_Type == (int)Sys_WorkSet_Type.Submit || w.WorkSet_Type == (int)Sys_WorkSet_Type.Grid || w.WorkSet_Type == (int)Sys_WorkSet_Type.Tree)) != null).OrderBy(b => b.Bind_Sort)) { if (baseControls.Contains(sys_Bind.Bind_Field)) { continue; } baseControls.Add(sys_Bind.Bind_Field); sys_Bind.Bind_Type = 0; //查询字段 //界面已有控件不再生成 Control[] Controls = this.Controls.Find(sys_Bind.Bind_Field, true); if (Controls.Length > 0) { if (!string.IsNullOrEmpty(sys_Bind.Bind_Popup)) { BaseEdit cBaseEdit = (BaseEdit)Controls[0]; InitializeBaseEdit(sys_Bind, cBaseEdit); } continue; } BaseEdit baseEdit = InitializeBaseEdit(sys_Bind, null); baseEdit.Name = sys_Bind.Bind_Field; if (!string.IsNullOrEmpty(sys_Bind.Bind_Default)) { object obj = sys_Bind.Bind_Default; if (obj.ToString().StartsWith("wk:")) { obj = BaseService.Get(obj.ToString().Replace("wk:", ""), null); } ReflectionHelper.SetProperty(baseEdit, string.IsNullOrEmpty(sys_Bind.Bind_Property) ? "EditValue" : sys_Bind.Bind_Property, obj); //baseEdit.EditValue = sys_Bind.Bind_Default; if (baseEdit.GetType().Equals(typeof(CheckEdit))) { CheckEdit chkEdit = (CheckEdit)baseEdit; chkEdit.Text = string.Empty; chkEdit.Checked = obj.ToBoolEx(); } } if (baseEdit.GetType().Equals(typeof(CheckedComboBoxEdit))) { CheckedComboBoxEdit chkComboBox = (CheckedComboBoxEdit)baseEdit; chkComboBox.RefreshEditValue(); } baseEdit.EnterMoveNextControl = true; baseEdit.Width = (int)Math.Round(eLayoutControlGroup.Width * (sys_Bind.Bind_Width / 100.00)); baseEdit.Properties.Appearance.Options.UseTextOptions = true; baseEdit.Properties.Appearance.TextOptions.HAlignment = (DevExpress.Utils.HorzAlignment)sys_Bind.Bind_TextAlignment; if (sys_Bind.Bind_ForeColor < 0) { baseEdit.ForeColor = Color.FromArgb(sys_Bind.Bind_ForeColor); } if (sys_Bind.Bind_BackColor < 0) { baseEdit.BackColor = Color.FromArgb(sys_Bind.Bind_BackColor); } if (sys_Bind.Bind_BorderColor < 0) { baseEdit.Properties.Appearance.Options.UseBorderColor = true; baseEdit.Properties.Appearance.BorderColor = Color.FromArgb(sys_Bind.Bind_BorderColor); baseEdit.BorderStyle = BorderStyles.Simple; } baseEdit.ToolTip = sys_Bind.Bind_ToolTip; baseEdit.ReadOnly = sys_Bind.Bind_ReadOnly; baseEdit.Visible = sys_Bind.Bind_Visible; baseEdit.GotFocus += Control_GotFocus; eLayoutControl.GotFocus += Control_GotFocus; LayoutControlItem eLayoutControlItem = new LayoutControlItem(); eLayoutControlItem.Location = new System.Drawing.Point(curLeft, curTop); curLeft += baseEdit.Width; if (curLeft >= eLayoutControlGroup.Width) { curLeft = 0; curTop += baseEdit.Height; } //eLayoutControlItem.Width = (int)Math.Round(eLayoutControl.Width * (sys_Bind.Bind_Width / 100.00)); eLayoutControlItem.AppearanceItemCaption.TextOptions.HAlignment = (DevExpress.Utils.HorzAlignment)sys_Bind.Bind_TitleAlignment; eLayoutControlItem.Name = "oli_" + sys_Bind.Bind_Name; eLayoutControlItem.Text = sys_Bind.Bind_Nick; eLayoutControlItem.Size = new Size(baseEdit.Width, baseEdit.Height); eLayoutControlItem.Control = baseEdit; eLayoutControlItem.Visibility = sys_Bind.Bind_Visible ? DevExpress.XtraLayout.Utils.LayoutVisibility.Always : DevExpress.XtraLayout.Utils.LayoutVisibility.Never; baseLayoutItems.Add(eLayoutControlItem); } if (curLeft < eLayoutControlGroup.Width && curLeft > 0) { EmptySpaceItem emptySpaceItem = new EmptySpaceItem(); emptySpaceItem.AllowHotTrack = false; emptySpaceItem.Location = new System.Drawing.Point(curLeft, curTop); emptySpaceItem.Name = "oli_Space"; emptySpaceItem.Size = new System.Drawing.Size(eLayoutControlGroup.Width - curLeft, 24); baseLayoutItems.Add(emptySpaceItem); } eLayoutControlGroup.Items.AddRange(baseLayoutItems.ToArray()); eLayoutControl.EndUpdate(); } catch (Exception ex) { SharedFunc.RaiseError(ex); } }
private void InitializeComponent() { this.layoutControl1 = new LayoutControl(); this.lstBox = new ListBoxControl(); this.labelControl1 = new LabelControl(); this.btnCancle = new SimpleButton(); this.btnOk = new SimpleButton(); this.layoutControlGroup1 = new LayoutControlGroup(); this.layoutControlItem3 = new LayoutControlItem(); this.layoutControlItem4 = new LayoutControlItem(); this.emptySpaceItem1 = new EmptySpaceItem(); this.emptySpaceItem2 = new EmptySpaceItem(); this.emptySpaceItem3 = new EmptySpaceItem(); this.layoutControlItem5 = new LayoutControlItem(); this.layoutControlItem6 = new LayoutControlItem(); ((System.ComponentModel.ISupportInitialize) this.layoutControl1).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize) this.lstBox).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlGroup1).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem5).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem6).BeginInit(); base.SuspendLayout(); this.layoutControl1.Controls.Add(this.lstBox); this.layoutControl1.Controls.Add(this.labelControl1); this.layoutControl1.Controls.Add(this.btnCancle); this.layoutControl1.Controls.Add(this.btnOk); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(286, 340); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; this.lstBox.Appearance.ForeColor = System.Drawing.Color.FromArgb(192, 192, 255); this.lstBox.Appearance.Options.UseForeColor = true; this.lstBox.Location = new System.Drawing.Point(12, 30); this.lstBox.Name = "lstBox"; this.lstBox.Size = new System.Drawing.Size(262, 272); this.lstBox.StyleController = this.layoutControl1; this.lstBox.TabIndex = 9; this.labelControl1.Appearance.ForeColor = System.Drawing.Color.Red; this.labelControl1.Location = new System.Drawing.Point(12, 12); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(252, 14); this.labelControl1.StyleController = this.layoutControl1; this.labelControl1.TabIndex = 8; this.labelControl1.Text = "提示:模型合并不支持撤销操作,请小心使用!"; this.btnCancle.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancle.Location = new System.Drawing.Point(176, 306); this.btnCancle.Name = "btnCancle"; this.btnCancle.Size = new System.Drawing.Size(64, 22); this.btnCancle.StyleController = this.layoutControl1; this.btnCancle.TabIndex = 7; this.btnCancle.Text = "取消"; this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOk.Location = new System.Drawing.Point(46, 306); this.btnOk.Name = "btnOk"; this.btnOk.Size = new System.Drawing.Size(64, 22); this.btnOk.StyleController = this.layoutControl1; this.btnOk.TabIndex = 6; this.btnOk.Text = "确定"; this.btnOk.Click += new System.EventHandler(this.btnOk_Click); this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem3, this.layoutControlItem4, this.emptySpaceItem1, this.emptySpaceItem2, this.emptySpaceItem3, this.layoutControlItem5, this.layoutControlItem6 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(286, 340); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; this.layoutControlItem3.Control = this.btnOk; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(34, 294); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(68, 26); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; this.layoutControlItem4.Control = this.btnCancle; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(164, 294); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(68, 26); this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 294); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(34, 26); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(232, 294); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(34, 26); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(102, 294); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(62, 26); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.Control = this.labelControl1; this.layoutControlItem5.CustomizationFormText = "layoutControlItem5"; this.layoutControlItem5.Location = new System.Drawing.Point(0, 0); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(266, 18); this.layoutControlItem5.Text = "layoutControlItem5"; this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextToControlDistance = 0; this.layoutControlItem5.TextVisible = false; this.layoutControlItem6.Control = this.lstBox; this.layoutControlItem6.CustomizationFormText = "layoutControlItem6"; this.layoutControlItem6.Location = new System.Drawing.Point(0, 18); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(266, 276); this.layoutControlItem6.Text = "layoutControlItem6"; this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem6.TextToControlDistance = 0; this.layoutControlItem6.TextVisible = false; base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 14f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(286, 340); base.Controls.Add(this.layoutControl1); base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; base.Name = "MergeDlg"; base.ShowInTaskbar = false; base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "模型合并"; ((System.ComponentModel.ISupportInitialize) this.layoutControl1).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize) this.lstBox).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlGroup1).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem3).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem4).EndInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem1).EndInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem2).EndInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem3).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem5).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem6).EndInit(); base.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new LayoutControl(); this.sbtn_Reset = new SimpleButton(); this.sbtn_Cancel = new SimpleButton(); this.sbtn_Split = new SimpleButton(); this.radioGroup1 = new RadioGroup(); this.sbtn_BrowseFile = new SimpleButton(); this.textEdit_FilePath = new TextEdit(); this.layoutControlGroup1 = new LayoutControlGroup(); this.emptySpaceItem1 = new EmptySpaceItem(); this.layoutControlGroup2 = new LayoutControlGroup(); this.layoutControlItem1 = new LayoutControlItem(); this.layoutControlItem2 = new LayoutControlItem(); this.layoutControlItem3 = new LayoutControlItem(); this.layoutControlItem6 = new LayoutControlItem(); this.emptySpaceItem2 = new EmptySpaceItem(); this.emptySpaceItem3 = new EmptySpaceItem(); this.layoutControlItem4 = new LayoutControlItem(); this.layoutControlItem5 = new LayoutControlItem(); ((System.ComponentModel.ISupportInitialize) this.layoutControl1).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize) this.radioGroup1.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.textEdit_FilePath.Properties).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlGroup1).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlGroup2).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem1).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem6).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem3).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem4).BeginInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem5).BeginInit(); base.SuspendLayout(); this.layoutControl1.Controls.Add(this.sbtn_Reset); this.layoutControl1.Controls.Add(this.sbtn_Cancel); this.layoutControl1.Controls.Add(this.sbtn_Split); this.layoutControl1.Controls.Add(this.radioGroup1); this.layoutControl1.Controls.Add(this.sbtn_BrowseFile); this.layoutControl1.Controls.Add(this.textEdit_FilePath); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle?(new System.Drawing.Rectangle(392, 79, 250, 350)); this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(358, 147); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; this.sbtn_Reset.Location = new System.Drawing.Point(304, 39); this.sbtn_Reset.Name = "sbtn_Reset"; this.sbtn_Reset.Size = new System.Drawing.Size(35, 22); this.sbtn_Reset.StyleController = this.layoutControl1; this.sbtn_Reset.TabIndex = 9; this.sbtn_Reset.Text = "重置"; this.sbtn_Reset.Click += new System.EventHandler(this.sbtn_Reset_Click); this.sbtn_Cancel.Location = new System.Drawing.Point(197, 106); this.sbtn_Cancel.Name = "sbtn_Cancel"; this.sbtn_Cancel.Size = new System.Drawing.Size(97, 22); this.sbtn_Cancel.StyleController = this.layoutControl1; this.sbtn_Cancel.TabIndex = 8; this.sbtn_Cancel.Text = "取消"; this.sbtn_Cancel.Click += new System.EventHandler(this.sbtn_Cancel_Click); this.sbtn_Split.Location = new System.Drawing.Point(63, 106); this.sbtn_Split.Name = "sbtn_Split"; this.sbtn_Split.Size = new System.Drawing.Size(85, 22); this.sbtn_Split.StyleController = this.layoutControl1; this.sbtn_Split.TabIndex = 7; this.sbtn_Split.Text = "拆分"; this.sbtn_Split.Click += new System.EventHandler(this.sbtn_Split_Click); this.radioGroup1.Location = new System.Drawing.Point(19, 39); this.radioGroup1.Name = "radioGroup1"; this.radioGroup1.Properties.Items.AddRange(new RadioGroupItem[] { new RadioGroupItem(null, "文件导入"), new RadioGroupItem(null, "绘制") }); this.radioGroup1.Size = new System.Drawing.Size(281, 25); this.radioGroup1.StyleController = this.layoutControl1; this.radioGroup1.TabIndex = 6; this.radioGroup1.SelectedIndexChanged += new System.EventHandler(this.radioGroup1_SelectedIndexChanged); this.sbtn_BrowseFile.Location = new System.Drawing.Point(304, 68); this.sbtn_BrowseFile.Name = "sbtn_BrowseFile"; this.sbtn_BrowseFile.Size = new System.Drawing.Size(35, 22); this.sbtn_BrowseFile.StyleController = this.layoutControl1; this.sbtn_BrowseFile.TabIndex = 5; this.sbtn_BrowseFile.Text = "..."; this.sbtn_BrowseFile.Click += new System.EventHandler(this.sbtn_BrowseFile_Click); this.textEdit_FilePath.Location = new System.Drawing.Point(19, 68); this.textEdit_FilePath.Name = "textEdit_FilePath"; this.textEdit_FilePath.Properties.ReadOnly = true; this.textEdit_FilePath.Size = new System.Drawing.Size(281, 20); this.textEdit_FilePath.StyleController = this.layoutControl1; this.textEdit_FilePath.TabIndex = 4; this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.emptySpaceItem1, this.layoutControlGroup2, this.emptySpaceItem2, this.emptySpaceItem3, this.layoutControlItem4, this.layoutControlItem5 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 5, 5, 5); this.layoutControlGroup1.Size = new System.Drawing.Size(358, 147); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 99); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(56, 38); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlGroup2.CustomizationFormText = "范围多边形"; this.layoutControlGroup2.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem6 }); this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup2.Name = "layoutControlGroup2"; this.layoutControlGroup2.Size = new System.Drawing.Size(348, 99); this.layoutControlGroup2.Text = "范围多边形"; this.layoutControlItem1.Control = this.textEdit_FilePath; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 29); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(285, 26); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; this.layoutControlItem2.Control = this.sbtn_BrowseFile; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(285, 29); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(39, 26); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; this.layoutControlItem3.Control = this.radioGroup1; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 0); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(285, 29); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; this.layoutControlItem6.Control = this.sbtn_Reset; this.layoutControlItem6.CustomizationFormText = "layoutControlItem6"; this.layoutControlItem6.Location = new System.Drawing.Point(285, 0); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(39, 29); this.layoutControlItem6.Text = "layoutControlItem6"; this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem6.TextToControlDistance = 0; this.layoutControlItem6.TextVisible = false; this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(291, 99); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(57, 38); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(145, 99); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(45, 38); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.Control = this.sbtn_Split; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(56, 99); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(89, 38); this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; this.layoutControlItem5.Control = this.sbtn_Cancel; this.layoutControlItem5.CustomizationFormText = "layoutControlItem5"; this.layoutControlItem5.Location = new System.Drawing.Point(190, 99); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(101, 38); this.layoutControlItem5.Text = "layoutControlItem5"; this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextToControlDistance = 0; this.layoutControlItem5.TextVisible = false; base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 14f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(358, 147); base.Controls.Add(this.layoutControl1); base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; base.Name = "SplitDlg"; base.ShowInTaskbar = false; base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "拆分"; base.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.SplitDlg_FormClosed); ((System.ComponentModel.ISupportInitialize) this.layoutControl1).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize) this.radioGroup1.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize) this.textEdit_FilePath.Properties).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlGroup1).EndInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem1).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlGroup2).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem1).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem2).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem3).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem6).EndInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem2).EndInit(); ((System.ComponentModel.ISupportInitialize) this.emptySpaceItem3).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem4).EndInit(); ((System.ComponentModel.ISupportInitialize) this.layoutControlItem5).EndInit(); base.ResumeLayout(false); }
public UISearchGroup(ucModule parentModule, LayoutControlGroup parentLayoutGroup) { ParentModule = parentModule; ModuleInfo = parentModule.ModuleInfo; ParentLayoutGroup = parentLayoutGroup; SearchLayout = (LayoutControl)parentLayoutGroup.Owner; Groups = new List <UISearchGroup>(); Conditions = new List <UISearchCondition>(); LayoutGroup = new LayoutControlGroup(); SearchLayout.BeginUpdate(); parentLayoutGroup.BeginUpdate(); m_EditUse = new CheckEdit(); // GetFields: ModID = ModuleTypeID, Group = SQL_EXPRESSION var fieldSqlLogic = FieldUtils.GetModuleFields( ModuleInfo.ModuleType, CODES.DEFMODFLD.FLDGROUP.SQL_EXPRESSION )[0]; // m_SQLLogic = (ImageComboBoxEdit)parentModule.CreateControl(fieldSqlLogic); parentModule.SetControlListSource(m_SQLLogic); parentModule.SetControlDefaultValue(m_SQLLogic); m_AddGroup = new SimpleButton(); m_AddCondition = new SimpleButton(); m_DeleteGroup = new SimpleButton(); SearchLayout.Controls.AddRange(new Control[] { m_EditUse, m_SQLLogic, m_AddGroup, m_AddCondition, m_DeleteGroup }); (m_EditUseLayoutItem = LayoutGroup.AddItem("Use Condition", m_EditUse)).BeginInit(); (m_MainSeparator = (SimpleSeparator)LayoutGroup.AddItem(new SimpleSeparator(), m_EditUseLayoutItem, InsertType.Bottom)).BeginInit(); (m_SQLLogicLayoutItem = LayoutGroup.AddItem("Group Type", m_SQLLogic, m_EditUseLayoutItem, InsertType.Right)).BeginInit(); (m_SQLLogicEmptySpace = (EmptySpaceItem)LayoutGroup.AddItem(new EmptySpaceItem(LayoutGroup), m_SQLLogicLayoutItem, InsertType.Right)).BeginInit(); (m_DeleteGroupLayoutItem = LayoutGroup.AddItem("Delete Group", m_DeleteGroup, m_SQLLogicEmptySpace, InsertType.Right)).BeginInit(); (m_AddGroupLayoutItem = LayoutGroup.AddItem("Add Group", m_AddGroup, m_DeleteGroupLayoutItem, InsertType.Right)).BeginInit(); (m_AddConditionLayoutItem = LayoutGroup.AddItem("Add Condition", m_AddCondition, m_AddGroupLayoutItem, InsertType.Right)).BeginInit(); // m_chkEditUse m_EditUse.Text = ""; m_EditUse.Checked = true; m_EditUse.EditValueChanged += CheckEditUse_CheckedChanged; // m_btnDeleteGroup parentModule.Language.FormatButton(m_DeleteGroup, "btnDeleteGroupCondition"); m_DeleteGroup.Click += DeleteGroupCondition_Click; // m_btnAddGroup parentModule.Language.FormatButton(m_AddGroup, "btnAddGroupCondition"); m_AddGroup.Click += AddGroupCondition_Click; // m_btnAddCondition parentModule.Language.FormatButton(m_AddCondition, "btnAddCondition"); m_AddCondition.Click += AddConditionButton_Click; // LayoutGroup LayoutGroup.Padding = new DevExpress.XtraLayout.Utils.Padding(9, 2, 2, 2); LayoutGroup.TextLocation = DevExpress.Utils.Locations.Left; LayoutGroup.Text = " "; // m_layout_chkEditUse m_EditUseLayoutItem.TextVisible = false; m_EditUseLayoutItem.SizeConstraintsType = SizeConstraintsType.Custom; m_EditUseLayoutItem.ControlAlignment = ContentAlignment.MiddleCenter; m_EditUseLayoutItem.FillControlToClientArea = false; m_EditUseLayoutItem.MinSize = m_EditUseLayoutItem.MaxSize = new Size(20, 24); // m_layout_cboSQLLogic m_SQLLogicLayoutItem.TextVisible = false; m_SQLLogicLayoutItem.SizeConstraintsType = SizeConstraintsType.Custom; m_SQLLogicLayoutItem.ControlAlignment = ContentAlignment.MiddleCenter; m_EditUseLayoutItem.FillControlToClientArea = false; m_SQLLogicLayoutItem.MinSize = m_SQLLogicLayoutItem.MaxSize = new Size(240, 24); // m_layout_btnDeleteGroup m_DeleteGroupLayoutItem.TextVisible = false; m_DeleteGroupLayoutItem.SizeConstraintsType = SizeConstraintsType.Custom; m_DeleteGroupLayoutItem.ControlAlignment = ContentAlignment.MiddleCenter; m_EditUseLayoutItem.FillControlToClientArea = false; m_DeleteGroupLayoutItem.MinSize = m_DeleteGroupLayoutItem.MaxSize = new Size(140, 24); // m_layout_cboSQLLogic m_AddGroupLayoutItem.TextVisible = false; m_AddGroupLayoutItem.SizeConstraintsType = SizeConstraintsType.Custom; m_AddGroupLayoutItem.ControlAlignment = ContentAlignment.MiddleCenter; m_EditUseLayoutItem.FillControlToClientArea = false; m_AddGroupLayoutItem.MinSize = m_AddGroupLayoutItem.MaxSize = new Size(140, 24); // m_layout_cboSQLLogic m_AddConditionLayoutItem.TextVisible = false; m_AddConditionLayoutItem.SizeConstraintsType = SizeConstraintsType.Custom; m_AddConditionLayoutItem.ControlAlignment = ContentAlignment.MiddleCenter; m_EditUseLayoutItem.FillControlToClientArea = false; m_AddConditionLayoutItem.MinSize = m_AddConditionLayoutItem.MaxSize = new Size(110, 24); m_MainSeparator.FillControlToClientArea = false; m_MainSeparator.SizeConstraintsType = SizeConstraintsType.Default; m_EditUseLayoutItem.EndInit(); m_SQLLogicLayoutItem.EndInit(); m_SQLLogicEmptySpace.EndInit(); m_DeleteGroupLayoutItem.EndInit(); m_AddGroupLayoutItem.EndInit(); m_AddConditionLayoutItem.EndInit(); m_MainSeparator.EndInit(); parentLayoutGroup.Add(LayoutGroup); if (ConditionModule.ConditionLayoutGroup == parentLayoutGroup) { parentLayoutGroup.AddItem(new EmptySpaceItem(), LayoutGroup, InsertType.Bottom); m_DeleteGroupLayoutItem.Visibility = LayoutVisibility.Never; } parentLayoutGroup.EndUpdate(); SearchLayout.EndUpdate(); }
/* * https://brightvision.jira.com/browse/PLATFORM-3015 */ public void BindControls() { #region Initialization if (Questionnaire == null) MessageBox.Show("Questionnaire must be bind with JSON first.", "Schedule Component"); var answerOpt = Questionnaire.Form.Settings.AnswerOptions[0] as ISchedule; //if (CalendarDataSource == null) { // if (answerOpt != null) { // if (answerOpt.CalendarOption != null && answerOpt.CalendarOption.CalendarValues.Count > 0) // CalendarDataSource = answerOpt.CalendarOption.CalendarValues; // else { // MessageBox.Show("\"CalendarDataSource\" property must be set first.","Schedule Component"); // return; // } // } else { // MessageBox.Show("\"CalendarDataSource\" property must be set first.", "Schedule Component"); // return; // } //} #endregion isLoaded = false; this.layoutControlGroupQuestion1.Clear(); Settings oSettings = Questionnaire.Form.Settings; // layoutControlGroupQuestion1 this.layoutControlGroupQuestion1.Name = "layoutControlGroupQuestion" + Guid.NewGuid().ToString(); this.layoutControlGroupQuestion1.AppearanceGroup.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); this.layoutControlGroupQuestion1.AppearanceGroup.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Vertical; this.layoutControlGroupQuestion1.AppearanceGroup.Options.UseFont = true; this.layoutControlGroupQuestion1.ExpandButtonVisible = false; this.layoutControlGroupQuestion1.GroupBordersVisible = true; this.layoutControlGroupQuestion1.TextVisible = false; this.layoutControlGroupQuestion1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1); this.layoutControlGroupQuestion1.ShowInCustomizationForm = false; //this.layoutControlGroupQuestion1.Text = oSettings.Label + " " + oSettings.QuestionText; this.layoutControlGroupQuestion1.BeginUpdate(); #region Footer this.lciFooter = new LayoutControlItem(); this.lciFooter.Name = "layoutControlItem" + Guid.NewGuid().ToString(); //bool isCustomerOwnershipOnly = false; //if (oSettings.CustomerOwnership && oSettings.BVOwnership) // isCustomerOwnershipOnly = true; //ctlFooter = new Footer() { // IsAccountLevel = oSettings.DataBindings.account_level, // IsCustomerOwnershipOnly = isCustomerOwnershipOnly, // HelpText = oSettings.QuestionHelp, // LanguageCode = oSettings.DataBindings.language_code //}; ctlFooter = new Footer() { IsAccountLevel = oSettings.DataBindings.account_level, IsCustomerOwned = oSettings.CustomerOwnership, IsBrightvisionOwned = oSettings.BVOwnership, HelpText = oSettings.QuestionHelp, LanguageCode = oSettings.DataBindings.language_code, QuestionText = oSettings.Label + " " + oSettings.QuestionText }; ctlFooter.InitializeFooter(); ctlFooter.Dock = DockStyle.Fill; ctlFooter.Height = 20; this.lciFooter.Control = ctlFooter; this.lciFooter.ShowInCustomizationForm = false; this.lciFooter.TextVisible = false; this.lciFooter.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.lciFooter.MinSize = new Size(0, 24); this.lciFooter.MaxSize = new Size(0, 24); this.lciFooter.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.lciFooter.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlGroupQuestion1.AddItem(this.lciFooter); #endregion IList<AnswerOption> answeroptionList = Questionnaire.Form.Settings.AnswerOptions; ISchedule answeroption = null; int iAnswerOptions = answeroptionList.Count; //System.Drawing.Size newSize; int idx = 0; ScheduleSalesPerson oSalesPerson; for (int x = 0; x < iAnswerOptions; ++x) { answeroption = answeroptionList[x] as ISchedule; LayoutControlItem lciScheduleDetails = new LayoutControlItem(); this.lblScheduleDetails = new Label(); this.lblScheduleDetails.Text = ""; lciScheduleDetails.Control = this.lblScheduleDetails; lciScheduleDetails.TextVisible = false; this.layoutControlGroupQuestion1.AddItem(lciScheduleDetails); #region Sales Person // layoutControlItem1 this.lciSalesPerson = new LayoutControlItem(); //lookUpEdit1 this.lookUpEdit1 = new LookUpEdit(); this.lookUpEdit1.Name = "SalesPerson_lookUpEdit" + Guid.NewGuid().ToString(); this.lookUpEdit1.Properties.NullText = ""; //this.lookUpEdit1.Properties.DisplayMember = "Name"; //this.lookUpEdit1.Properties.ValueMember = "Id"; this.lookUpEdit1.Properties.DisplayMember = "resource_name"; this.lookUpEdit1.Properties.ValueMember = "resource_id"; //this.lookUpEdit1.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("Name", "SalesPerson")); this.lookUpEdit1.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("resource_name", "SalesPerson")); this.lookUpEdit1.Properties.ShowFooter = false; this.lookUpEdit1.Properties.ShowHeader = false; this.lookUpEdit1.Properties.ReadOnly = true; this.lookUpEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; oSalesPerson = answeroption.ScheduleSalesPerson; if (oSalesPerson != null) { if (oSalesPerson.SalesPersonSelectedValue != null) { this.lookUpEdit1.Properties.DataSource = new List<SalesPerson> { oSalesPerson.SalesPersonSelectedValue }; this.lookUpEdit1.EditValue = oSalesPerson.SalesPersonSelectedValue.Id; } } this.lookUpEdit1.Tag = new ScheduleData() { Name = "SalesPerson", PositionIndex = "IndexPosition" + x, ControlContainer = lciSalesPerson }; this.lookUpEdit1.Size = new System.Drawing.Size(155, 20); this.lookUpEdit1.StyleController = this.StyleController; //this.lookUpEdit1.EditValueChanged += new EventHandler(lookUpEdit1_SelectedIndexChanged); this.lookUpEdit1.Click += new EventHandler(layoutControlGroupQuestion1_Click); // lciSalesPerson this.lciSalesPerson.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciSalesPerson.Control = this.lookUpEdit1; if (oSalesPerson != null && !string.IsNullOrEmpty(oSalesPerson.TextPrefix)) { this.lciSalesPerson.Text = oSalesPerson.TextPrefix.Trim(); } else { this.lciSalesPerson.Text = "Sales Person:"; } this.lciSalesPerson.TextLocation = DevExpress.Utils.Locations.Top; this.lciSalesPerson.TextSize = new System.Drawing.Size(108, 13); this.lciSalesPerson.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciSalesPerson.MaxSize = new System.Drawing.Size(160, 20); this.lciSalesPerson.MinSize = new System.Drawing.Size(160, 20); this.lciSalesPerson.Size = new System.Drawing.Size(50, 20); this.lciSalesPerson.ShowInCustomizationForm = false; this.lciSalesPerson.Click += new EventHandler(layoutControlGroupQuestion1_Click); //this.layoutControlGroupQuestion1.AddItem(this.lciSalesPerson); #endregion #region Schedule Type // emptySpaceItem1 this.emptySpaceItem1 = new EmptySpaceItem(); this.emptySpaceItem1.Name = "emptySpaceItem" + Guid.NewGuid().ToString(); this.emptySpaceItem1.Size = new System.Drawing.Size(25, 20); this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.emptySpaceItem1.MaxSize = new System.Drawing.Size(0, 20); this.emptySpaceItem1.MinSize = new System.Drawing.Size(0, 20); this.emptySpaceItem1.ShowInCustomizationForm = false; this.emptySpaceItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); // // comboBoxEdit1 this.lciScheduleType = new DevExpress.XtraLayout.LayoutControlItem(); this.comboBoxEdit1 = new ComboBoxEdit(); this.comboBoxEdit1.Tag = new ScheduleData() { Name = "ScheduleType", PositionIndex = "IndexPosition" + x, ControlContainer = lciScheduleType }; this.comboBoxEdit1.Size = new System.Drawing.Size(50, 20); this.comboBoxEdit1.Name = "ScheduleType_comboBoxEdit" + Guid.NewGuid().ToString(); this.comboBoxEdit1.Properties.ReadOnly = true; this.comboBoxEdit1.StyleController = this.StyleController; this.comboBoxEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.comboBoxEdit1.SelectedIndexChanged += new EventHandler(comboBoxEdit1_SelectedIndexChanged); this.comboBoxEdit1.Click += new EventHandler(layoutControlGroupQuestion1_Click); if (answeroption.ScheduleType == null) { answeroption.ScheduleType = new ScheduleType(); } if (answeroption.ScheduleType.ScheduleTypeSelectedValue == null) { answeroption.ScheduleType.ScheduleTypeSelectedValue = ""; } answeroption.ScheduleType.ScheduleTypeValues = new List<string> { "Seminar", "Webinar", "Meeting" }; answeroption.ScheduleType.ScheduleTypeValues.ForEach(delegate(string strValue) { this.comboBoxEdit1.Properties.Items.Add(strValue); }); // lciScheduleType this.lciScheduleType.Name = "layoutControlItem" + Guid.NewGuid().ToString(); //this.layoutControlItem2.AppearanceItemCaption.Options.UseTextOptions = true; //this.layoutControlItem2.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; this.lciScheduleType.Control = this.comboBoxEdit1; this.lciScheduleType.TextLocation = DevExpress.Utils.Locations.Top; this.lciScheduleType.TextSize = new System.Drawing.Size(60, 13); if (!string.IsNullOrEmpty(answeroption.ScheduleType.TextPrefix)) { this.lciScheduleType.Text = answeroption.ScheduleType.TextPrefix; } else { this.lciScheduleType.Text = "Schedule Type:"; } this.lciScheduleType.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciScheduleType.MaxSize = new System.Drawing.Size(160, 24); this.lciScheduleType.MinSize = new System.Drawing.Size(160, 24); this.lciScheduleType.Size = new System.Drawing.Size(160, 24); this.lciScheduleType.ShowInCustomizationForm = false; this.lciScheduleType.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.lciSalesPerson.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.OnlyInCustomization; this.lciScheduleType.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.OnlyInCustomization; this.emptySpaceItem1.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.OnlyInCustomization; this.layoutControlGroupQuestion1.AddItem(this.lciScheduleType); this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem1, this.lciScheduleType, DevExpress.XtraLayout.Utils.InsertType.Right); this.layoutControlGroupQuestion1.AddItem(this.lciSalesPerson, this.emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Right); // emptySpaceItem1 this.emptySpaceItem1 = new EmptySpaceItem(); this.emptySpaceItem1.Name = "emptySpaceItem" + Guid.NewGuid().ToString(); this.emptySpaceItem1.Size = new System.Drawing.Size(1, 15); this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.emptySpaceItem1.MaxSize = new System.Drawing.Size(0, 15); this.emptySpaceItem1.MinSize = new System.Drawing.Size(0, 15); this.emptySpaceItem1.ShowInCustomizationForm = false; this.emptySpaceItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); //this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem1); #endregion #region List of Schedules Available // lciListOfSchedule this.lciListOfScheduleDropDown = new DevExpress.XtraLayout.LayoutControlItem(); //lookUpEdit1 this.lookUpEdit2 = new LookUpEdit(); this.lookUpEdit2.Name = "lookUpEdit" + Guid.NewGuid().ToString(); this.lookUpEdit2.Properties.NullText = ""; this.lookUpEdit2.Properties.DisplayMember = "title"; this.lookUpEdit2.Properties.ValueMember = "id"; this.lookUpEdit2.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("title", "List of Bookings")); comboBoxEdit1_SelectedIndexChanged(this.comboBoxEdit1, null); this.lookUpEdit2.Properties.ShowFooter = true; this.lookUpEdit2.Properties.ShowHeader = false; this.lookUpEdit2.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.lookUpEdit2.Tag = new ScheduleData() { Name = "ListOfBookingsAvailable", PositionIndex = "IndexPosition" + x, ControlContainer = lciListOfScheduleDropDown, Required = answeroption.ListOfBookingsAvailableRequired, HasValue = answeroption.ScheduleValue != null && !string.IsNullOrEmpty(answeroption.ScheduleValue.ScheduleId) ? true : false }; this.lookUpEdit2.Size = new System.Drawing.Size(155, 20); this.lookUpEdit2.StyleController = this.StyleController; //load answer values if (answeroption.ScheduleType != null) { if (answeroption.ScheduleValue != null) { if (!string.IsNullOrEmpty(answeroption.ScheduleValue.ScheduleId)) { int schedid = int.Parse(answeroption.ScheduleValue.ScheduleId); lookUpEdit2.EditValue = schedid; //if (answeroption.ScheduleType.ScheduleTypeSelectedValue.ToLower() == "meeting") { // CreateMeeting.Enabled = true; //} } } } //this.lookUpEdit2.EditValueChanged += new EventHandler(lookUpEdit2_EditValueChanged); this.lookUpEdit2.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.comboBoxEdit1.EditValue = answeroption.ScheduleType.ScheduleTypeSelectedValue; // layoutControlItem1 this.lciListOfScheduleDropDown.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciListOfScheduleDropDown.Control = this.lookUpEdit2; if (!string.IsNullOrEmpty(answeroption.ListOfBookingsAvailableLabel)) { this.lciListOfScheduleDropDown.Text = answeroption.ListOfBookingsAvailableLabel.Trim(); } else { this.lciListOfScheduleDropDown.Text = "List of Schedules Available:"; } this.lciListOfScheduleDropDown.TextLocation = DevExpress.Utils.Locations.Top; this.lciListOfScheduleDropDown.ShowInCustomizationForm = false; this.lciListOfScheduleDropDown.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.lciListOfScheduleDropDown.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.OnlyInCustomization; this.layoutControlGroupQuestion1.AddItem(this.lciListOfScheduleDropDown); // // simpleButton1 // this.PreviewBooking = new SimpleButton(); //this.PreviewBooking.Name = "PreviewDetails_simpleButton" + Guid.NewGuid().ToString(); this.PreviewBooking.Name = "PreviewBooking"; this.PreviewBooking.Size = new System.Drawing.Size(130, 22); this.PreviewBooking.StyleController = this.StyleController; if (!string.IsNullOrEmpty(answeroption.ViewDetailSummaryButtonLabel)) this.PreviewBooking.Text = answeroption.ViewDetailSummaryButtonLabel; else this.PreviewBooking.Text = "Preview Details"; this.PreviewBooking.Click += new EventHandler(viewDetailSummary_Click); this.PreviewBooking.Enabled = false; // lciListOfSchedulePreviewButton this.lciListOfSchedulePreviewButton = new LayoutControlItem(); this.lciListOfSchedulePreviewButton.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciListOfSchedulePreviewButton.Control = this.PreviewBooking; this.lciListOfSchedulePreviewButton.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciListOfSchedulePreviewButton.MaxSize = new System.Drawing.Size(100, 24); this.lciListOfSchedulePreviewButton.MinSize = new System.Drawing.Size(80, 24); this.lciListOfSchedulePreviewButton.Size = new System.Drawing.Size(80, 24); this.lciListOfSchedulePreviewButton.TextVisible = false; this.lciListOfSchedulePreviewButton.ShowInCustomizationForm = false; this.lciListOfSchedulePreviewButton.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.lciListOfSchedulePreviewButton); // // simpleButton1 // this.CreateMeeting = new SimpleButton(); //this.CreateMeeting.Name = "CreateMeeting_simpleButton" + Guid.NewGuid().ToString(); this.CreateMeeting.Name = "CreateMeeting"; this.CreateMeeting.Size = new System.Drawing.Size(130, 22); this.CreateMeeting.StyleController = this.StyleController; if (!string.IsNullOrEmpty(answeroption.CreateMeetingButtonLabel)) { if (answeroption.CreateMeetingButtonLabel.Trim().ToLower() == "create meeting") { this.CreateMeeting.Text = "Create/Edit Meeting"; } else { this.CreateMeeting.Text = answeroption.CreateMeetingButtonLabel; } } else { this.CreateMeeting.Text = "Create/Edit Meeting"; } this.CreateMeeting.Click += new EventHandler(createMeeting_Click); this.CreateMeeting.Enabled = false; // layoutControlItem1 this.lciListOfScheduleCreateEditButton = new LayoutControlItem(); if (answeroption.ScheduleType != null && answeroption.ScheduleType.ScheduleTypeSelectedValue == "Meeting") { //lookUpEdit2.Properties.ReadOnly = true; this.CreateMeeting.Tag = "HasMeeting"; } else this.lciListOfScheduleCreateEditButton.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; //this.lciListOfScheduleCreateEditButton.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciListOfScheduleCreateEditButton.Name = "lciListOfScheduleCreateEditButton"; this.lciListOfScheduleCreateEditButton.Control = this.CreateMeeting; this.lciListOfScheduleCreateEditButton.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciListOfScheduleCreateEditButton.MaxSize = new System.Drawing.Size(115, 24); this.lciListOfScheduleCreateEditButton.MinSize = new System.Drawing.Size(115, 24); this.lciListOfScheduleCreateEditButton.Size = new System.Drawing.Size(115, 24); this.lciListOfScheduleCreateEditButton.TextVisible = false; this.lciListOfScheduleCreateEditButton.ShowInCustomizationForm = false; this.lciListOfScheduleCreateEditButton.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.lciListOfScheduleCreateEditButton, this.lciListOfSchedulePreviewButton, DevExpress.XtraLayout.Utils.InsertType.Right); // // simpleButton1 // this.DeleteMeeting = new SimpleButton(); //this.DeleteMeeting.Name = "DeleteMeeting_simpleButton" + Guid.NewGuid().ToString(); this.DeleteMeeting.Name = "DeleteMeeting"; this.DeleteMeeting.Size = new System.Drawing.Size(130, 22); this.DeleteMeeting.StyleController = this.StyleController; this.DeleteMeeting.Text = "Delete Meeting"; this.DeleteMeeting.Click += new EventHandler(deleteMeeting_Click); this.DeleteMeeting.Enabled = false; // lciListOfScheduleDeleteButton this.lciListOfScheduleDeleteButton = new LayoutControlItem(); if (answeroption.ScheduleType != null && answeroption.ScheduleType.ScheduleTypeSelectedValue == "Meeting") { this.DeleteMeeting.Tag = "HasMeeting"; //lookUpEdit2.Properties.ReadOnly = true; var lueData = lookUpEdit2.Tag as ScheduleData; lueData.IsMeeting = true; } else this.lciListOfScheduleDeleteButton.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; this.lciListOfScheduleDeleteButton.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciListOfScheduleDeleteButton.Control = this.DeleteMeeting; this.lciListOfScheduleDeleteButton.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciListOfScheduleDeleteButton.MaxSize = new System.Drawing.Size(100, 24); this.lciListOfScheduleDeleteButton.MinSize = new System.Drawing.Size(80, 24); this.lciListOfScheduleDeleteButton.Size = new System.Drawing.Size(80, 24); this.lciListOfScheduleDeleteButton.TextVisible = false; this.lciListOfScheduleDeleteButton.ShowInCustomizationForm = false; this.lciListOfScheduleDeleteButton.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.lciListOfScheduleDeleteButton, this.lciListOfScheduleCreateEditButton, DevExpress.XtraLayout.Utils.InsertType.Right); ////load answer values //if (answeroption.ScheduleType != null) { // if (answeroption.ScheduleValue != null) { // if (!string.IsNullOrEmpty(answeroption.ScheduleValue.ScheduleId)) { // int schedid = int.Parse(answeroption.ScheduleValue.ScheduleId); // lookUpEdit2.EditValue = schedid; // //if (answeroption.ScheduleType.ScheduleTypeSelectedValue.ToLower() == "meeting") { // // CreateMeeting.Enabled = true; // //} // } // } //} // emptySpaceItem1 this.emptySpaceItem1 = new EmptySpaceItem(); this.emptySpaceItem1.Name = "emptySpaceItem" + Guid.NewGuid().ToString(); this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.emptySpaceItem1.MaxSize = new System.Drawing.Size(0, 20); this.emptySpaceItem1.MinSize = new System.Drawing.Size(0, 20); this.emptySpaceItem1.Size = new System.Drawing.Size(200, 20); this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.emptySpaceItem1.ShowInCustomizationForm = false; this.emptySpaceItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem1, this.lciListOfScheduleDeleteButton, DevExpress.XtraLayout.Utils.InsertType.Right); #endregion #region Customer Attendies #region Grid simpleLabelItemValidation = new SimpleLabelItem(); simpleLabelItemValidation.AppearanceItemCaption.BackColor = Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128))))); simpleLabelItemValidation.Name = Guid.NewGuid().ToString(); simpleLabelItemValidation.TextAlignMode = TextAlignModeItem.CustomSize; simpleLabelItemValidation.TextSize = new Size(212, 20); simpleLabelItemValidation.Text = " Please add at least one contact attendie."; simpleLabelItemValidation.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; this.layoutControlGroupQuestion1.AddItem(simpleLabelItemValidation); //create our gridcontrol // // gridColumn1 // this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn1.Caption = "Name"; this.gridColumn1.FieldName = "Name"; this.gridColumn1.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn1.Visible = true; this.gridColumn1.OptionsColumn.AllowEdit = false; this.gridColumn1.VisibleIndex = 0; this.gridColumn1.Width = 66; // // gridColumn2 // this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn2.Caption = "Address"; this.gridColumn2.FieldName = "Address"; this.gridColumn2.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn2.Visible = true; this.gridColumn2.OptionsColumn.AllowEdit = false; this.gridColumn2.VisibleIndex = 1; this.gridColumn2.Width = 66; // // gridColumn3 // //this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn(); //this.gridColumn3.Caption = "City"; //this.gridColumn3.FieldName = "City"; //this.gridColumn3.Name = "gridColumn" + Guid.NewGuid().ToString(); //this.gridColumn3.Visible = true; //this.gridColumn3.OptionsColumn.AllowEdit = false; //this.gridColumn3.VisibleIndex = 2; //this.gridColumn3.Width = 66; // // gridColumn4 // this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn4.Caption = "Telephone"; this.gridColumn4.FieldName = "Telephone"; this.gridColumn4.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn4.Visible = true; this.gridColumn4.OptionsColumn.AllowEdit = false; this.gridColumn4.VisibleIndex = 3; this.gridColumn4.Width = 66; // // gridColumn5 // this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn5.Caption = "Email"; this.gridColumn5.FieldName = "Email"; this.gridColumn5.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn5.Visible = true; this.gridColumn5.OptionsColumn.AllowEdit = false; this.gridColumn5.VisibleIndex = 4; this.gridColumn5.Width = 70; // // gridColumn6 // this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn6.Caption = "AccountID"; this.gridColumn6.FieldName = "AccountID"; this.gridColumn6.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn6.Visible = false; // // gridColumn7 // this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn(); this.gridColumn7.Caption = "ContactID"; this.gridColumn7.FieldName = "ContactID"; this.gridColumn7.Name = "gridColumn" + Guid.NewGuid().ToString(); this.gridColumn7.Visible = false; // // gridView1 // this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gridColumn1, this.gridColumn2, //this.gridColumn3, this.gridColumn4, this.gridColumn5, this.gridColumn6, this.gridColumn7}); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView" + Guid.NewGuid().ToString(); this.gridView1.OptionsFind.AlwaysVisible = false; this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView1.OptionsSelection.MultiSelect = true; this.gridView1.OptionsView.ShowGroupPanel = false; this.gridView1.OptionsView.ColumnAutoWidth = true; this.gridView1.DataSourceChanged += new EventHandler(gridView1_DataSourceChanged); // // gridControl1 // this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl" + Guid.NewGuid().ToString(); this.gridControl1.Size = new System.Drawing.Size(150, 74); this.gridControl1.TabIndex = 11; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1}); SetCurrentAttendies(); var schedData = new ScheduleData() { Required = answeroption.AttendiesRequired }; if (gridView1.GridControl.DataSource != null) { List<ContactAttendie> gvDs = gridView1.GridControl.DataSource as List<ContactAttendie>; if (gvDs != null && gvDs.Count > 0) schedData.HasValue = true; } this.gridView1.Tag = schedData; // // lciGridControl // this.lciGridControl = new LayoutControlItem(); this.lciGridControl.Control = this.gridControl1; this.lciGridControl.Name = "layoutControlItem" + Guid.NewGuid().ToString(); if (!string.IsNullOrEmpty(answeroption.AttendiesLabel)) this.lciGridControl.Text = answeroption.AttendiesLabel; else this.lciGridControl.Text = "Attendies:"; this.lciGridControl.TextLocation = DevExpress.Utils.Locations.Top; this.lciGridControl.TextSize = new System.Drawing.Size(108, 13); this.lciGridControl.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciGridControl.MaxSize = new System.Drawing.Size(0, 90); this.lciGridControl.MinSize = new System.Drawing.Size(0, 90); this.lciGridControl.Size = new System.Drawing.Size(200, 90); this.lciGridControl.ShowInCustomizationForm = false; this.layoutControlGroupQuestion1.AddItem(this.lciGridControl); #endregion // // simpleButton1 // this.simpleButton1 = new SimpleButton(); this.simpleButton1.Name = "simpleButton" + Guid.NewGuid().ToString(); this.simpleButton1.Size = new System.Drawing.Size(130, 22); this.simpleButton1.StyleController = this.StyleController; this.simpleButton1.Enabled = false; if (!string.IsNullOrEmpty(answeroption.AddCallerButtonLabel)) this.simpleButton1.Text = answeroption.AddCallerButtonLabel; else this.simpleButton1.Text = "Add Caller"; this.simpleButton1.Click += new EventHandler(AddCaller_Click); // lciAddCaller this.lciAddCaller = new LayoutControlItem(); this.lciAddCaller.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciAddCaller.Control = this.simpleButton1; this.lciAddCaller.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciAddCaller.MaxSize = new System.Drawing.Size(80, 24); this.lciAddCaller.MinSize = new System.Drawing.Size(80, 24); this.lciAddCaller.Size = new System.Drawing.Size(80, 24); this.lciAddCaller.TextVisible = false; this.lciAddCaller.ShowInCustomizationForm = false; this.lciAddCaller.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.lciAddCaller); // // simpleButton2 // this.simpleButton2 = new SimpleButton(); this.simpleButton2.Name = "simpleButton" + Guid.NewGuid().ToString(); this.simpleButton2.Size = new System.Drawing.Size(130, 22); this.simpleButton2.StyleController = this.StyleController; this.simpleButton2.Enabled = false; if (!string.IsNullOrEmpty(answeroption.AddAdditionalAttendieButtonLabel)) this.simpleButton2.Text = answeroption.AddAdditionalAttendieButtonLabel; else this.simpleButton2.Text = "Add Additional"; this.simpleButton2.Click += new EventHandler(AddAdditional_Click); // layoutControlItem1 this.lciAddAdditional = new LayoutControlItem(); this.lciAddAdditional.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciAddAdditional.Control = this.simpleButton2; this.lciAddAdditional.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciAddAdditional.MaxSize = new System.Drawing.Size(100, 24); this.lciAddAdditional.MinSize = new System.Drawing.Size(80, 24); this.lciAddAdditional.Size = new System.Drawing.Size(80, 24); this.lciAddAdditional.TextVisible = false; this.lciAddAdditional.ShowInCustomizationForm = false; this.lciAddAdditional.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.lciAddAdditional, this.lciAddCaller, DevExpress.XtraLayout.Utils.InsertType.Right); // // simpleButton3 // this.simpleButton3 = new SimpleButton(); this.simpleButton3.Name = "simpleButton" + Guid.NewGuid().ToString(); this.simpleButton3.Size = new System.Drawing.Size(130, 22); this.simpleButton3.StyleController = this.StyleController; this.simpleButton3.Enabled = false; if (!string.IsNullOrEmpty(answeroption.DeleteAttendieButtonLabel)) this.simpleButton3.Text = answeroption.DeleteAttendieButtonLabel; else this.simpleButton3.Text = "Delete"; this.simpleButton3.Click += new EventHandler(DeleteAttendie_Click); // layoutControlItem2 this.lciDeleteCaller = new LayoutControlItem(); this.lciDeleteCaller.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciDeleteCaller.Control = this.simpleButton3; this.lciDeleteCaller.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.lciDeleteCaller.MaxSize = new System.Drawing.Size(70, 24); this.lciDeleteCaller.MinSize = new System.Drawing.Size(70, 24); this.lciDeleteCaller.Size = new System.Drawing.Size(70, 24); this.lciDeleteCaller.TextVisible = false; this.lciDeleteCaller.ShowInCustomizationForm = false; this.lciDeleteCaller.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.lciDeleteCaller, this.lciAddAdditional, DevExpress.XtraLayout.Utils.InsertType.Right); // emptySpaceItem1 this.emptySpaceItem1 = new EmptySpaceItem(); this.emptySpaceItem1.Name = "emptySpaceItem" + Guid.NewGuid().ToString(); this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; this.emptySpaceItem1.MaxSize = new System.Drawing.Size(0, 20); this.emptySpaceItem1.MinSize = new System.Drawing.Size(0, 20); this.emptySpaceItem1.Size = new System.Drawing.Size(200, 20); this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.emptySpaceItem1.ShowInCustomizationForm = false; this.emptySpaceItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem1, this.lciDeleteCaller, DevExpress.XtraLayout.Utils.InsertType.Right); #endregion #region Other Choices idx = 0; //EmptySpaceItem esitem = new EmptySpaceItem(); //esitem.Size = new Size(100, 20); //this.layoutControlGroupQuestion1.AddItem(esitem); foreach (OtherChoice oChoice in answeroption.OtherChoices) { if (oChoice.Enabled) { //if (!string.IsNullOrEmpty(oChoice.TextPrefix)) { // // simpleLabelItem1 // this.simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem(); // this.simpleLabelItem1.Name = "simpleLabelItem" + Guid.NewGuid().ToString(); // //this.simpleLabelItem1.ShowInCustomizationForm = false; // //this.simpleLabelItem1.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; // this.simpleLabelItem1.Text = oChoice.TextPrefix; // //newSize = new System.Drawing.Size(100, 20); // newSize = new System.Drawing.Size(20, 20); // this.simpleLabelItem1.SizeConstraintsType = SizeConstraintsType.Custom; // this.simpleLabelItem1.MaxSize = newSize; // this.simpleLabelItem1.MinSize = newSize; // this.simpleLabelItem1.Size = newSize; // this.simpleLabelItem1.AppearanceItemCaption.BackColor = System.Drawing.Color.Transparent; // this.simpleLabelItem1.ShowInCustomizationForm = false; // this.simpleLabelItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); // this.layoutControlGroupQuestion1.AddItem(this.simpleLabelItem1); //} else { // this.simpleLabelItem1 = null; //} // layoutControlItem1 this.lciOtherChoice = new LayoutControlItem(); //add textEdit1 to layout this.memoEdit1 = new MemoEdit(); this.memoEdit1.Tag = new ScheduleData() { ParentPositionIndex = "IndexPosition" + x.ToString(), PositionIndex = "IndexPosition" + idx.ToString(), ControlContainer = lciOtherChoice, Required = oChoice.Required, HasValue = !string.IsNullOrWhiteSpace(oChoice.DefaultInputValue) ? true : false, ChoiceOption = oChoice }; this.memoEdit1.Name = "textEdit" + Guid.NewGuid().ToString(); this.memoEdit1.Properties.ScrollBars = System.Windows.Forms.ScrollBars.None; this.memoEdit1.StyleController = this.StyleController; if (oChoice.DefaultInputValue != null) { this.memoEdit1.Text = oChoice.DefaultInputValue.Trim(); oChoice.InputValue = oChoice.DefaultInputValue.Trim(); } memoEdit1.TextChanged += new EventHandler(memoEdit1_TextChanged); memoEdit1.Resize += new EventHandler(memoEdit1_Resize); memoEdit1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.lciOtherChoice.Name = "layoutControlItem" + Guid.NewGuid().ToString(); this.lciOtherChoice.Control = this.memoEdit1; if (!string.IsNullOrEmpty(oChoice.TextPrefix)) { this.lciOtherChoice.Text = oChoice.TextPrefix; this.lciOtherChoice.TextVisible = true; this.lciOtherChoice.TextLocation = DevExpress.Utils.Locations.Top; this.lciOtherChoice.MaxSize = new Size(0, 41); this.lciOtherChoice.MinSize = new Size(0, 41); } else { this.lciOtherChoice.TextVisible = false; this.lciOtherChoice.MaxSize = new Size(0, 24); this.lciOtherChoice.MinSize = new Size(0, 24); } this.lciOtherChoice.SizeConstraintsType = SizeConstraintsType.Custom; this.lciOtherChoice.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.lciOtherChoice.ShowInCustomizationForm = false; this.layoutControlGroupQuestion1.AddItem(this.lciOtherChoice); idx++; } } #endregion } #region Footer //string prioText = oSettings.Priority; //if (oSettings.CustomerOwnership && oSettings.BVOwnership) { // prioText += "(Cust+BV)"; //} else if (oSettings.CustomerOwnership) { // prioText += "(Cust)"; //} else if (oSettings.BVOwnership) { // prioText += "(BV)"; //} //if (oSettings.PlotDoneStatus.Trim().ToLower() == "done") { // prioText += " Done"; //} //// simpleLabelItem1 status //this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); //this.emptySpaceItem1.Name = "simpleLabelItem" + Guid.NewGuid().ToString(); //this.emptySpaceItem1.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); //this.emptySpaceItem1.AppearanceItemCaption.Options.UseTextOptions = true; //this.emptySpaceItem1.ShowInCustomizationForm = false; //this.emptySpaceItem1.SizeConstraintsType = SizeConstraintsType.Custom; //this.emptySpaceItem1.Text = prioText; //this.emptySpaceItem1.TextVisible = true; //this.emptySpaceItem1.ShowInCustomizationForm = false; //this.emptySpaceItem1.Click += new EventHandler(layoutControlGroupQuestion1_Click); //this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem1); //if (!string.IsNullOrEmpty(oSettings.QuestionHelp)) { // this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); // this.emptySpaceItem2.Name = "simpleLabelItem" + Guid.NewGuid().ToString(); // this.emptySpaceItem2.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold); // this.emptySpaceItem2.AppearanceItemCaption.Options.UseTextOptions = true; // this.emptySpaceItem2.ShowInCustomizationForm = false; // this.emptySpaceItem2.Text = "Help"; // this.emptySpaceItem2.OptionsToolTip.ToolTip = oSettings.QuestionHelp.Trim(); // //apply tooltip controller from parent // //if (this.ToolTipController != null && this.ToolTipController.DefaultController != null) { // // this.emptySpaceItem2.OptionsToolTip.ToolTipController = ToolTipController.DefaultController; // //} // this.emptySpaceItem2.TextVisible = true; // this.emptySpaceItem2.Size = new Size(50, 20); // this.emptySpaceItem2.MaxSize = new Size(50, 20); // this.emptySpaceItem2.MinSize = new Size(50, 20); // this.emptySpaceItem2.SizeConstraintsType = SizeConstraintsType.Custom; // this.emptySpaceItem2.ShowInCustomizationForm = false; // this.emptySpaceItem2.Click += new EventHandler(layoutControlGroupQuestion1_Click); // this.emptySpaceItem2.AppearanceItemCaption.TextOptions.HAlignment = HorzAlignment.Far; // this.layoutControlGroupQuestion1.AddItem(this.emptySpaceItem2, this.emptySpaceItem1, DevExpress.XtraLayout.Utils.InsertType.Right); //} #endregion this.layoutControlGroupQuestion1.Click += new EventHandler(layoutControlGroupQuestion1_Click); this.layoutControlGroupQuestion1.EndUpdate(); Image bg = BGImage(this); if (bg != null) { this.layoutControlGroupQuestion1.BackgroundImage = bg; this.layoutControlGroupQuestion1.BackgroundImageVisible = true; } if (this.memoEdit1 != null) BackColor = this.memoEdit1.BackColor; //lookUpEdit2.EditValue = null; //lookUpEdit2.ItemIndex = 0; this.ControlGroup = this.layoutControlGroupQuestion1; this.ControlGroup.Tag = this; isLoaded = true; }
private void CreateQuestionnaire() { CampaignQuestionnaire _Questionnaire = null; DataBindings _BindingData = null; /** * initalize layout. */ #region Code Logic /** * DAN: FIX for issue: * https://brightvision.jira.com/browse/PLATFORM-2948 * https://brightvision.jira.com/browse/PLATFORM-2952 */ ((System.ComponentModel.ISupportInitialize)(this.groupControlDialog)).BeginInit(); this.groupControlDialog.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlDialog)).BeginInit(); this.layoutControlDialog.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pnlDialogControls)).BeginInit(); this.pnlDialogControls.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlMain)).BeginInit(); this.layoutControlMain.SuspendLayout(); this.SuspendLayout(); #endregion for (int i = 0; i < m_lstQuestionnaireDialog.Count; ++i) { /** * set binding data defaults. */ #region Code Logic _Questionnaire = m_lstQuestionnaireDialog[i]; _BindingData = _Questionnaire.Form.Settings.DataBindings; _BindingData.language_code = "SE"; _BindingData.contact_id = null; _BindingData.same_contact_binding = false; _BindingData.account_id = m_BrightSalesProperty.CommonProperty.CurrentWorkedAccountId.ToString(); //_AccountId.ToString(); _BindingData.campaign_id = m_BrightSalesProperty.CommonProperty.CampaignId.ToString(); //_CampaignId.ToString(); _BindingData.dialog_id = m_oDialog.id.ToString(); #endregion /** * set questionnaire. */ switch (_Questionnaire.Type.ToLower()) { #region Drop Box case QuestionTypeConstants.Dropbox: Dropbox _Dropbox = new Dropbox(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, DisableSelection = true, ToolTipController = defaultToolTipController1, IsInitializing = true, QuestionId = Convert.ToInt32(_BindingData.question_id), QuestionLayoutId = Convert.ToInt32(_BindingData.questionlayout_id), DefaultQuestionnaire = _Questionnaire, Questionnaire = _Questionnaire, InQuestionnaire = false }; _Dropbox.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); _Dropbox.BindControls(); this.layoutControlGroupQuestionnaire.Add(_Dropbox.ControlGroup); controlsInDialog.Add(_Dropbox); _Dropbox.IsInitializing = false; break; #endregion #region Multiple Choice case QuestionTypeConstants.MultipleChoice: Multiplechoice _MultipleChoice = new Multiplechoice(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, DisableSelection = true, ToolTipController = defaultToolTipController1, IsInitializing = true, QuestionId = Convert.ToInt32(_BindingData.question_id), QuestionLayoutId = Convert.ToInt32(_BindingData.questionlayout_id), DefaultQuestionnaire = _Questionnaire, Questionnaire = _Questionnaire, InQuestionnaire = false }; _MultipleChoice.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); _MultipleChoice.BindControls(); this.layoutControlGroupQuestionnaire.Add(_MultipleChoice.ControlGroup); controlsInDialog.Add(_MultipleChoice); _MultipleChoice.IsInitializing = false; break; #endregion #region Text Box case QuestionTypeConstants.Textbox: Textbox _Textbox = new Textbox(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, DisableSelection = true, ToolTipController = defaultToolTipController1, IsInitializing = true, QuestionId = Convert.ToInt32(_BindingData.question_id), QuestionLayoutId = Convert.ToInt32(_BindingData.questionlayout_id), DefaultQuestionnaire = _Questionnaire, Questionnaire = _Questionnaire, InQuestionnaire = false }; _Textbox.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); _Textbox.BindControls(); this.layoutControlGroupQuestionnaire.Add(_Textbox.ControlGroup); controlsInDialog.Add(_Textbox); _Textbox.IsInitializing = false; break; #endregion #region Schedule case QuestionTypeConstants.Schedule: Schedule _Schedule = new Schedule(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, IsInitializing = true, QuestionId = Convert.ToInt32(_BindingData.question_id), QuestionLayoutId = Convert.ToInt32(_BindingData.questionlayout_id), DefaultQuestionnaire = _Questionnaire, Questionnaire = _Questionnaire, InQuestionnaire = false }; _Schedule.SubcampaignID = SubCampaignId; _Schedule.DisableSelection = true; _Schedule.ToolTipController = defaultToolTipController1; _Schedule.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); _Schedule.ShowCalendarBookingClick += new EventHandler(oSchedule_ShowCalendarBookingClick); _Schedule.BindControls(); this.layoutControlGroupQuestionnaire.Add(_Schedule.ControlGroup); controlsInDialog.Add(_Schedule); _Schedule.IsInitializing = false; break; #endregion #region Smart Text case QuestionTypeConstants.SmartText: SmartText _SmartText = new SmartText(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, DisableSelection = true, ToolTipController = defaultToolTipController1, IsInitializing = true, QuestionId = Convert.ToInt32(_BindingData.question_id), QuestionLayoutId = Convert.ToInt32(_BindingData.questionlayout_id), DefaultQuestionnaire = _Questionnaire, Questionnaire = _Questionnaire, InQuestionnaire = false }; _SmartText.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); _SmartText.BindControls(); _SmartText.BindPropertyGrid(); this.layoutControlGroupQuestionnaire.Add(_SmartText.ControlGroup); controlsInDialog.Add(_SmartText); _SmartText.IsInitializing = false; break; #endregion } } /** * resume layout. */ #region Code Logic EmptySpaceItem emptySpaceItem1 = new EmptySpaceItem(); emptySpaceItem1.CustomizationFormText = "emptySpaceItemBottom"; emptySpaceItem1.Name = "emptySpaceItemBottom"; emptySpaceItem1.ShowInCustomizationForm = false; emptySpaceItem1.Size = new System.Drawing.Size(0, 0); emptySpaceItem1.Text = "emptySpaceItemBottom"; emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlGroupQuestionnaire.AddItem(emptySpaceItem1); //this.layoutControlGroupQuestionnaire = m_BrightSalesProperty.CampaignBooking.Questionnaire.QuestionnaireLayout; /** * DAN: FIX for issue: * https://brightvision.jira.com/browse/PLATFORM-2948 * https://brightvision.jira.com/browse/PLATFORM-2952 */ ((System.ComponentModel.ISupportInitialize)(this.groupControlDialog)).EndInit(); this.groupControlDialog.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlDialog)).EndInit(); this.layoutControlDialog.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pnlDialogControls)).EndInit(); this.pnlDialogControls.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlMain)).EndInit(); this.layoutControlMain.ResumeLayout(false); this.ResumeLayout(false); #endregion }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(ФормаПроверкиТестов)); this.layoutControl_main = new LayoutControl(); this.progressBarControl_проверка = new ProgressBarControl(); this.progressBarControl_общее = new ProgressBarControl(); this.simpleButton_ок = new SimpleButton(); this.layoutControlGroup1 = new LayoutControlGroup(); this.layoutControlItem1 = new LayoutControlItem(); this.layoutControlItem3 = new LayoutControlItem(); this.layoutControlItem4 = new LayoutControlItem(); this.emptySpaceItem1 = new EmptySpaceItem(); this.memoEdit_сообщения = new MemoEdit(); this.layoutControlItem2 = new LayoutControlItem(); this.layoutControl_main.BeginInit(); this.layoutControl_main.SuspendLayout(); this.progressBarControl_проверка.Properties.BeginInit(); this.progressBarControl_общее.Properties.BeginInit(); this.layoutControlGroup1.BeginInit(); this.layoutControlItem1.BeginInit(); this.layoutControlItem3.BeginInit(); this.layoutControlItem4.BeginInit(); this.emptySpaceItem1.BeginInit(); this.memoEdit_сообщения.Properties.BeginInit(); this.layoutControlItem2.BeginInit(); base.SuspendLayout(); this.layoutControl_main.Controls.Add(this.memoEdit_сообщения); this.layoutControl_main.Controls.Add(this.progressBarControl_проверка); this.layoutControl_main.Controls.Add(this.progressBarControl_общее); this.layoutControl_main.Controls.Add(this.simpleButton_ок); this.layoutControl_main.Dock = DockStyle.Fill; this.layoutControl_main.Location = new Point(0, 0); this.layoutControl_main.Name = "layoutControl_main"; this.layoutControl_main.Root = this.layoutControlGroup1; this.layoutControl_main.Size = new Size(0x25d, 410); this.layoutControl_main.TabIndex = 0; this.layoutControl_main.Text = "layoutControl1"; this.progressBarControl_проверка.Location = new Point(0x5d, 0x2f); this.progressBarControl_проверка.Name = "progressBarControl_проверка"; this.progressBarControl_проверка.Properties.Step = 1; this.progressBarControl_проверка.Size = new Size(0x1fa, 0x1d); this.progressBarControl_проверка.StyleController = this.layoutControl_main; this.progressBarControl_проверка.TabIndex = 6; this.progressBarControl_общее.Location = new Point(0x5d, 7); this.progressBarControl_общее.Name = "progressBarControl_общее"; this.progressBarControl_общее.Properties.Step = 1; this.progressBarControl_общее.Size = new Size(0x1fa, 0x1d); this.progressBarControl_общее.StyleController = this.layoutControl_main; this.progressBarControl_общее.TabIndex = 4; this.simpleButton_ок.Location = new Point(0x1f5, 0x17e); this.simpleButton_ок.Name = "simpleButton_ок"; this.simpleButton_ок.Size = new Size(0x62, 0x16); this.simpleButton_ок.StyleController = this.layoutControl_main; this.simpleButton_ок.TabIndex = 7; this.simpleButton_ок.Text = "OK"; this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem3, this.layoutControlItem4, this.emptySpaceItem1, this.layoutControlItem2 }); this.layoutControlGroup1.Location = new Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new Size(0x25d, 410); this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; this.layoutControlItem1.Control = this.progressBarControl_общее; this.layoutControlItem1.CustomizationFormText = "Общий процесс"; this.layoutControlItem1.Location = new Point(0, 0); this.layoutControlItem1.MaxSize = new Size(0, 40); this.layoutControlItem1.MinSize = new Size(0x93, 40); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new Size(0x25b, 40); this.layoutControlItem1.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem1.Text = "Общий процесс"; this.layoutControlItem1.TextLocation = Locations.Left; this.layoutControlItem1.TextSize = new Size(0x51, 20); this.layoutControlItem3.Control = this.progressBarControl_проверка; this.layoutControlItem3.CustomizationFormText = "Проверка теста"; this.layoutControlItem3.FillControlToClientArea = false; this.layoutControlItem3.Location = new Point(0, 40); this.layoutControlItem3.MaxSize = new Size(0, 40); this.layoutControlItem3.MinSize = new Size(0x93, 40); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new Size(0x25b, 40); this.layoutControlItem3.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem3.Text = "Проверка теста"; this.layoutControlItem3.TextLocation = Locations.Left; this.layoutControlItem3.TextSize = new Size(0x51, 20); this.layoutControlItem4.Control = this.simpleButton_ок; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new Point(0x1ee, 0x177); this.layoutControlItem4.MaxSize = new Size(0x6d, 0); this.layoutControlItem4.MinSize = new Size(0x6d, 0x21); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new Size(0x6d, 0x21); this.layoutControlItem4.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextLocation = Locations.Left; this.layoutControlItem4.TextSize = new Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new Point(0, 0x177); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new Size(0x1ee, 0x21); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new Size(0, 0); this.memoEdit_сообщения.Location = new Point(7, 0x57); this.memoEdit_сообщения.Name = "memoEdit_сообщения"; this.memoEdit_сообщения.Properties.Appearance.BackColor = SystemColors.ActiveCaptionText; this.memoEdit_сообщения.Properties.Appearance.Options.UseBackColor = true; this.memoEdit_сообщения.Properties.HideSelection = false; this.memoEdit_сообщения.Properties.ReadOnly = true; this.memoEdit_сообщения.Properties.WordWrap = false; this.memoEdit_сообщения.Size = new Size(0x250, 0x11c); this.memoEdit_сообщения.StyleController = this.layoutControl_main; this.memoEdit_сообщения.TabIndex = 8; this.layoutControlItem2.Control = this.memoEdit_сообщения; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new Point(0, 80); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new Size(0x25b, 0x127); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextLocation = Locations.Left; this.layoutControlItem2.TextSize = new Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(0x25d, 410); base.Controls.Add(this.layoutControl_main); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.Name = "ФормаПроверкиТестов"; base.StartPosition = FormStartPosition.CenterScreen; this.Text = "Проверка тестов"; this.layoutControl_main.EndInit(); this.layoutControl_main.ResumeLayout(false); this.progressBarControl_проверка.Properties.EndInit(); this.progressBarControl_общее.Properties.EndInit(); this.layoutControlGroup1.EndInit(); this.layoutControlItem1.EndInit(); this.layoutControlItem3.EndInit(); this.layoutControlItem4.EndInit(); this.emptySpaceItem1.EndInit(); this.memoEdit_сообщения.Properties.EndInit(); this.layoutControlItem2.EndInit(); base.ResumeLayout(false); }
private void ObjectSpace_ObjectChanged(object sender, ObjectChangedEventArgs e) { if (e.PropertyName == nameof(ReportExecution.DoSoReport)) { var layoutControl = View.Control as LayoutControl; var group = layoutControl.Items.OfType <LayoutControlGroup>().FirstOrDefault(x => x.CustomizationFormText == "Parameters"); //View.CreateControls(); var items = group.Items; //group.Dispose(); while (group.Items.Any()) { var item = group.Items.FirstOrDefault() as LayoutControlItem; if (item != null) { item.Control?.Hide(); item.Control?.Dispose(); group.Remove(item); } } ViewCurrentObject?.SpreadsheetControl?.Dispose(); if (ViewCurrentObject.DoSoReport != null) { var report = ViewCurrentObject.DoSoReport; var xml = report.Xml; ViewCurrentObject.SpreadsheetControl = new SpreadsheetControl(); using (var ms = new MemoryStream(Convert.FromBase64String(xml))) ViewCurrentObject.SpreadsheetControl.LoadDocument(ms, DocumentFormat.OpenXml); var ds = ViewCurrentObject.SpreadsheetControl.Document.MailMergeDataSource as DevExpress.DataAccess.Sql.SqlDataSource; if (ds == null) { return; } var parameters = ds.Queries.SelectMany(x => x.Parameters); foreach (var parameter in parameters) { var item = new LayoutControlItem() { Name = parameter.Name, OptionsToolTip = new BaseLayoutItemOptionsToolTip() { ToolTip = parameter.Name } }; var type = parameter.Type; if (type == typeof(int)) { item.Control = new IntegerEdit() { Dock = DockStyle.Fill, EditValue = Convert.ToInt32(parameter.Value), ToolTip = parameter.Name } } ; if (type == typeof(string)) { item.Control = new StringEdit() { Dock = DockStyle.Fill, EditValue = Convert.ToInt32(parameter.Value), ToolTip = parameter.Name } } ; if (type == typeof(decimal)) { item.Control = new DecimalEdit() { Dock = DockStyle.Fill, EditValue = Convert.ToInt32(parameter.Value), ToolTip = parameter.Name } } ; if (type == typeof(DateTime)) { item.Control = new DateTimeEdit() { Dock = DockStyle.Fill, EditValue = Convert.ToInt32(parameter.Value), ToolTip = parameter.Name } } ; //item.Control = new StringEdit(250) { Dock = DockStyle.Fill, EditValue = parameter.Value, ToolTip = parameter.Name }; break; (item.Control as DevExpress.XtraEditors.BaseEdit).EditValueChanged += (ss, ee) => { var value = (ss as DevExpress.XtraEditors.BaseEdit).EditValue; if (ss is IntegerEdit) { parameter.Value = Convert.ToInt32(value); } if (ss is StringEdit) { parameter.Value = value.ToString(); } if (ss is DecimalEdit) { parameter.Value = Convert.ToDecimal(value); } if (ss is DateTimeEdit) { parameter.Value = Convert.ToDateTime(value); } };// ReportExecutionViewController_EditValueChanged(ss, ee, parameter as QueryParameter); group.AddItem(item); } } var defaultItem = new EmptySpaceItem(); group.AddItem(defaultItem); } }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.cancelButton = new DevExpress.XtraEditors.SimpleButton(); this.rootLayout = new DevExpress.XtraLayout.LayoutControl(); this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); this.saveButton = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.rootLayout)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.cancelButton); this.layoutControl1.Controls.Add(this.rootLayout); this.layoutControl1.Controls.Add(this.saveButton); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(800, 600); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // cancelButton // this.cancelButton.Image = global::SCOUT.WinForms.Properties.Resources.cancel; this.cancelButton.Location = new System.Drawing.Point(356, 563); this.cancelButton.Name = "cancelButton"; this.cancelButton.Size = new System.Drawing.Size(221, 22); this.cancelButton.StyleController = this.layoutControl1; this.cancelButton.TabIndex = 6; this.cancelButton.Text = "Cancel"; // // rootLayout // this.rootLayout.Location = new System.Drawing.Point(12, 12); this.rootLayout.Name = "rootLayout"; this.rootLayout.Root = this.Root; this.rootLayout.Size = new System.Drawing.Size(776, 544); this.rootLayout.TabIndex = 5; this.rootLayout.Text = "layoutControl2"; // // Root // this.Root.CustomizationFormText = "Root"; this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.Root.GroupBordersVisible = false; this.Root.Location = new System.Drawing.Point(0, 0); this.Root.Name = "Root"; this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 2, 2); this.Root.Size = new System.Drawing.Size(776, 544); this.Root.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.Root.Text = "Root"; this.Root.TextVisible = false; // // saveButton // this.saveButton.Image = global::SCOUT.WinForms.Properties.Resources.disk; this.saveButton.Location = new System.Drawing.Point(587, 563); this.saveButton.Name = "saveButton"; this.saveButton.Size = new System.Drawing.Size(198, 22); this.saveButton.StyleController = this.layoutControl1; this.saveButton.TabIndex = 4; this.saveButton.Text = "Save"; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem2, this.emptySpaceItem1, this.layoutControlItem1, this.layoutControlItem3 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(800, 600); this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem2 // this.layoutControlItem2.Control = this.rootLayout; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 0); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(780, 548); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 548); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(341, 32); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem1 // this.layoutControlItem1.Control = this.saveButton; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(572, 548); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 5, 5, 5); this.layoutControlItem1.Size = new System.Drawing.Size(208, 32); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; // // layoutControlItem3 // this.layoutControlItem3.Control = this.cancelButton; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(341, 548); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 5, 5, 5); this.layoutControlItem3.Size = new System.Drawing.Size(231, 32); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // PersistentBaseControl // this.Controls.Add(this.layoutControl1); this.Name = "PersistentBaseControl"; this.Size = new System.Drawing.Size(800, 600); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.rootLayout)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); this.ResumeLayout(false); }
public void ___LoadDialogQuestionnaires() { m_AnswerBindingOnProgress = true; m_HasMustSaveDefaultValues = false; this.ResetToDefaultState(); this.BindDialogManagerData(); using (BrightPlatformEntities _efDbContext = new BrightPlatformEntities(UserSession.EntityConnection)) { m_oDialog = _efDbContext.dialogs.FirstOrDefault(i => i.subcampaign_id == SubCampaignId && i.is_active == true); if (m_oDialog == null) { bbiEditDialog.Enabled = false; NotificationDialog.Warning("Bright Sales", "There is no current dialog created for this customer's subcampaign."); return; } _efDbContext.Detach(m_oDialog); /** * Populate each JSON questionnaire from dialog text to list object type. */ #region Code Logic var CQList = new List<CampaignQuestionnaire>(); CampaignQuestionnaire oQuestionnaire = null; List<string> cbdList = new List<string>(); DataBindings oBindings = null; if (!string.IsNullOrEmpty(m_oDialog.dialog_text_json)) { var jaDiag = JArray.Parse(m_oDialog.dialog_text_json); jaDiag.ForEach(delegate(JToken jt) { /** * [@jeff 06.08.2012]: https://brightvision.jira.com/browse/PLATFORM-1467 * added json converter to convert raw json to string, before unescaping. */ string _jsonData = ValidationUtility.StripJsonInvalidChars(JsonConvert.ToString(jt.ToString(Formatting.None)).Unescape()); oQuestionnaire = CampaignQuestionnaire.InstanciateWith(_jsonData); if (oQuestionnaire != null) { CQList.Add(oQuestionnaire); oBindings = oQuestionnaire.Form.Settings.DataBindings; if (oBindings != null) { if (!string.IsNullOrEmpty(oBindings.questionlayout_id)) cbdList.Add(oBindings.questionlayout_id); } } }); } #endregion /** * Populate Answers to each questionnaire. */ #region Code Logic int? campaign_id = CampaignId; int? account_id = AccountId; int? contact_id = SelectedContact == null || SelectedContact.id <= 0 ? (int?)null : SelectedContact.id; int? dialog_id = m_oDialog.id; List<int> answerIdList = new List<int>(); //get all dialog answers based on questionlayout_ids and other params var listDialogAnswers = _efDbContext.FIGetDialogAnswers( string.Join(",", cbdList.Distinct().ToArray()), campaign_id, account_id, contact_id, dialog_id ).ToList().Clone(); /* * DAN: FIX for issue: * https://brightvision.jira.com/browse/PLATFORM-2948 * https://brightvision.jira.com/browse/PLATFORM-2952 */ //------------------------------------------------------------------------------------------------ ((System.ComponentModel.ISupportInitialize)(this.groupControlDialog)).BeginInit(); this.groupControlDialog.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlDialog)).BeginInit(); this.layoutControlDialog.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pnlDialogControls)).BeginInit(); this.pnlDialogControls.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlMain)).BeginInit(); this.layoutControlMain.SuspendLayout(); this.SuspendLayout(); //------------------------------------------------------------------------------------------------ //layoutControlGroupQuestionnaire.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; //this.layoutControlQuestionnaire.Visible = false; int rowcount = CQList.Count; IsInitializingDialogComponents = true; IsInitializedComponentsValid = false; var a = from oquestion in CQList select oquestion.Form.Settings.DataBindings; CTDialogAnswers dlgAnswer = null; for (int i = 0; i < rowcount; ++i) { oQuestionnaire = CQList[i]; oBindings = oQuestionnaire.Form.Settings.DataBindings; if (oBindings.account_level) { dlgAnswer = listDialogAnswers.FirstOrDefault(p => p.questionlayout_id == int.Parse(oBindings.questionlayout_id) && p.campaign_id == campaign_id && p.account_id == account_id && (p.account_level == true) && p.dialog_id == dialog_id); } else { dlgAnswer = listDialogAnswers.FirstOrDefault(p => p.questionlayout_id == int.Parse(oBindings.questionlayout_id) && p.campaign_id == campaign_id && p.account_id == account_id && (p.contact_id == contact_id && p.account_level == false) && p.dialog_id == dialog_id); } if (dlgAnswer != null) { oBindings.answer_id = dlgAnswer.id.ToString(); oBindings.account_level = dlgAnswer.account_level; oBindings.contact_id = contact_id.ToString(); answerIdList.Add(dlgAnswer.id); } else { m_HasMustSaveDefaultValues = true; oBindings.language_code = "SE"; oBindings.account_id = account_id.ToString(); oBindings.campaign_id = campaign_id.ToString(); oBindings.contact_id = contact_id.ToString(); oBindings.dialog_id = dialog_id.ToString(); } } //BPContext = new BrightPlatformEntities(UserSession.EntityConnection); var oQuestionsAnswers = _efDbContext.answers.Include("sub_answers").Where(ans => answerIdList.Contains(ans.id)); //if (oQuestionsAnswers != null) // _efDbContext.Detach(oQuestionsAnswers); for (int i = 0; i < rowcount; ++i) { oQuestionnaire = CQList[i]; oBindings = oQuestionnaire.Form.Settings.DataBindings; if (!oBindings.account_level && (contact_id == null || contact_id == 0)) continue; dlgAnswer = null; if (oBindings.answer_id != null) if (oBindings.answer_id.Length > 0) dlgAnswer = listDialogAnswers.FirstOrDefault(an => an.id == int.Parse(oBindings.answer_id)); switch (oQuestionnaire.Type.ToLower()) { #region Drop Box case QuestionTypeConstants.Dropbox: { Dropbox oDropbox = new Dropbox(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, DisableSelection = true, ToolTipController = defaultToolTipController1, IsInitializing = true, HasMustSaveDefaultValues = false, AccountId = m_BrightSalesProperty.CommonProperty.CurrentWorkedAccountId }; if (dlgAnswer != null) { int ansnwerID = int.Parse(oBindings.answer_id.ToString()); var answer = oQuestionsAnswers.FirstOrDefault(oa => oa.id == ansnwerID); oDropbox.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire, answer); } else { oDropbox.Questionnaire = oQuestionnaire; oDropbox.HasMustSaveDefaultValues = true; } oDropbox.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); oDropbox.BindControls(); if (oDropbox.ControlFooter != null && dlgAnswer != null) oDropbox.ControlFooter.SetSourceTooltip(dlgAnswer.source_contact, dlgAnswer.source_last_modified_by, dlgAnswer.source_last_modified_on.Value.ToString("yyyy-MM-dd")); this.layoutControlGroupQuestionnaire.Add(oDropbox.ControlGroup); controlsInDialog.Add(oDropbox); oDropbox.IsInitializing = false; break; } #endregion #region Multiple Choice case QuestionTypeConstants.MultipleChoice: { Multiplechoice oMultipleChoice = new Multiplechoice(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, DisableSelection = true, ToolTipController = defaultToolTipController1, IsInitializing = true, HasMustSaveDefaultValues = false, AccountId = m_BrightSalesProperty.CommonProperty.CurrentWorkedAccountId }; if (dlgAnswer != null) { int ansnwerID = int.Parse(oBindings.answer_id.ToString()); var answer = oQuestionsAnswers.FirstOrDefault(oa => oa.id == ansnwerID); oMultipleChoice.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire, answer); } else { oMultipleChoice.Questionnaire = oQuestionnaire; oMultipleChoice.HasMustSaveDefaultValues = true; } oMultipleChoice.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); oMultipleChoice.BindControls(); if (oMultipleChoice.ControlFooter != null && dlgAnswer != null) oMultipleChoice.ControlFooter.SetSourceTooltip(dlgAnswer.source_contact, dlgAnswer.source_last_modified_by, dlgAnswer.source_last_modified_on.Value.ToString("yyyy-MM-dd")); this.layoutControlGroupQuestionnaire.Add(oMultipleChoice.ControlGroup); controlsInDialog.Add(oMultipleChoice); oMultipleChoice.IsInitializing = false; break; } #endregion #region Text Box case QuestionTypeConstants.Textbox: { Textbox oTextbox = new Textbox(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, DisableSelection = true, ToolTipController = defaultToolTipController1, IsInitializing = true, HasMustSaveDefaultValues = false, AccountId = m_BrightSalesProperty.CommonProperty.CurrentWorkedAccountId }; if (dlgAnswer != null) { int ansnwerID = int.Parse(oBindings.answer_id.ToString()); var answer = oQuestionsAnswers.FirstOrDefault(oa => oa.id == ansnwerID); oTextbox.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire, answer); } else { oTextbox.Questionnaire = oQuestionnaire; oTextbox.HasMustSaveDefaultValues = true; } oTextbox.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); oTextbox.BindControls(); if (oTextbox.ControlFooter != null && dlgAnswer != null) oTextbox.ControlFooter.SetSourceTooltip(dlgAnswer.source_contact, dlgAnswer.source_last_modified_by, dlgAnswer.source_last_modified_on.Value.ToString("yyyy-MM-dd")); this.layoutControlGroupQuestionnaire.Add(oTextbox.ControlGroup); controlsInDialog.Add(oTextbox); oTextbox.IsInitializing = false; break; } #endregion #region Schedule case QuestionTypeConstants.Schedule: { Schedule oSchedule = new Schedule(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, IsInitializing = true, HasMustSaveDefaultValues = false, AccountId = m_BrightSalesProperty.CommonProperty.CurrentWorkedAccountId }; var result = SubCampaignContactList; if (result != null) oSchedule.ContactList = result; oSchedule.SubcampaignID = SubCampaignId; oSchedule.DisableSelection = true; oSchedule.ToolTipController = defaultToolTipController1; if (SelectedContact != null) oSchedule.SetCurrentCaller(SelectedContact, AccountId); if (dlgAnswer != null) { int ansnwerID = int.Parse(oBindings.answer_id.ToString()); var answer = oQuestionsAnswers.FirstOrDefault(oa => oa.id == ansnwerID); oSchedule.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire, answer); } else { oSchedule.Questionnaire = oQuestionnaire; oSchedule.HasMustSaveDefaultValues = true; } oSchedule.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); oSchedule.BindControls(); if (oSchedule.ControlFooter != null && dlgAnswer != null) oSchedule.ControlFooter.SetSourceTooltip(dlgAnswer.source_contact, dlgAnswer.source_last_modified_by, dlgAnswer.source_last_modified_on.Value.ToString("yyyy-MM-dd")); oSchedule.ShowCalendarBookingClick += new EventHandler(oSchedule_ShowCalendarBookingClick); this.layoutControlGroupQuestionnaire.Add(oSchedule.ControlGroup); controlsInDialog.Add(oSchedule); oSchedule.IsInitializing = false; break; } #endregion #region Smart Text case QuestionTypeConstants.SmartText: { SmartText oSmartText = new SmartText(this.layoutControlQuestionnaire) { ContactId = m_BrightSalesProperty.CommonProperty.CurrentWorkedContactId, DisableSelection = true, ToolTipController = defaultToolTipController1, IsInitializing = true, HasMustSaveDefaultValues = false, AccountId = m_BrightSalesProperty.CommonProperty.CurrentWorkedAccountId }; if (dlgAnswer != null) { int ansnwerID = int.Parse(oBindings.answer_id.ToString()); var answerD = oQuestionsAnswers.FirstOrDefault(oa => oa.id == ansnwerID); oSmartText.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire, answerD); } else { oSmartText.Questionnaire = oQuestionnaire; oSmartText.HasMustSaveDefaultValues = true; } oSmartText.UserId = UserSession.CurrentUser.UserId; oSmartText.UserName = UserSession.CurrentUser.UserFullName; /** * [jeff 05.16.2012]: https://brightvision.jira.com/browse/PLATFORM-1413 * added checking for null selected contact. */ if (SelectedContact == null) oSmartText.ContactName = ""; else oSmartText.ContactName = SelectedContact.first_name + ", " + SelectedContact.last_name; if (UserSession.CurrentUser.IsSubCampaignManager || UserSession.CurrentUser.IsCampaignOwner) oSmartText.CanEditAllRows = true; else oSmartText.CanEditAllRows = false; oSmartText.OnComponentNotifyChanged += new ComponentDialogNotifyChangedEventHandler(oComponents_OnComponentNotifyChanged); oSmartText.BindControls(); oSmartText.BindPropertyGrid(); if (oSmartText.ControlFooter != null && dlgAnswer != null) oSmartText.ControlFooter.SetSourceTooltip(dlgAnswer.source_contact, dlgAnswer.source_last_modified_by, dlgAnswer.source_last_modified_on.Value.ToString("yyyy-MM-dd")); this.layoutControlGroupQuestionnaire.Add(oSmartText.ControlGroup); controlsInDialog.Add(oSmartText); oSmartText.IsInitializing = false; break; } #endregion } } #endregion } EmptySpaceItem emptySpaceItem1 = new EmptySpaceItem(); emptySpaceItem1.CustomizationFormText = "emptySpaceItemBottom"; emptySpaceItem1.Name = "emptySpaceItemBottom"; emptySpaceItem1.ShowInCustomizationForm = false; emptySpaceItem1.Size = new System.Drawing.Size(0, 0); emptySpaceItem1.Text = "emptySpaceItemBottom"; emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlGroupQuestionnaire.AddItem(emptySpaceItem1); /* * DAN: FIX for issue: * https://brightvision.jira.com/browse/PLATFORM-2948 * https://brightvision.jira.com/browse/PLATFORM-2952 */ //------------------------------------------------------------------------------------------------ ((System.ComponentModel.ISupportInitialize)(this.groupControlDialog)).EndInit(); this.groupControlDialog.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlDialog)).EndInit(); this.layoutControlDialog.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pnlDialogControls)).EndInit(); this.pnlDialogControls.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlMain)).EndInit(); this.layoutControlMain.ResumeLayout(false); this.ResumeLayout(false); //------------------------------------------------------------------------------------------------ this.SetEditableComponent(false); IsInitializedComponentsValid = this.ValidateDialog(false); //this.layoutControlGroupQuestionnaire.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always; //this.layoutControlQuestionnaire.BestFit(); //this.layoutControlQuestionnaire.Visible = true; //this.layoutControlQuestionnaire.Update(); //this.layoutControlQuestionnaire.Size = new Size(this.layoutControlQuestionnaire.Size.Width + 1, this.layoutControlQuestionnaire.Size.Height); IsInitializingDialogComponents = false; m_AnswerBindingOnProgress = false; if (bbiDialogStatus.EditValue != null) m_CurrentStatus = bbiDialogStatus.EditValue.ToString(); bbiEditDialog.Enabled = true; if (m_BrightSalesProperty.CommonProperty.CompanyLocked) bbiDeleteDialog.Enabled = false; }
/// <summary> /// View dialog /// </summary> private void ViewDialog() { m_oContactView.gvContact.OptionsFind.AlwaysVisible = true; WaitDialog.CreateWaitDialog("Loading dialog questionnaires..."); #region Populate each JSON questionnaire from dialog text to list object type var selectedContact = m_oContactView.SelectedContact; groupControlDialog.Text = string.Format("Dialog with: {0} {1}, {2}", selectedContact.first_name, selectedContact.last_name, SelectedCompany); m_oDialog = BPContext.dialogs.FirstOrDefault(p => p.subcampaign_id == oAppointment.SubCampaignId && //p.customers_id == oAppointment.CustomerId && p.is_active == true); if (m_oDialog == null) { MessageBox.Show("There is no current dialog created for this customer's subcampaign."); WaitDialog.CloseWaitDialog(); return; //prompt message saying that no dialog for current subcampaign and customer. } var CQList = new List<CampaignQuestionnaire>(); CampaignQuestionnaire oQuestionnaire = null; List<string> cbdList = new List<string>(); DataBindings oBindings = null; if (!string.IsNullOrEmpty(m_oDialog.dialog_text_json)) { var jaDiag = JArray.Parse(m_oDialog.dialog_text_json); jaDiag.ForEach(delegate(JToken jt) { oQuestionnaire = CampaignQuestionnaire.InstanciateWith(jt.ToString(Formatting.None).Unescape()); if (oQuestionnaire != null) { CQList.Add(oQuestionnaire); oBindings = oQuestionnaire.Form.Settings.DataBindings; if (oBindings != null) { if (!string.IsNullOrEmpty(oBindings.questionlayout_id)) { cbdList.Add(oBindings.questionlayout_id); } } } }); } #endregion #region Populate Answers to each questionnaire int? campaign_id = oAppointment.CampaignId; int? account_id = oAppointment.AccountId; int? contact_id = m_oContactView.SelectedContact.id; int? dialog_id = m_oDialog.id; //get all dialog answers based on questionlayout_ids and other params var listDialogAnswers = BPContext.FIGetDialogAnswers( string.Join(",", cbdList.Distinct().ToArray()), campaign_id, account_id, contact_id, dialog_id).ToList().Clone(); layoutControlGroupQuestionnaire.BeginUpdate(); layoutControlGroupQuestionnaire.BeginInit(); DisposeGroupControls(layoutControlGroupQuestionnaire); int rowcount = CQList.Count; CTDialogAnswers dlgAnswer = null; for (int i = 0; i < rowcount; ++i) { oQuestionnaire = CQList[i]; oBindings = oQuestionnaire.Form.Settings.DataBindings; dlgAnswer = listDialogAnswers.FirstOrDefault(p => p.questionlayout_id == int.Parse(oBindings.questionlayout_id) && p.campaign_id == campaign_id && p.account_id == account_id && p.contact_id == contact_id && p.dialog_id == dialog_id); if (dlgAnswer != null) { oBindings.answer_id = dlgAnswer.id.ToString(); } else { oBindings.account_id = account_id.ToString(); oBindings.campaign_id = campaign_id.ToString(); oBindings.contact_id = contact_id.ToString(); oBindings.dialog_id = dialog_id.ToString(); oBindings.created_by = UserSession.CurrentUser.UserId.ToString(); } switch (oQuestionnaire.Type.ToLower()) { case QuestionTypeConstants.Dropbox: Dropbox oDropbox = new Dropbox(this.layoutControlQuestionnaire); oDropbox.DisableSelection = true; oDropbox.ToolTipController = defaultToolTipController1; //load answers for this questionnaire if (dlgAnswer != null) { oDropbox.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire); } else { oDropbox.Questionnaire = oQuestionnaire; } oDropbox.BindControls(); this.layoutControlGroupQuestionnaire.Add(oDropbox.ControlGroup); break; case QuestionTypeConstants.MultipleChoice: Multiplechoice oMultipleChoice = new Multiplechoice(this.layoutControlQuestionnaire); oMultipleChoice.DisableSelection = true; oMultipleChoice.ToolTipController = defaultToolTipController1; //load answers for this questionnaire if (dlgAnswer != null) { oMultipleChoice.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire); } else { oMultipleChoice.Questionnaire = oQuestionnaire; } oMultipleChoice.BindControls(); this.layoutControlGroupQuestionnaire.Add(oMultipleChoice.ControlGroup); break; case QuestionTypeConstants.Textbox: Textbox oTextbox = new Textbox(this.layoutControlQuestionnaire); oTextbox.DisableSelection = true; oTextbox.ToolTipController = defaultToolTipController1; //load answers for this questionnaire if (dlgAnswer != null) { oTextbox.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire); } else { oTextbox.Questionnaire = oQuestionnaire; } oTextbox.BindControls(); this.layoutControlGroupQuestionnaire.Add(oTextbox.ControlGroup); break; case QuestionTypeConstants.Schedule: Schedule oSchedule = new Schedule(this.layoutControlQuestionnaire); var result = m_oContactView.gcContact.DataSource as List<CTScSubCampaignContactList>; if (result != null) oSchedule.SubCampaignContactList = result; oSchedule.SubcampaignID = oAppointment.SubCampaignId; oSchedule.DisableSelection = true; oSchedule.ToolTipController = defaultToolTipController1; if (m_oContactView.SelectedContact != null) { oSchedule.SetCurrentCaller(m_oContactView.SelectedContact, oAppointment.AccountId); } //load answers for this questionnaire if (dlgAnswer != null) { oSchedule.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire); } else { oSchedule.Questionnaire = oQuestionnaire; } oSchedule.BindControls(); oSchedule.ShowCalendarBookingClick += new EventHandler(oSchedule_ShowCalendarBookingClick); this.layoutControlGroupQuestionnaire.Add(oSchedule.ControlGroup); break; //case QuestionTypeConstants.Seminar: // Seminar oSeminar = new Seminar(this.layoutControlQuestionnaire); // oSeminar.DisableSelection = true; // oSeminar.ToolTipController = defaultToolTipController1; // //load answers for this questionnaire // if (dlgAnswer != null) { // oSeminar.Questionnaire = BusinessAnswer.BindAnswer(oQuestionnaire); // } else { // oSeminar.Questionnaire = oQuestionnaire; // } // oSeminar.BindControls(); // this.layoutControlGroupQuestionnaire.Add(oSeminar.ControlGroup); // break; } } EmptySpaceItem emptySpaceItem1 = new EmptySpaceItem(); emptySpaceItem1.CustomizationFormText = "emptySpaceItemBottom"; emptySpaceItem1.Name = "emptySpaceItemBottom"; emptySpaceItem1.ShowInCustomizationForm = false; emptySpaceItem1.Size = new System.Drawing.Size(0, 0); emptySpaceItem1.Text = "emptySpaceItemBottom"; emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); //add bottom spacer this.layoutControlGroupQuestionnaire.AddItem(emptySpaceItem1); //set readonly and disabled controls -> for viewing only //this.layoutControlQuestionnaire.OptionsView.IsReadOnly = DevExpress.Utils.DefaultBoolean.True; SetEditableComponent(false); ValidateDialog(); this.layoutControlGroupQuestionnaire.EndInit(); this.layoutControlGroupQuestionnaire.EndUpdate(); this.layoutControlQuestionnaire.BestFit(); #endregion WaitDialog.CloseWaitDialog(); }
private void InitializeComponent() { this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.comboBoxEdit1 = new DevExpress.XtraEditors.ComboBoxEdit(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.txtLabel = new DevExpress.XtraEditors.LabelControl(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); this.labelcontrol = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.labelcontrol)).BeginInit(); this.SuspendLayout(); // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.emptySpaceItem1, this.emptySpaceItem2, this.emptySpaceItem3, this.labelcontrol }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(317, 90); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.comboBoxEdit1; this.layoutControlItem1.CustomizationFormText = "${res:feature_app_all}"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 18); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(297, 24); this.layoutControlItem1.Text = "是否应用于所有"; this.layoutControlItem1.TextSize = new System.Drawing.Size(84, 14); // // comboBoxEdit1 // this.comboBoxEdit1.EditValue = "是"; this.comboBoxEdit1.Location = new System.Drawing.Point(100, 30); this.comboBoxEdit1.Name = "comboBoxEdit1"; this.comboBoxEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.DropDown) }); this.comboBoxEdit1.Properties.Items.AddRange(new object[] { "否", "是" }); this.comboBoxEdit1.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.comboBoxEdit1.Size = new System.Drawing.Size(205, 20); this.comboBoxEdit1.StyleController = this.layoutControl1; this.comboBoxEdit1.TabIndex = 4; // // layoutControl1 // this.layoutControl1.Controls.Add(this.txtLabel); this.layoutControl1.Controls.Add(this.simpleButton2); this.layoutControl1.Controls.Add(this.simpleButton1); this.layoutControl1.Controls.Add(this.comboBoxEdit1); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(317, 90); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // txtLabel // this.txtLabel.Appearance.ForeColor = System.Drawing.Color.Red; this.txtLabel.Location = new System.Drawing.Point(12, 12); this.txtLabel.Name = "txtLabel"; this.txtLabel.Size = new System.Drawing.Size(48, 14); this.txtLabel.StyleController = this.layoutControl1; this.txtLabel.TabIndex = 7; this.txtLabel.Text = "文件存在"; // // simpleButton2 // this.simpleButton2.DialogResult = System.Windows.Forms.DialogResult.OK; this.simpleButton2.Location = new System.Drawing.Point(152, 54); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(143, 22); this.simpleButton2.StyleController = this.layoutControl1; this.simpleButton2.TabIndex = 6; this.simpleButton2.Text = "覆盖"; this.simpleButton2.Click += new System.EventHandler(this.OnOverWriterClick); // // simpleButton1 // this.simpleButton1.DialogResult = System.Windows.Forms.DialogResult.OK; this.simpleButton1.Location = new System.Drawing.Point(22, 54); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(113, 22); this.simpleButton1.StyleController = this.layoutControl1; this.simpleButton1.TabIndex = 5; this.simpleButton1.Text = "跳过"; this.simpleButton1.Click += new System.EventHandler(this.OnSkipClick); // // layoutControlItem2 // this.layoutControlItem2.Control = this.simpleButton1; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(10, 42); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(117, 28); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // layoutControlItem3 // this.layoutControlItem3.Control = this.simpleButton2; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(140, 42); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(147, 28); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 42); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(10, 28); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(287, 42); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(10, 28); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem3 // this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(127, 42); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(13, 28); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // labelcontrol // this.labelcontrol.Control = this.txtLabel; this.labelcontrol.CustomizationFormText = "labelcontrol"; this.labelcontrol.Location = new System.Drawing.Point(0, 0); this.labelcontrol.Name = "labelcontrol"; this.labelcontrol.Size = new System.Drawing.Size(297, 18); this.labelcontrol.Text = "labelcontrol"; this.labelcontrol.TextSize = new System.Drawing.Size(0, 0); this.labelcontrol.TextToControlDistance = 0; this.labelcontrol.TextVisible = false; // // SameNameDlg // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(317, 90); this.ControlBox = false; this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "SameNameDlg"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "同名设置"; this.TopMost = true; ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBoxEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.labelcontrol)).EndInit(); this.ResumeLayout(false); }
public void UpdateFilterEditors(List <GridColumn> cols) { if (dictionary != null) { DisposeEdits(); } ClearLayout(); var items = new List <DevExpress.XtraLayout.BaseLayoutItem>(); dictionary = new Dictionary <GridColumn, BaseEdit>(); int i = 0; foreach (var col in cols.OrderBy(c => c.VisibleIndex)) { var repositoryEditor = view.GetRepositoryItem(col); var editor = repositoryEditor.CreateEditor(); editor.Text = ""; if (repositoryEditor is RepositoryItemTextEdit) { editor.Size = editor.MaximumSize = editor.MinimumSize = new Size(103, 20); } else if (repositoryEditor is RepositoryItemCheckEdit) { ((CheckEdit)editor).Properties.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Inactive; ((CheckEdit)editor).Properties.AllowGrayed = true; editor.EditValue = null; editor.Size = editor.MaximumSize = editor.MinimumSize = editor.CalcBestSize(); } ((BaseEdit)editor).EditValueChanged += FilterControl_EditValueChanged; dictionary.Add(col, (BaseEdit)editor); var item = layoutControlGroup1.AddItem(); editor.Name = Guid.NewGuid().ToString(); item.Control = editor; item.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; item.Name = col.FieldName; if (i != 0) { item.Move(items[i - 1], DevExpress.XtraLayout.Utils.InsertType.Right); } items.Add(item); i++; } if (items.Count > 0) { var buttonItem = layoutControlGroup1.AddItem(); if (btn != null) { btn.Dispose(); btn = null; } btn = new SimpleButton(); btn.Name = Guid.NewGuid().ToString(); btn.Size = btn.MaximumSize = btn.MinimumSize = new Size(60, 22); btn.Text = DevExpress.XtraGrid.Localization.GridLocalizer.Active.GetLocalizedString(DevExpress.XtraGrid.Localization.GridStringId.FilterPanelCustomizeButton); buttonItem.Control = btn; buttonItem.TextVisible = false; buttonItem.Move(items.Last(), DevExpress.XtraLayout.Utils.InsertType.Right); btn.Click += btn_Click; var emptySpaceItem = new EmptySpaceItem(); emptySpaceItem.Name = "emptySpaceItemNew"; layoutControl1.Root.AddItem(emptySpaceItem); emptySpaceItem.Move(buttonItem, DevExpress.XtraLayout.Utils.InsertType.Right); layoutControlGroup1.BestFit(); } }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(едакторФормул)); this.layoutControl1 = new LayoutControl(); this.ВыборОтчетнойФормы = new GridLookUpEdit(); this.gridLookUpEdit1View = new GridView(); this.gridColumn_Код = new GridColumn(); this.gridColumn_Идентификатор = new GridColumn(); this.gridColumn_Наименование = new GridColumn(); this.gridColumn_НачалоДействия = new GridColumn(); this.gridColumn_ОкончаниеДействия = new GridColumn(); this.simpleButton_Cancel = new SimpleButton(); this.simpleButton_Ok = new SimpleButton(); this.textEditФормула = new TextEdit(); this.tabТаблицы = new XtraTabControl(); this.layoutControlGroup1 = new LayoutControlGroup(); this.layoutControlItem2 = new LayoutControlItem(); this.layoutControlItem3 = new LayoutControlItem(); this.emptySpaceItem1 = new EmptySpaceItem(); this.emptySpaceItem2 = new EmptySpaceItem(); this.layoutControlItem4 = new LayoutControlItem(); this.layoutControlItem5 = new LayoutControlItem(); this.layoutControlItem1 = new LayoutControlItem(); this.layoutControl1.BeginInit(); this.layoutControl1.SuspendLayout(); this.ВыборОтчетнойФормы.Properties.BeginInit(); this.gridLookUpEdit1View.BeginInit(); this.textEditФормула.Properties.BeginInit(); this.tabТаблицы.BeginInit(); this.layoutControlGroup1.BeginInit(); this.layoutControlItem2.BeginInit(); this.layoutControlItem3.BeginInit(); this.emptySpaceItem1.BeginInit(); this.emptySpaceItem2.BeginInit(); this.layoutControlItem4.BeginInit(); this.layoutControlItem5.BeginInit(); this.layoutControlItem1.BeginInit(); base.SuspendLayout(); this.layoutControl1.Controls.Add(this.ВыборОтчетнойФормы); this.layoutControl1.Controls.Add(this.simpleButton_Cancel); this.layoutControl1.Controls.Add(this.simpleButton_Ok); this.layoutControl1.Controls.Add(this.textEditФормула); this.layoutControl1.Controls.Add(this.tabТаблицы); 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(0x282, 0x1e4); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; this.layoutControl1.KeyUp += new KeyEventHandler(this.MainView_KeyUp); this.layoutControl1.KeyDown += new KeyEventHandler(this.MainView_KeyDown); this.ВыборОтчетнойФормы.Location = new Point(0x61, 7); this.ВыборОтчетнойФормы.Name = "ВыборОтчетнойФормы"; this.ВыборОтчетнойФормы.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.ВыборОтчетнойФормы.Properties.NullText = ""; this.ВыборОтчетнойФормы.Properties.PopupFormMinSize = new Size(600, 0); this.ВыборОтчетнойФормы.Properties.View = this.gridLookUpEdit1View; this.ВыборОтчетнойФормы.Size = new Size(0xdb, 20); this.ВыборОтчетнойФормы.StyleController = this.layoutControl1; this.ВыборОтчетнойФормы.TabIndex = 9; this.ВыборОтчетнойФормы.EditValueChanged += new EventHandler(this.ВыборОтчетнойФормы_EditValueChanged); this.ВыборОтчетнойФормы.KeyUp += new KeyEventHandler(this.MainView_KeyUp); this.ВыборОтчетнойФормы.KeyDown += new KeyEventHandler(this.MainView_KeyDown); this.gridLookUpEdit1View.Columns.AddRange(new GridColumn[] { this.gridColumn_Код, this.gridColumn_Идентификатор, this.gridColumn_Наименование, this.gridColumn_НачалоДействия, this.gridColumn_ОкончаниеДействия }); this.gridLookUpEdit1View.FocusRectStyle = DrawFocusRectStyle.RowFocus; this.gridLookUpEdit1View.Name = "gridLookUpEdit1View"; this.gridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridLookUpEdit1View.OptionsView.ShowGroupPanel = false; this.gridLookUpEdit1View.OptionsView.ShowIndicator = false; this.gridLookUpEdit1View.KeyDown += new KeyEventHandler(this.MainView_KeyDown); this.gridLookUpEdit1View.KeyUp += new KeyEventHandler(this.MainView_KeyUp); this.gridColumn_Код.Caption = "Код формы"; this.gridColumn_Код.FieldName = "КодФормы"; this.gridColumn_Код.Name = "gridColumn_Код"; this.gridColumn_Код.Visible = true; this.gridColumn_Код.VisibleIndex = 0; this.gridColumn_Код.Width = 0x3a; this.gridColumn_Идентификатор.Caption = "Идентификатор"; this.gridColumn_Идентификатор.FieldName = "Идентификатор"; this.gridColumn_Идентификатор.Name = "gridColumn_Идентификатор"; this.gridColumn_Идентификатор.Visible = true; this.gridColumn_Идентификатор.VisibleIndex = 1; this.gridColumn_Идентификатор.Width = 0x3a; this.gridColumn_Наименование.Caption = "Наименование"; this.gridColumn_Наименование.FieldName = "Наименование"; this.gridColumn_Наименование.Name = "gridColumn_Наименование"; this.gridColumn_Наименование.Visible = true; this.gridColumn_Наименование.VisibleIndex = 2; this.gridColumn_Наименование.Width = 0x4d; this.gridColumn_НачалоДействия.Caption = "Начало действия"; this.gridColumn_НачалоДействия.FieldName = "НачалоДействия"; this.gridColumn_НачалоДействия.Name = "gridColumn_НачалоДействия"; this.gridColumn_НачалоДействия.Visible = true; this.gridColumn_НачалоДействия.VisibleIndex = 3; this.gridColumn_НачалоДействия.Width = 0x7a; this.gridColumn_ОкончаниеДействия.Caption = "Окончание действия"; this.gridColumn_ОкончаниеДействия.FieldName = "ОкончаниеДействия"; this.gridColumn_ОкончаниеДействия.Name = "gridColumn_ОкончаниеДействия"; this.gridColumn_ОкончаниеДействия.Visible = true; this.gridColumn_ОкончаниеДействия.VisibleIndex = 4; this.gridColumn_ОкончаниеДействия.Width = 0x53; this.simpleButton_Cancel.DialogResult = DialogResult.Cancel; this.simpleButton_Cancel.Location = new Point(0x215, 0x1c8); this.simpleButton_Cancel.Name = "simpleButton_Cancel"; this.simpleButton_Cancel.Size = new Size(0x67, 0x16); this.simpleButton_Cancel.StyleController = this.layoutControl1; this.simpleButton_Cancel.TabIndex = 8; this.simpleButton_Cancel.Text = "Отменить"; this.simpleButton_Cancel.KeyUp += new KeyEventHandler(this.MainView_KeyUp); this.simpleButton_Cancel.KeyDown += new KeyEventHandler(this.MainView_KeyDown); this.simpleButton_Ok.DialogResult = DialogResult.OK; this.simpleButton_Ok.Location = new Point(0x1a3, 0x1c8); this.simpleButton_Ok.Name = "simpleButton_Ok"; this.simpleButton_Ok.Size = new Size(0x67, 0x16); this.simpleButton_Ok.StyleController = this.layoutControl1; this.simpleButton_Ok.TabIndex = 7; this.simpleButton_Ok.Text = "Применить"; this.simpleButton_Ok.KeyUp += new KeyEventHandler(this.MainView_KeyUp); this.simpleButton_Ok.KeyDown += new KeyEventHandler(this.MainView_KeyDown); this.textEditФормула.Location = new Point(0x61, 0x26); this.textEditФормула.Name = "textEditФормула"; this.textEditФормула.Size = new Size(0x21b, 20); this.textEditФормула.StyleController = this.layoutControl1; this.textEditФормула.TabIndex = 6; this.textEditФормула.DragDrop += new DragEventHandler(this.textEditФормула_DragDrop); this.textEditФормула.KeyUp += new KeyEventHandler(this.MainView_KeyUp); this.textEditФормула.KeyDown += new KeyEventHandler(this.MainView_KeyDown); this.tabТаблицы.Location = new Point(7, 0x45); this.tabТаблицы.Name = "tabТаблицы"; this.tabТаблицы.Size = new Size(0x275, 0x178); this.tabТаблицы.TabIndex = 5; this.tabТаблицы.KeyUp += new KeyEventHandler(this.MainView_KeyUp); this.tabТаблицы.KeyDown += new KeyEventHandler(this.MainView_KeyDown); this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem2, this.layoutControlItem3, this.emptySpaceItem1, this.emptySpaceItem2, this.layoutControlItem4, this.layoutControlItem5, this.layoutControlItem1 }); this.layoutControlGroup1.Location = new Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new Size(0x282, 0x1e4); this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; this.layoutControlItem2.Control = this.tabТаблицы; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new Point(0, 0x3e); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new Size(640, 0x183); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextLocation = Locations.Left; this.layoutControlItem2.TextSize = new Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; this.layoutControlItem3.Control = this.textEditФормула; this.layoutControlItem3.CustomizationFormText = "Формула"; this.layoutControlItem3.Location = new Point(0, 0x1f); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new Size(640, 0x1f); this.layoutControlItem3.Text = "Формула"; this.layoutControlItem3.TextLocation = Locations.Left; this.layoutControlItem3.TextSize = new Size(0x55, 0x19); this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new Point(320, 0); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new Size(320, 0x1f); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new Size(0, 0); this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new Point(0, 0x1c1); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new Size(0x19c, 0x21); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new Size(0, 0); this.layoutControlItem4.Control = this.simpleButton_Ok; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new Point(0x19c, 0x1c1); this.layoutControlItem4.MaxSize = new Size(0x72, 0x21); this.layoutControlItem4.MinSize = new Size(0x72, 0x21); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new Size(0x72, 0x21); this.layoutControlItem4.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextLocation = Locations.Left; this.layoutControlItem4.TextSize = new Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; this.layoutControlItem5.Control = this.simpleButton_Cancel; this.layoutControlItem5.CustomizationFormText = "layoutControlItem5"; this.layoutControlItem5.Location = new Point(0x20e, 0x1c1); this.layoutControlItem5.MaxSize = new Size(0x72, 0x21); this.layoutControlItem5.MinSize = new Size(0x72, 0x21); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new Size(0x72, 0x21); this.layoutControlItem5.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem5.Text = "layoutControlItem5"; this.layoutControlItem5.TextLocation = Locations.Left; this.layoutControlItem5.TextSize = new Size(0, 0); this.layoutControlItem5.TextToControlDistance = 0; this.layoutControlItem5.TextVisible = false; this.layoutControlItem1.Control = this.ВыборОтчетнойФормы; this.layoutControlItem1.CustomizationFormText = "Отчетная форма"; this.layoutControlItem1.Location = new Point(0, 0); this.layoutControlItem1.MaxSize = new Size(320, 0x1f); this.layoutControlItem1.MinSize = new Size(320, 0x1f); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new Size(320, 0x1f); this.layoutControlItem1.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem1.Text = "Отчетная форма"; this.layoutControlItem1.TextLocation = Locations.Left; this.layoutControlItem1.TextSize = new Size(0x55, 20); base.AcceptButton = this.simpleButton_Ok; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.CancelButton = this.simpleButton_Cancel; base.ClientSize = new Size(0x282, 0x1e4); base.Controls.Add(this.layoutControl1); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.Name = "РедакторФормул"; base.StartPosition = FormStartPosition.CenterScreen; this.Text = "Редактор формул"; base.WindowState = FormWindowState.Maximized; base.Load += new EventHandler(this.едакторФормул_Load); base.KeyUp += new KeyEventHandler(this.MainView_KeyUp); base.KeyDown += new KeyEventHandler(this.MainView_KeyDown); this.layoutControl1.EndInit(); this.layoutControl1.ResumeLayout(false); this.ВыборОтчетнойФормы.Properties.EndInit(); this.gridLookUpEdit1View.EndInit(); this.textEditФормула.Properties.EndInit(); this.tabТаблицы.EndInit(); this.layoutControlGroup1.EndInit(); this.layoutControlItem2.EndInit(); this.layoutControlItem3.EndInit(); this.emptySpaceItem1.EndInit(); this.emptySpaceItem2.EndInit(); this.layoutControlItem4.EndInit(); this.layoutControlItem5.EndInit(); this.layoutControlItem1.EndInit(); base.ResumeLayout(false); }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(ФормаДинамическойТаблицы)); this.layoutMain = new LayoutControl(); this.simpleButton_сохранить = new SimpleButton(); this.labelControl_заголовок = new LabelControl(); this.simpleButton_отмена = new SimpleButton(); this.simpleButton_применить = new SimpleButton(); this.layoutMainGroup = new LayoutControlGroup(); this.layoutControlItem_отмена = new LayoutControlItem(); this.emptySpaceItem_bottom = new EmptySpaceItem(); this.layoutControlItem_применить = new LayoutControlItem(); this.emptySpaceItem_top = new EmptySpaceItem(); this.layoutControlItem_заголовок = new LayoutControlItem(); this.layoutControlItem_сохранить = new LayoutControlItem(); this.barManager1 = new BarManager(this.components); this.bar1 = new Bar(); this.bar2 = new Bar(); this.barButtonItem1 = new BarButtonItem(); this.bar3 = new Bar(); this.barDockControlTop = new BarDockControl(); this.barDockControlBottom = new BarDockControl(); this.barDockControlLeft = new BarDockControl(); this.barDockControlRight = new BarDockControl(); this.layoutMain.BeginInit(); this.layoutMain.SuspendLayout(); this.layoutMainGroup.BeginInit(); this.layoutControlItem_отмена.BeginInit(); this.emptySpaceItem_bottom.BeginInit(); this.layoutControlItem_применить.BeginInit(); this.emptySpaceItem_top.BeginInit(); this.layoutControlItem_заголовок.BeginInit(); this.layoutControlItem_сохранить.BeginInit(); this.barManager1.BeginInit(); base.SuspendLayout(); this.layoutMain.Appearance.DisabledLayoutGroupCaption.ForeColor = SystemColors.GrayText; this.layoutMain.Appearance.DisabledLayoutGroupCaption.Options.UseForeColor = true; this.layoutMain.Appearance.DisabledLayoutItem.ForeColor = SystemColors.GrayText; this.layoutMain.Appearance.DisabledLayoutItem.Options.UseForeColor = true; this.layoutMain.Controls.Add(this.simpleButton_сохранить); this.layoutMain.Controls.Add(this.labelControl_заголовок); this.layoutMain.Controls.Add(this.simpleButton_отмена); this.layoutMain.Controls.Add(this.simpleButton_применить); this.layoutMain.Dock = DockStyle.Fill; this.layoutMain.Location = new Point(0, 0x33); this.layoutMain.Name = "layoutMain"; this.layoutMain.Root = this.layoutMainGroup; this.layoutMain.Size = new Size(0x23f, 0x17f); this.layoutMain.TabIndex = 0; this.layoutMain.Text = "layoutControl1"; this.layoutMain.KeyUp += new KeyEventHandler(this.layoutMain_KeyUp); this.simpleButton_сохранить.Location = new Point(260, 0x1f); this.simpleButton_сохранить.Name = "simpleButton_сохранить"; this.simpleButton_сохранить.Size = new Size(0x67, 0x16); this.simpleButton_сохранить.StyleController = this.layoutMain; this.simpleButton_сохранить.TabIndex = 8; this.simpleButton_сохранить.Text = "Сохранить форму"; this.labelControl_заголовок.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold); this.labelControl_заголовок.Appearance.Options.UseFont = true; this.labelControl_заголовок.Location = new Point(7, 7); this.labelControl_заголовок.Name = "labelControl_заголовок"; this.labelControl_заголовок.Size = new Size(0x3e, 13); this.labelControl_заголовок.StyleController = this.layoutMain; this.labelControl_заголовок.TabIndex = 7; this.labelControl_заголовок.Text = "Заголовок"; this.simpleButton_отмена.DialogResult = DialogResult.Cancel; this.simpleButton_отмена.Location = new Point(0x1dd, 0x1f); this.simpleButton_отмена.Name = "simpleButton_отмена"; this.simpleButton_отмена.Size = new Size(0x5c, 0x16); this.simpleButton_отмена.StyleController = this.layoutMain; this.simpleButton_отмена.TabIndex = 5; this.simpleButton_отмена.Text = "Отмена"; this.simpleButton_отмена.KeyUp += new KeyEventHandler(this.simpleButton_отмена_KeyUp); this.simpleButton_применить.Location = new Point(0x176, 0x1f); this.simpleButton_применить.Name = "simpleButton_применить"; this.simpleButton_применить.Size = new Size(0x5c, 0x16); this.simpleButton_применить.StyleController = this.layoutMain; this.simpleButton_применить.TabIndex = 6; this.simpleButton_применить.Text = "Применить"; this.simpleButton_применить.Click += new EventHandler(this.simpleButton_применить_Click); this.simpleButton_применить.KeyUp += new KeyEventHandler(this.simpleButton_применить_KeyUp); this.layoutMainGroup.CustomizationFormText = "layoutControlGroup1"; this.layoutMainGroup.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem_отмена, this.emptySpaceItem_bottom, this.layoutControlItem_применить, this.emptySpaceItem_top, this.layoutControlItem_заголовок, this.layoutControlItem_сохранить }); this.layoutMainGroup.Location = new Point(0, 0); this.layoutMainGroup.Name = "layoutMainGroup"; this.layoutMainGroup.Size = new Size(0x23f, 0x17f); this.layoutMainGroup.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutMainGroup.Text = "layoutMainGroup"; this.layoutMainGroup.TextVisible = false; this.layoutControlItem_отмена.Control = this.simpleButton_отмена; this.layoutControlItem_отмена.CustomizationFormText = "layoutControlItem_отмена"; this.layoutControlItem_отмена.Location = new Point(470, 0x18); this.layoutControlItem_отмена.MaxSize = new Size(0x67, 0x21); this.layoutControlItem_отмена.MinSize = new Size(0x67, 0x21); this.layoutControlItem_отмена.Name = "layoutControlItem_отмена"; this.layoutControlItem_отмена.Size = new Size(0x67, 0x165); this.layoutControlItem_отмена.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem_отмена.Text = "layoutControlItem_отмена"; this.layoutControlItem_отмена.TextLocation = Locations.Left; this.layoutControlItem_отмена.TextSize = new Size(0, 0); this.layoutControlItem_отмена.TextToControlDistance = 0; this.layoutControlItem_отмена.TextVisible = false; this.emptySpaceItem_bottom.CustomizationFormText = "emptySpaceItem_bottom"; this.emptySpaceItem_bottom.Location = new Point(0, 0x18); this.emptySpaceItem_bottom.Name = "emptySpaceItem_bottom"; this.emptySpaceItem_bottom.Size = new Size(0xfd, 0x165); this.emptySpaceItem_bottom.Text = "emptySpaceItem_bottom"; this.emptySpaceItem_bottom.TextSize = new Size(0, 0); this.layoutControlItem_применить.Control = this.simpleButton_применить; this.layoutControlItem_применить.CustomizationFormText = "layoutControlItem_применить"; this.layoutControlItem_применить.Location = new Point(0x16f, 0x18); this.layoutControlItem_применить.MaxSize = new Size(0x67, 0x21); this.layoutControlItem_применить.MinSize = new Size(0x67, 0x21); this.layoutControlItem_применить.Name = "layoutControlItem_применить"; this.layoutControlItem_применить.Size = new Size(0x67, 0x165); this.layoutControlItem_применить.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem_применить.Text = "layoutControlItem_применить"; this.layoutControlItem_применить.TextLocation = Locations.Left; this.layoutControlItem_применить.TextSize = new Size(0, 0); this.layoutControlItem_применить.TextToControlDistance = 0; this.layoutControlItem_применить.TextVisible = false; this.emptySpaceItem_top.CustomizationFormText = "Субтаблица"; this.emptySpaceItem_top.Location = new Point(0x49, 0); this.emptySpaceItem_top.Name = "emptySpaceItem_top"; this.emptySpaceItem_top.Size = new Size(500, 0x18); this.emptySpaceItem_top.Text = "Субтаблица"; this.emptySpaceItem_top.TextSize = new Size(0, 0); this.layoutControlItem_заголовок.Control = this.labelControl_заголовок; this.layoutControlItem_заголовок.CustomizationFormText = "layoutControlItem_заголовок"; this.layoutControlItem_заголовок.Location = new Point(0, 0); this.layoutControlItem_заголовок.Name = "layoutControlItem_заголовок"; this.layoutControlItem_заголовок.Size = new Size(0x49, 0x18); this.layoutControlItem_заголовок.Text = "layoutControlItem_заголовок"; this.layoutControlItem_заголовок.TextLocation = Locations.Left; this.layoutControlItem_заголовок.TextSize = new Size(0, 0); this.layoutControlItem_заголовок.TextToControlDistance = 0; this.layoutControlItem_заголовок.TextVisible = false; this.layoutControlItem_сохранить.Control = this.simpleButton_сохранить; this.layoutControlItem_сохранить.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem_сохранить.Location = new Point(0xfd, 0x18); this.layoutControlItem_сохранить.MaxSize = new Size(0x72, 0x21); this.layoutControlItem_сохранить.MinSize = new Size(0x72, 0x21); this.layoutControlItem_сохранить.Name = "layoutControlItem_сохранить"; this.layoutControlItem_сохранить.Size = new Size(0x72, 0x165); this.layoutControlItem_сохранить.SizeConstraintsType = SizeConstraintsType.Custom; this.layoutControlItem_сохранить.Text = "layoutControlItem_Сохранить"; this.layoutControlItem_сохранить.TextLocation = Locations.Left; this.layoutControlItem_сохранить.TextSize = new Size(0, 0); this.layoutControlItem_сохранить.TextToControlDistance = 0; this.layoutControlItem_сохранить.TextVisible = false; this.barManager1.AllowCustomization = false; this.barManager1.AllowShowToolbarsPopup = false; this.barManager1.Bars.AddRange(new Bar[] { this.bar1, this.bar2, this.bar3 }); this.barManager1.DockControls.Add(this.barDockControlTop); this.barManager1.DockControls.Add(this.barDockControlBottom); this.barManager1.DockControls.Add(this.barDockControlLeft); this.barManager1.DockControls.Add(this.barDockControlRight); this.barManager1.Form = this; this.barManager1.Items.AddRange(new BarItem[] { this.barButtonItem1 }); this.barManager1.MainMenu = this.bar2; this.barManager1.MaxItemId = 1; this.barManager1.ShowScreenTipsInToolbars = false; this.barManager1.StatusBar = this.bar3; this.bar1.BarName = "Tools"; this.bar1.DockCol = 0; this.bar1.DockRow = 1; this.bar1.DockStyle = BarDockStyle.Top; this.bar1.Text = "Tools"; this.bar1.Visible = false; this.bar2.BarName = "MainMenu"; this.bar2.DockCol = 0; this.bar2.DockRow = 0; this.bar2.DockStyle = BarDockStyle.Top; this.bar2.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.barButtonItem1) }); this.bar2.OptionsBar.AllowQuickCustomization = false; this.bar2.OptionsBar.DisableCustomization = true; this.bar2.OptionsBar.DrawDragBorder = false; this.bar2.OptionsBar.UseWholeRow = true; this.bar2.Text = "MainMenu"; this.barButtonItem1.Caption = "Справка"; this.barButtonItem1.Glyph = (Image)manager.GetObject("barButtonItem1.Glyph"); this.barButtonItem1.Id = 0; this.barButtonItem1.Name = "barButtonItem1"; this.barButtonItem1.PaintStyle = BarItemPaintStyle.CaptionGlyph; this.barButtonItem1.ItemClick += new ItemClickEventHandler(this.barButtonItem1_ItemClick); this.bar3.BarName = "Status bar"; this.bar3.CanDockStyle = BarCanDockStyle.Bottom; this.bar3.DockCol = 0; this.bar3.DockRow = 0; this.bar3.DockStyle = BarDockStyle.Bottom; this.bar3.OptionsBar.AllowQuickCustomization = false; this.bar3.OptionsBar.DrawDragBorder = false; this.bar3.OptionsBar.UseWholeRow = true; this.bar3.Text = "Status bar"; this.bar3.Visible = false; base.CancelButton = this.simpleButton_отмена; base.ClientSize = new Size(0x23f, 0x1c8); base.Controls.Add(this.layoutMain); base.Controls.Add(this.barDockControlLeft); base.Controls.Add(this.barDockControlRight); base.Controls.Add(this.barDockControlBottom); base.Controls.Add(this.barDockControlTop); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.Name = "ФормаДинамическойТаблицы"; base.KeyUp += new KeyEventHandler(this.ФормаДинамическойТаблицы_KeyUp); base.FormClosing += new FormClosingEventHandler(this.ФормаДинамическойТаблицы_FormClosing); this.layoutMain.EndInit(); this.layoutMain.ResumeLayout(false); this.layoutMainGroup.EndInit(); this.layoutControlItem_отмена.EndInit(); this.emptySpaceItem_bottom.EndInit(); this.layoutControlItem_применить.EndInit(); this.emptySpaceItem_top.EndInit(); this.layoutControlItem_заголовок.EndInit(); this.layoutControlItem_сохранить.EndInit(); this.barManager1.EndInit(); base.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.cmdEdit = new DevExpress.XtraEditors.ComboBoxEdit(); this.dateEdit = new DevExpress.XtraEditors.DateEdit(); this.spinEdit = new DevExpress.XtraEditors.SpinEdit(); this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); this.btnOK = new DevExpress.XtraEditors.SimpleButton(); this.txtInputValue = new DevExpress.XtraEditors.TextEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutText = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutSpin = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutDate = new DevExpress.XtraLayout.LayoutControlItem(); this.layoucombox = new DevExpress.XtraLayout.LayoutControlItem(); this.dxValidationProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXValidationProvider(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cmdEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit.Properties.CalendarTimeProperties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtInputValue.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutText)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutSpin)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoucombox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dxValidationProvider1)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.cmdEdit); this.layoutControl1.Controls.Add(this.dateEdit); this.layoutControl1.Controls.Add(this.spinEdit); this.layoutControl1.Controls.Add(this.btnCancel); this.layoutControl1.Controls.Add(this.btnOK); this.layoutControl1.Controls.Add(this.txtInputValue); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(367, 78); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // cmdEdit // this.cmdEdit.Location = new System.Drawing.Point(299, 12); this.cmdEdit.Name = "cmdEdit"; this.cmdEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cmdEdit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cmdEdit.Size = new System.Drawing.Size(56, 22); this.cmdEdit.StyleController = this.layoutControl1; this.cmdEdit.TabIndex = 3; // // dateEdit // this.dateEdit.EditValue = null; this.dateEdit.Location = new System.Drawing.Point(213, 12); this.dateEdit.Name = "dateEdit"; this.dateEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.dateEdit.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.dateEdit.Size = new System.Drawing.Size(55, 22); this.dateEdit.StyleController = this.layoutControl1; this.dateEdit.TabIndex = 2; // // spinEdit // this.spinEdit.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEdit.Location = new System.Drawing.Point(126, 12); this.spinEdit.Name = "spinEdit"; this.spinEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEdit.Size = new System.Drawing.Size(56, 22); this.spinEdit.StyleController = this.layoutControl1; this.spinEdit.TabIndex = 1; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(233, 38); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(53, 22); this.btnCancel.StyleController = this.layoutControl1; this.btnCancel.TabIndex = 5; this.btnCancel.Text = "取消"; // // btnOK // this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Location = new System.Drawing.Point(100, 38); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(60, 22); this.btnOK.StyleController = this.layoutControl1; this.btnOK.TabIndex = 4; this.btnOK.Text = "确定"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // txtInputValue // this.txtInputValue.Location = new System.Drawing.Point(39, 12); this.txtInputValue.Name = "txtInputValue"; this.txtInputValue.Size = new System.Drawing.Size(56, 22); this.txtInputValue.StyleController = this.layoutControl1; this.txtInputValue.TabIndex = 0; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutText, this.layoutControlItem2, this.layoutControlItem3, this.emptySpaceItem2, this.emptySpaceItem3, this.emptySpaceItem1, this.layoutSpin, this.layoutDate, this.layoucombox }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(367, 78); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutText // this.layoutText.Control = this.txtInputValue; this.layoutText.CustomizationFormText = "输入"; this.layoutText.Location = new System.Drawing.Point(0, 0); this.layoutText.Name = "layoutText"; this.layoutText.Size = new System.Drawing.Size(87, 26); this.layoutText.Text = "标注"; this.layoutText.TextSize = new System.Drawing.Size(24, 14); this.layoutText.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // layoutControlItem2 // this.layoutControlItem2.Control = this.btnOK; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(88, 26); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(64, 32); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // layoutControlItem3 // this.layoutControlItem3.Control = this.btnCancel; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(221, 26); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(57, 32); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(0, 26); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(88, 32); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem3 // this.emptySpaceItem3.AllowHotTrack = false; this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3"; this.emptySpaceItem3.Location = new System.Drawing.Point(152, 26); this.emptySpaceItem3.Name = "emptySpaceItem3"; this.emptySpaceItem3.Size = new System.Drawing.Size(69, 32); this.emptySpaceItem3.Text = "emptySpaceItem3"; this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(278, 26); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(69, 32); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutSpin // this.layoutSpin.Control = this.spinEdit; this.layoutSpin.CustomizationFormText = "输入"; this.layoutSpin.Location = new System.Drawing.Point(87, 0); this.layoutSpin.Name = "layoutSpin"; this.layoutSpin.Size = new System.Drawing.Size(87, 26); this.layoutSpin.Text = "输入"; this.layoutSpin.TextSize = new System.Drawing.Size(24, 14); this.layoutSpin.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // layoutDate // this.layoutDate.Control = this.dateEdit; this.layoutDate.CustomizationFormText = "输入"; this.layoutDate.Location = new System.Drawing.Point(174, 0); this.layoutDate.Name = "layoutDate"; this.layoutDate.Size = new System.Drawing.Size(86, 26); this.layoutDate.Text = "输入"; this.layoutDate.TextSize = new System.Drawing.Size(24, 14); this.layoutDate.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // layoucombox // this.layoucombox.Control = this.cmdEdit; this.layoucombox.CustomizationFormText = "输入"; this.layoucombox.Location = new System.Drawing.Point(260, 0); this.layoucombox.Name = "layoucombox"; this.layoucombox.Size = new System.Drawing.Size(87, 26); this.layoucombox.Text = "输入"; this.layoucombox.TextSize = new System.Drawing.Size(24, 14); this.layoucombox.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // AttributeEditDlg // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(367, 78); this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(373, 106); this.MinimumSize = new System.Drawing.Size(367, 78); this.Name = "AttributeEditDlg"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "属性编辑"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.cmdEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit.Properties.CalendarTimeProperties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtInputValue.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutText)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutSpin)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoucombox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dxValidationProvider1)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); this.propertyDescriptionControl1 = new DevExpress.XtraVerticalGrid.PropertyDescriptionControl(); this.propertyGridControl1 = new DevExpress.XtraVerticalGrid.PropertyGridControl(); this.txtDuration = new DevExpress.XtraEditors.Repository.RepositoryItemSpinEdit(); this.txtComment = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit(); this.txtName = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); this.row = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_name = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_comment = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_duration = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.row11 = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_x = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_y = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_z = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_heading = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_tilt = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.r_roll = new DevExpress.XtraVerticalGrid.Rows.EditorRow(); this.btnOK = new DevExpress.XtraEditors.SimpleButton(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.propertyGridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDuration)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtComment)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.txtName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.btnCancel); this.layoutControl1.Controls.Add(this.propertyDescriptionControl1); this.layoutControl1.Controls.Add(this.propertyGridControl1); this.layoutControl1.Controls.Add(this.btnOK); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(601, 110, 250, 350); this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(312, 374); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(161, 350); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(149, 22); this.btnCancel.StyleController = this.layoutControl1; this.btnCancel.TabIndex = 3; this.btnCancel.Text = "取消"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // propertyDescriptionControl1 // this.propertyDescriptionControl1.Location = new System.Drawing.Point(2, 282); this.propertyDescriptionControl1.Name = "propertyDescriptionControl1"; this.propertyDescriptionControl1.PropertyGrid = this.propertyGridControl1; this.propertyDescriptionControl1.Size = new System.Drawing.Size(308, 64); this.propertyDescriptionControl1.TabIndex = 1; this.propertyDescriptionControl1.TabStop = false; // // propertyGridControl1 // this.propertyGridControl1.Location = new System.Drawing.Point(2, 2); this.propertyGridControl1.Name = "propertyGridControl1"; this.propertyGridControl1.OptionsBehavior.ResizeHeaderPanel = false; this.propertyGridControl1.OptionsBehavior.ResizeRowHeaders = false; this.propertyGridControl1.OptionsBehavior.ResizeRowValues = false; this.propertyGridControl1.OptionsBehavior.UseDefaultEditorsCollection = false; this.propertyGridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.txtDuration, this.txtComment, this.txtName }); this.propertyGridControl1.Rows.AddRange(new DevExpress.XtraVerticalGrid.Rows.BaseRow[] { this.row, this.row11 }); this.propertyGridControl1.ShowButtonMode = DevExpress.XtraVerticalGrid.ShowButtonModeEnum.ShowAlways; this.propertyGridControl1.Size = new System.Drawing.Size(308, 265); this.propertyGridControl1.TabIndex = 0; // // txtDuration // this.txtDuration.AutoHeight = false; this.txtDuration.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.txtDuration.MaxValue = new decimal(new int[] { 65535, 0, 0, 0 }); this.txtDuration.MinValue = new decimal(new int[] { 1, 0, 0, 0 }); this.txtDuration.Name = "txtDuration"; // // txtComment // this.txtComment.MaxLength = 256; this.txtComment.Name = "txtComment"; // // txtName // this.txtName.AutoHeight = false; this.txtName.MaxLength = 100; this.txtName.Name = "txtName"; // // row // this.row.ChildRows.AddRange(new DevExpress.XtraVerticalGrid.Rows.BaseRow[] { this.r_name, this.r_comment, this.r_duration }); this.row.Name = "row"; this.row.Properties.Caption = "编辑"; this.row.Properties.FieldName = "Property1"; this.row.Properties.ReadOnly = true; // // r_name // this.r_name.Name = "r_name"; this.r_name.Properties.Caption = "名称"; this.r_name.Properties.FieldName = "Name"; this.r_name.Properties.RowEdit = this.txtName; // // r_comment // this.r_comment.Height = 70; this.r_comment.Name = "r_comment"; this.r_comment.Properties.Caption = "说明"; this.r_comment.Properties.FieldName = "Comment"; this.r_comment.Properties.RowEdit = this.txtComment; // // r_duration // this.r_duration.Name = "r_duration"; this.r_duration.Properties.Caption = "播放间隔(秒)"; this.r_duration.Properties.FieldName = "Duration"; this.r_duration.Properties.RowEdit = this.txtDuration; // // row11 // this.row11.ChildRows.AddRange(new DevExpress.XtraVerticalGrid.Rows.BaseRow[] { this.r_x, this.r_y, this.r_z, this.r_heading, this.r_tilt, this.r_roll }); this.row11.Name = "row11"; this.row11.Properties.Caption = "相机位置"; this.row11.Properties.FieldName = "Property2"; this.row11.Properties.ReadOnly = true; // // r_x // this.r_x.Name = "r_x"; this.r_x.Properties.Caption = "X"; this.r_x.Properties.FieldName = "X"; this.r_x.Properties.ReadOnly = true; // // r_y // this.r_y.Name = "r_y"; this.r_y.Properties.Caption = "Y"; this.r_y.Properties.FieldName = "Y"; this.r_y.Properties.ReadOnly = true; // // r_z // this.r_z.Name = "r_z"; this.r_z.Properties.Caption = "Z"; this.r_z.Properties.FieldName = "Z"; this.r_z.Properties.ReadOnly = true; // // r_heading // this.r_heading.Name = "r_heading"; this.r_heading.Properties.Caption = "Heading"; this.r_heading.Properties.FieldName = "Heading"; this.r_heading.Properties.ReadOnly = true; // // r_tilt // this.r_tilt.Name = "r_tilt"; this.r_tilt.Properties.Caption = "Tilt"; this.r_tilt.Properties.FieldName = "Tilt"; this.r_tilt.Properties.ReadOnly = true; // // r_roll // this.r_roll.Name = "r_roll"; this.r_roll.Properties.Caption = "Roll"; this.r_roll.Properties.FieldName = "Roll"; this.r_roll.Properties.ReadOnly = true; // // btnOK // this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Location = new System.Drawing.Point(2, 350); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(155, 22); this.btnOK.StyleController = this.layoutControl1; this.btnOK.TabIndex = 2; this.btnOK.Text = "确定"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem3, this.layoutControlItem1, this.layoutControlItem2, this.emptySpaceItem1, this.layoutControlItem4 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup1.Size = new System.Drawing.Size(312, 374); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem3 // this.layoutControlItem3.Control = this.btnOK; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 348); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(159, 26); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.propertyGridControl1; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(312, 269); this.layoutControlItem1.Text = "layoutControlItem1"; this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem1.TextToControlDistance = 0; this.layoutControlItem1.TextVisible = false; // // layoutControlItem2 // this.layoutControlItem2.Control = this.propertyDescriptionControl1; this.layoutControlItem2.CustomizationFormText = "layoutControlItem2"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 280); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(312, 68); this.layoutControlItem2.Text = "layoutControlItem2"; this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem2.TextToControlDistance = 0; this.layoutControlItem2.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 269); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(312, 11); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // layoutControlItem4 // this.layoutControlItem4.Control = this.btnCancel; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(159, 348); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(153, 26); this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; // // FormEditLocation // this.AcceptButton = this.btnOK; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(312, 374); this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.MaximizeBox = false; this.Name = "FormEditLocation"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "特定场景属性"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.propertyGridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtDuration)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtComment)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// 获取控件组是否为显示状态 /// </summary> /// <param name="control"></param> /// <returns></returns> public static bool GetVisibility(this EmptySpaceItem control) { return(control.Visibility == LayoutVisibility.Always); }
private void InitializeComponent() { this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.btnApply = new DevExpress.XtraEditors.SimpleButton(); this.spinEditY = new DevExpress.XtraEditors.SpinEdit(); this.spinEditX = new DevExpress.XtraEditors.SpinEdit(); this.spinEditZ = new DevExpress.XtraEditors.SpinEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.spinEditY.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditX.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditZ.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); this.SuspendLayout(); // // panelControl1 // this.panelControl1.Controls.Add(this.layoutControl1); this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl1.Location = new System.Drawing.Point(0, 0); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(342, 272); this.panelControl1.TabIndex = 4; // // layoutControl1 // this.layoutControl1.Controls.Add(this.btnApply); this.layoutControl1.Controls.Add(this.spinEditY); this.layoutControl1.Controls.Add(this.spinEditX); this.layoutControl1.Controls.Add(this.spinEditZ); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(2, 2); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(338, 268); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // btnApply // this.btnApply.Location = new System.Drawing.Point(194, 110); this.btnApply.Name = "btnApply"; this.btnApply.Size = new System.Drawing.Size(132, 22); this.btnApply.StyleController = this.layoutControl1; this.btnApply.TabIndex = 7; this.btnApply.Text = "应用"; this.btnApply.Click += new System.EventHandler(this.btnApply_Click); // // spinEditY // this.spinEditY.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEditY.Location = new System.Drawing.Point(27, 58); this.spinEditY.Name = "spinEditY"; this.spinEditY.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditY.Size = new System.Drawing.Size(299, 22); this.spinEditY.StyleController = this.layoutControl1; this.spinEditY.TabIndex = 6; // // spinEditX // this.spinEditX.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEditX.Location = new System.Drawing.Point(27, 32); this.spinEditX.Name = "spinEditX"; this.spinEditX.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditX.Size = new System.Drawing.Size(299, 22); this.spinEditX.StyleController = this.layoutControl1; this.spinEditX.TabIndex = 5; // // spinEditZ // this.spinEditZ.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEditZ.Location = new System.Drawing.Point(27, 84); this.spinEditZ.Name = "spinEditZ"; this.spinEditZ.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditZ.Size = new System.Drawing.Size(299, 22); this.spinEditZ.StyleController = this.layoutControl1; this.spinEditZ.TabIndex = 4; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4, this.emptySpaceItem1, this.emptySpaceItem2 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(338, 268); this.layoutControlGroup1.Text = "layoutControlGroup1"; // // layoutControlItem1 // this.layoutControlItem1.Control = this.spinEditZ; this.layoutControlItem1.CustomizationFormText = "layoutControlItem1"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 52); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(318, 26); this.layoutControlItem1.Text = "Z:"; this.layoutControlItem1.TextSize = new System.Drawing.Size(12, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.spinEditX; this.layoutControlItem2.CustomizationFormText = "X:"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 0); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(318, 26); this.layoutControlItem2.Text = "X:"; this.layoutControlItem2.TextSize = new System.Drawing.Size(12, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.spinEditY; this.layoutControlItem3.CustomizationFormText = "Y:"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 26); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(318, 26); this.layoutControlItem3.Text = "Y:"; this.layoutControlItem3.TextSize = new System.Drawing.Size(12, 14); // // layoutControlItem4 // this.layoutControlItem4.Control = this.btnApply; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(182, 78); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(136, 26); this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; // // emptySpaceItem1 // this.emptySpaceItem1.AllowHotTrack = false; this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1"; this.emptySpaceItem1.Location = new System.Drawing.Point(0, 78); this.emptySpaceItem1.Name = "emptySpaceItem1"; this.emptySpaceItem1.Size = new System.Drawing.Size(182, 26); this.emptySpaceItem1.Text = "emptySpaceItem1"; this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); // // emptySpaceItem2 // this.emptySpaceItem2.AllowHotTrack = false; this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2"; this.emptySpaceItem2.Location = new System.Drawing.Point(0, 104); this.emptySpaceItem2.Name = "emptySpaceItem2"; this.emptySpaceItem2.Size = new System.Drawing.Size(318, 124); this.emptySpaceItem2.Text = "emptySpaceItem2"; this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); // // UCGeometryEdit // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.panelControl1); this.Name = "UCGeometryEdit"; this.Size = new System.Drawing.Size(342, 272); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.spinEditY.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditX.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditZ.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); this.ResumeLayout(false); }