private void editProductionmonth_EditValueChanged(object sender, EventArgs e) { DevExpress.XtraEditors.SpinEdit theEdit = sender as DevExpress.XtraEditors.SpinEdit; SetProdmonth theNewMonth = new SetProdmonth(); decimal theProdMonth; theProdMonth = Convert.ToDecimal(theEdit.EditValue.ToString()); theNewMonth.getNewProdmonth(theProdMonth); if (theNewMonth.getProdmonth.ToString() != "-1") { prodmonth1.EditValue = theNewMonth.getProdmonth.ToString(); } }
/// <summary> /// 定额工程量系数更改以后 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void repositoryItemSpinEdit2_EditValueChanged(object sender, EventArgs e) { DataRowView QDcurrRow = this.QDSource.Current as DataRowView; DataRowView DEcurrRow = this.DESource.Current as DataRowView; if (QDcurrRow == null || DEcurrRow == null) { return; } DevExpress.XtraEditors.SpinEdit decSpinEdit = (sender as DevExpress.XtraEditors.SpinEdit); DEcurrRow["GCL"] = ToolKit.ParseDecimal(decSpinEdit.EditValue) * ToolKit.ParseDecimal(QDcurrRow["GCL"]); this.DEtreeList.Refresh(); }
/// <summary> /// 清单工程量系数更改以后 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void repositoryItemSpinEdit1_EditValueChanged(object sender, EventArgs e) { ///实物工程量 BaseUI BaseUIForm = null; Zhuangshi ZhuangshiForm = null; if (Basefrom is BaseUI) { BaseUIForm = Basefrom as BaseUI; } else if (Basefrom is Zhuangshi) { ZhuangshiForm = Basefrom as Zhuangshi; } decimal deSWGCL = 0; if (BaseUIForm != null) { try { deSWGCL = ToolKit.ParseDecimal(BaseUIForm.CurrRow["SWGCL"]); } catch (Exception) { } } else if (ZhuangshiForm != null) { try { deSWGCL = ToolKit.ParseDecimal(ZhuangshiForm.CurrRow["GCL"]); } catch (Exception) { } } DataRowView currRow = this.QDSource.Current as DataRowView; if (currRow == null) { return; } DevExpress.XtraEditors.SpinEdit decSpinEdit = (sender as DevExpress.XtraEditors.SpinEdit); currRow["GCL"] = deSWGCL * ToolKit.ParseDecimal(decSpinEdit.EditValue); foreach (DataRowView item in this.DESource) { item["GCL"] = ToolKit.ParseDecimal(item["XS"]) * ToolKit.ParseDecimal(currRow["GCL"]); } this.QDtreeList.Refresh(); this.DEtreeList.Refresh(); }
protected virtual void FormatControl(Control p_objControl) { if (p_objControl.GetType().ToString() == "VTNN.Lib.CustomDateEdit") { DevExpress.XtraEditors.DateEdit v_objDateEdit = (DevExpress.XtraEditors.DateEdit)p_objControl; v_objDateEdit.Format_VS1(); } if (p_objControl.GetType().ToString() == "VTNN.Lib.CustomSpinEdit") { DevExpress.XtraEditors.SpinEdit v_objSpinEdit = (DevExpress.XtraEditors.SpinEdit)p_objControl; v_objSpinEdit.Format(0, false, true, true); } if (p_objControl.GetType().ToString() == "VTNN.Lib.CustomLookUpEdit") { DevExpress.XtraEditors.LookUpEdit v_objLookupEdit = (DevExpress.XtraEditors.LookUpEdit)p_objControl; v_objLookupEdit.Format(false); } if (p_objControl.GetType().ToString() == "VTNN.Lib.CustomSearchLookUpEdit") { DevExpress.XtraEditors.SearchLookUpEdit v_objSearchLookUpEdit = (DevExpress.XtraEditors.SearchLookUpEdit)p_objControl; v_objSearchLookUpEdit.Format(true); } if (p_objControl.GetType().ToString() == "VTNN.Lib.CustomGridControl") { DevExpress.XtraGrid.GridControl v_objGridControl = (DevExpress.XtraGrid.GridControl)p_objControl; Format_Grid(v_objGridControl); } if (p_objControl.Controls != null) { foreach (Control v_objCon in p_objControl.Controls) { FormatControl(v_objCon); } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.render = new Prometheus.Core.Lightmap.Render(this.components); this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.rend = new DevExpress.XtraTab.XtraTabPage(); this.groupControl3 = new DevExpress.XtraEditors.GroupControl(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButtonGenerateFullBright = new DevExpress.XtraEditors.SimpleButton(); this.btn_Rnd = new DevExpress.XtraEditors.SimpleButton(); this.btn_RndTh = new DevExpress.XtraEditors.SimpleButton(); this.grp_ps = new DevExpress.XtraEditors.GroupControl(); this.spinEditRenderPassCount = new DevExpress.XtraEditors.SpinEdit(); this.label5 = new System.Windows.Forms.Label(); this.spin_bl = new DevExpress.XtraEditors.SpinEdit(); this.spin_pr = new DevExpress.XtraEditors.SpinEdit(); this.spin_pc = new DevExpress.XtraEditors.SpinEdit(); this.lb_pr = new System.Windows.Forms.Label(); this.lb_bl = new System.Windows.Forms.Label(); this.lb_pc = new System.Windows.Forms.Label(); this.lb_dDiff = new System.Windows.Forms.Label(); this.def_Diffuse = new DevExpress.XtraEditors.ColorEdit(); this.pp = new DevExpress.XtraTab.XtraTabPage(); this.groupControl4 = new DevExpress.XtraEditors.GroupControl(); this.memoEditAvailableBackups = new DevExpress.XtraEditors.MemoEdit(); this.label6 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.spinEditSaveHistoryDepth = new DevExpress.XtraEditors.SpinEdit(); this.label3 = new System.Windows.Forms.Label(); this.spinEditPassesBetweenSaves = new DevExpress.XtraEditors.SpinEdit(); this.checkBoxUseAutoSave = new System.Windows.Forms.CheckBox(); this.groupControl2 = new DevExpress.XtraEditors.GroupControl(); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.comboBoxEditFilterAlgo = new DevExpress.XtraEditors.ComboBoxEdit(); this.label2 = new System.Windows.Forms.Label(); this.comboBoxEditSaturationAlgo = new DevExpress.XtraEditors.ComboBoxEdit(); this.groupControl1 = new DevExpress.XtraEditors.GroupControl(); this.btn_Stp = new DevExpress.XtraEditors.SimpleButton(); this.btn_Save = new DevExpress.XtraEditors.SimpleButton(); this.btn_Res = new DevExpress.XtraEditors.SimpleButton(); this.pb = new DevExpress.XtraEditors.ProgressBarControl(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); this.xtraTabControl1.SuspendLayout(); this.rend.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.groupControl3)).BeginInit(); this.groupControl3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grp_ps)).BeginInit(); this.grp_ps.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.spinEditRenderPassCount.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spin_bl.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spin_pr.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spin_pc.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.def_Diffuse.Properties)).BeginInit(); this.pp.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.groupControl4)).BeginInit(); this.groupControl4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.memoEditAvailableBackups.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditSaveHistoryDepth.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditPassesBetweenSaves.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).BeginInit(); this.groupControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.comboBoxEditFilterAlgo.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBoxEditSaturationAlgo.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit(); this.groupControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pb.Properties)).BeginInit(); this.SuspendLayout(); // // render // this.render.MaxBounces = 1; this.render.MaxPhotons = 1000; this.render.ProgressUpdate += new Prometheus.Core.Lightmap.Render.ProgressChangeHandler(this.render_ProgressUpdate); // // xtraTabControl1 // this.xtraTabControl1.Controls.Add(this.rend); this.xtraTabControl1.Controls.Add(this.pp); this.xtraTabControl1.Location = new System.Drawing.Point(8, 8); this.xtraTabControl1.Name = "xtraTabControl1"; this.xtraTabControl1.SelectedTabPage = this.rend; this.xtraTabControl1.Size = new System.Drawing.Size(512, 279); this.xtraTabControl1.TabIndex = 0; this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.rend, this.pp }); this.xtraTabControl1.Text = "xtraTabControl1"; // // rend // this.rend.Controls.Add(this.groupControl3); this.rend.Controls.Add(this.grp_ps); this.rend.Name = "rend"; this.rend.Size = new System.Drawing.Size(506, 253); this.rend.Text = "Rendering"; // // groupControl3 // this.groupControl3.Controls.Add(this.simpleButton1); this.groupControl3.Controls.Add(this.simpleButtonGenerateFullBright); this.groupControl3.Controls.Add(this.btn_Rnd); this.groupControl3.Controls.Add(this.btn_RndTh); this.groupControl3.Location = new System.Drawing.Point(267, 7); this.groupControl3.Name = "groupControl3"; this.groupControl3.Size = new System.Drawing.Size(226, 231); this.groupControl3.TabIndex = 4; this.groupControl3.Text = "Lightmap Generation"; // // simpleButton1 // this.simpleButton1.Location = new System.Drawing.Point(13, 56); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(134, 28); this.simpleButton1.TabIndex = 1; this.simpleButton1.Text = "BSP Shadow Map"; // // simpleButtonGenerateFullBright // this.simpleButtonGenerateFullBright.Location = new System.Drawing.Point(13, 21); this.simpleButtonGenerateFullBright.Name = "simpleButtonGenerateFullBright"; this.simpleButtonGenerateFullBright.Size = new System.Drawing.Size(134, 28); this.simpleButtonGenerateFullBright.TabIndex = 0; this.simpleButtonGenerateFullBright.Text = "Generate Full Bright"; // // btn_Rnd // this.btn_Rnd.Location = new System.Drawing.Point(13, 91); this.btn_Rnd.Name = "btn_Rnd"; this.btn_Rnd.Size = new System.Drawing.Size(194, 28); this.btn_Rnd.TabIndex = 2; this.btn_Rnd.Text = "Create Photon Map (Silent Mode)"; this.btn_Rnd.Click += new System.EventHandler(this.btn_Rnd_Click); // // btn_RndTh // this.btn_RndTh.Location = new System.Drawing.Point(13, 126); this.btn_RndTh.Name = "btn_RndTh"; this.btn_RndTh.Size = new System.Drawing.Size(194, 28); this.btn_RndTh.TabIndex = 3; this.btn_RndTh.Text = "Create Photon Map (Preview Mode)"; this.btn_RndTh.Click += new System.EventHandler(this.btn_RndTh_Click); // // grp_ps // this.grp_ps.Controls.Add(this.spinEditRenderPassCount); this.grp_ps.Controls.Add(this.label5); this.grp_ps.Controls.Add(this.spin_bl); this.grp_ps.Controls.Add(this.spin_pr); this.grp_ps.Controls.Add(this.spin_pc); this.grp_ps.Controls.Add(this.lb_pr); this.grp_ps.Controls.Add(this.lb_bl); this.grp_ps.Controls.Add(this.lb_pc); this.grp_ps.Controls.Add(this.lb_dDiff); this.grp_ps.Controls.Add(this.def_Diffuse); this.grp_ps.Location = new System.Drawing.Point(7, 7); this.grp_ps.Name = "grp_ps"; this.grp_ps.Size = new System.Drawing.Size(253, 231); this.grp_ps.TabIndex = 3; this.grp_ps.Text = "Photon Mapping Settings"; // // spinEditRenderPassCount // this.spinEditRenderPassCount.EditValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.spinEditRenderPassCount.Location = new System.Drawing.Point(140, 106); this.spinEditRenderPassCount.Name = "spinEditRenderPassCount"; // // spinEditRenderPassCount.Properties // this.spinEditRenderPassCount.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditRenderPassCount.Properties.UseCtrlIncrement = false; this.spinEditRenderPassCount.Size = new System.Drawing.Size(80, 20); this.spinEditRenderPassCount.TabIndex = 8; // // label5 // this.label5.Location = new System.Drawing.Point(53, 106); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(87, 17); this.label5.TabIndex = 7; this.label5.Text = "Render Passes:"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // spin_bl // this.spin_bl.EditValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.spin_bl.Location = new System.Drawing.Point(140, 77); this.spin_bl.Name = "spin_bl"; // // spin_bl.Properties // this.spin_bl.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spin_bl.Properties.UseCtrlIncrement = false; this.spin_bl.Size = new System.Drawing.Size(80, 20); this.spin_bl.TabIndex = 6; // // spin_pr // this.spin_pr.EditValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.spin_pr.Location = new System.Drawing.Point(140, 49); this.spin_pr.Name = "spin_pr"; // // spin_pr.Properties // this.spin_pr.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spin_pr.Properties.UseCtrlIncrement = false; this.spin_pr.Size = new System.Drawing.Size(80, 20); this.spin_pr.TabIndex = 5; // // spin_pc // this.spin_pc.EditValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.spin_pc.Location = new System.Drawing.Point(140, 21); this.spin_pc.Name = "spin_pc"; // // spin_pc.Properties // this.spin_pc.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spin_pc.Properties.UseCtrlIncrement = false; this.spin_pc.Size = new System.Drawing.Size(80, 20); this.spin_pc.TabIndex = 4; // // lb_pr // this.lb_pr.Location = new System.Drawing.Point(27, 49); this.lb_pr.Name = "lb_pr"; this.lb_pr.Size = new System.Drawing.Size(111, 16); this.lb_pr.TabIndex = 2; this.lb_pr.Text = "Photon Texel Radius:"; this.lb_pr.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lb_bl // this.lb_bl.Location = new System.Drawing.Point(64, 77); this.lb_bl.Name = "lb_bl"; this.lb_bl.Size = new System.Drawing.Size(72, 17); this.lb_bl.TabIndex = 1; this.lb_bl.Text = "Bounce Limit:"; this.lb_bl.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lb_pc // this.lb_pc.Location = new System.Drawing.Point(60, 21); this.lb_pc.Name = "lb_pc"; this.lb_pc.Size = new System.Drawing.Size(80, 17); this.lb_pc.TabIndex = 0; this.lb_pc.Text = "Photon Count:"; this.lb_pc.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lb_dDiff // this.lb_dDiff.Location = new System.Drawing.Point(20, 133); this.lb_dDiff.Name = "lb_dDiff"; this.lb_dDiff.Size = new System.Drawing.Size(120, 17); this.lb_dDiff.TabIndex = 2; this.lb_dDiff.Text = "Default Diffuse Colour:"; this.lb_dDiff.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.lb_dDiff.Click += new System.EventHandler(this.lb_dDiff_Click); // // def_Diffuse // this.def_Diffuse.EditValue = System.Drawing.Color.White; this.def_Diffuse.Location = new System.Drawing.Point(140, 133); this.def_Diffuse.Name = "def_Diffuse"; // // def_Diffuse.Properties // this.def_Diffuse.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.def_Diffuse.Size = new System.Drawing.Size(80, 20); this.def_Diffuse.TabIndex = 0; this.def_Diffuse.EditValueChanged += new System.EventHandler(this.def_Diffuse_EditValueChanged); // // pp // this.pp.Controls.Add(this.groupControl4); this.pp.Controls.Add(this.groupControl2); this.pp.Name = "pp"; this.pp.Size = new System.Drawing.Size(506, 253); this.pp.Text = "Post Processing"; // // groupControl4 // this.groupControl4.Controls.Add(this.memoEditAvailableBackups); this.groupControl4.Controls.Add(this.label6); this.groupControl4.Controls.Add(this.label4); this.groupControl4.Controls.Add(this.spinEditSaveHistoryDepth); this.groupControl4.Controls.Add(this.label3); this.groupControl4.Controls.Add(this.spinEditPassesBetweenSaves); this.groupControl4.Controls.Add(this.checkBoxUseAutoSave); this.groupControl4.Location = new System.Drawing.Point(7, 105); this.groupControl4.Name = "groupControl4"; this.groupControl4.Size = new System.Drawing.Size(486, 140); this.groupControl4.TabIndex = 6; this.groupControl4.Text = "Auto Save Settings"; // // memoEditAvailableBackups // this.memoEditAvailableBackups.EditValue = ""; this.memoEditAvailableBackups.Location = new System.Drawing.Point(207, 42); this.memoEditAvailableBackups.Name = "memoEditAvailableBackups"; // // memoEditAvailableBackups.Properties // this.memoEditAvailableBackups.Properties.ReadOnly = true; this.memoEditAvailableBackups.Size = new System.Drawing.Size(273, 91); this.memoEditAvailableBackups.TabIndex = 7; // // label6 // this.label6.Location = new System.Drawing.Point(207, 21); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(120, 20); this.label6.TabIndex = 6; this.label6.Text = "Available Backups:"; // // label4 // this.label4.Location = new System.Drawing.Point(13, 84); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(107, 20); this.label4.TabIndex = 4; this.label4.Text = "Save History Depth:"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // spinEditSaveHistoryDepth // this.spinEditSaveHistoryDepth.EditValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.spinEditSaveHistoryDepth.Location = new System.Drawing.Point(133, 84); this.spinEditSaveHistoryDepth.Name = "spinEditSaveHistoryDepth"; // // spinEditSaveHistoryDepth.Properties // this.spinEditSaveHistoryDepth.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditSaveHistoryDepth.Properties.UseCtrlIncrement = false; this.spinEditSaveHistoryDepth.Size = new System.Drawing.Size(40, 20); this.spinEditSaveHistoryDepth.TabIndex = 3; // // label3 // this.label3.Location = new System.Drawing.Point(27, 49); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(93, 28); this.label3.TabIndex = 2; this.label3.Text = "Number of Passes Between Saves:"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // spinEditPassesBetweenSaves // this.spinEditPassesBetweenSaves.EditValue = new System.Decimal(new int[] { 0, 0, 0, 0 }); this.spinEditPassesBetweenSaves.Location = new System.Drawing.Point(133, 56); this.spinEditPassesBetweenSaves.Name = "spinEditPassesBetweenSaves"; // // spinEditPassesBetweenSaves.Properties // this.spinEditPassesBetweenSaves.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditPassesBetweenSaves.Properties.UseCtrlIncrement = false; this.spinEditPassesBetweenSaves.Size = new System.Drawing.Size(40, 20); this.spinEditPassesBetweenSaves.TabIndex = 1; // // checkBoxUseAutoSave // this.checkBoxUseAutoSave.Location = new System.Drawing.Point(13, 21); this.checkBoxUseAutoSave.Name = "checkBoxUseAutoSave"; this.checkBoxUseAutoSave.Size = new System.Drawing.Size(107, 21); this.checkBoxUseAutoSave.TabIndex = 0; this.checkBoxUseAutoSave.Text = "Use Auto Save"; // // groupControl2 // this.groupControl2.Controls.Add(this.button1); this.groupControl2.Controls.Add(this.label1); this.groupControl2.Controls.Add(this.comboBoxEditFilterAlgo); this.groupControl2.Controls.Add(this.label2); this.groupControl2.Controls.Add(this.comboBoxEditSaturationAlgo); this.groupControl2.Location = new System.Drawing.Point(7, 14); this.groupControl2.Name = "groupControl2"; this.groupControl2.Size = new System.Drawing.Size(486, 84); this.groupControl2.TabIndex = 0; this.groupControl2.Text = "Texture Generation"; // // button1 // this.button1.Location = new System.Drawing.Point(280, 28); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(187, 21); this.button1.TabIndex = 13; this.button1.Text = "Update Lightmap Post Processing"; // // label1 // this.label1.Location = new System.Drawing.Point(20, 56); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(113, 20); this.label1.TabIndex = 12; this.label1.Text = "Filter Algorithm:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxEditFilterAlgo // this.comboBoxEditFilterAlgo.EditValue = "No Filtering"; this.comboBoxEditFilterAlgo.Location = new System.Drawing.Point(133, 56); this.comboBoxEditFilterAlgo.Name = "comboBoxEditFilterAlgo"; // // comboBoxEditFilterAlgo.Properties // this.comboBoxEditFilterAlgo.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.comboBoxEditFilterAlgo.Properties.Items.AddRange(new object[] { "No Filtering", "3x3 Gaussian", "5x5 Gaussian" }); this.comboBoxEditFilterAlgo.ShowToolTips = false; this.comboBoxEditFilterAlgo.Size = new System.Drawing.Size(127, 20); this.comboBoxEditFilterAlgo.TabIndex = 11; // // label2 // this.label2.Location = new System.Drawing.Point(20, 28); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(113, 20); this.label2.TabIndex = 10; this.label2.Text = "Saturation Algorithm:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxEditSaturationAlgo // this.comboBoxEditSaturationAlgo.EditValue = "Use Scene Maximum"; this.comboBoxEditSaturationAlgo.Location = new System.Drawing.Point(133, 28); this.comboBoxEditSaturationAlgo.Name = "comboBoxEditSaturationAlgo"; // // comboBoxEditSaturationAlgo.Properties // this.comboBoxEditSaturationAlgo.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.comboBoxEditSaturationAlgo.Properties.Items.AddRange(new object[] { "Use Scene Maximum", "Scene Mean + 3 StdDev", "Scene Mean + 2 StdDev", "Scene Mean + 1 StdDev" }); this.comboBoxEditSaturationAlgo.Size = new System.Drawing.Size(127, 20); this.comboBoxEditSaturationAlgo.TabIndex = 9; // // groupControl1 // this.groupControl1.Controls.Add(this.btn_Stp); this.groupControl1.Controls.Add(this.btn_Save); this.groupControl1.Controls.Add(this.btn_Res); this.groupControl1.Controls.Add(this.pb); this.groupControl1.Location = new System.Drawing.Point(8, 294); this.groupControl1.Name = "groupControl1"; this.groupControl1.Size = new System.Drawing.Size(512, 80); this.groupControl1.TabIndex = 1; this.groupControl1.Text = "Progress"; // // btn_Stp // this.btn_Stp.Enabled = false; this.btn_Stp.Location = new System.Drawing.Point(93, 48); this.btn_Stp.Name = "btn_Stp"; this.btn_Stp.TabIndex = 3; this.btn_Stp.Text = "Stop"; this.btn_Stp.Click += new System.EventHandler(this.btn_Stp_Click); // // btn_Save // this.btn_Save.Enabled = false; this.btn_Save.Location = new System.Drawing.Point(180, 49); this.btn_Save.Name = "btn_Save"; this.btn_Save.Size = new System.Drawing.Size(112, 23); this.btn_Save.TabIndex = 2; this.btn_Save.Text = "Save Progress"; this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click); // // btn_Res // this.btn_Res.Enabled = false; this.btn_Res.Location = new System.Drawing.Point(8, 48); this.btn_Res.Name = "btn_Res"; this.btn_Res.TabIndex = 1; this.btn_Res.Text = "Resume"; // // pb // this.pb.Location = new System.Drawing.Point(7, 21); this.pb.Name = "pb"; this.pb.Size = new System.Drawing.Size(500, 14); this.pb.TabIndex = 0; this.pb.TabStop = false; // // LightMapDiaglog // this.AutoScaleBaseSize = new System.Drawing.Size(5, 14); this.ClientSize = new System.Drawing.Size(528, 388); this.Controls.Add(this.groupControl1); this.Controls.Add(this.xtraTabControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "LightMapDiaglog"; this.Text = "Lightmapping Options"; ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.rend.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.groupControl3)).EndInit(); this.groupControl3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.grp_ps)).EndInit(); this.grp_ps.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.spinEditRenderPassCount.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spin_bl.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spin_pr.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spin_pc.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.def_Diffuse.Properties)).EndInit(); this.pp.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.groupControl4)).EndInit(); this.groupControl4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.memoEditAvailableBackups.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditSaveHistoryDepth.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditPassesBetweenSaves.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).EndInit(); this.groupControl2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.comboBoxEditFilterAlgo.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.comboBoxEditSaturationAlgo.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit(); this.groupControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pb.Properties)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.textEdit1 = new DevExpress.XtraEditors.TextEdit(); this.dateEdit1 = new DevExpress.XtraEditors.DateEdit(); this.spinEdit1 = new DevExpress.XtraEditors.SpinEdit(); this.dataNavigator1 = new DevExpress.XtraEditors.DataNavigator(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.listBoxControl1 = new DevExpress.XtraEditors.ListBoxControl(); this.label4 = new System.Windows.Forms.Label(); this.groupControl1 = new DevExpress.XtraEditors.GroupControl(); this.groupControl2 = new DevExpress.XtraEditors.GroupControl(); this.lookUpEdit1 = new DevExpress.XtraEditors.LookUpEdit(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties.VistaTimeProperties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.listBoxControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit(); this.groupControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).BeginInit(); this.groupControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.lookUpEdit1.Properties)).BeginInit(); this.SuspendLayout(); // // textEdit1 // this.textEdit1.EditValue = "textEdit1"; this.textEdit1.Location = new System.Drawing.Point(144, 37); this.textEdit1.Name = "textEdit1"; this.textEdit1.Size = new System.Drawing.Size(221, 22); this.textEdit1.TabIndex = 1; // // dateEdit1 // this.dateEdit1.EditValue = new System.DateTime(2005, 12, 9, 0, 0, 0, 0); this.dateEdit1.Location = new System.Drawing.Point(144, 83); this.dateEdit1.Name = "dateEdit1"; this.dateEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.dateEdit1.Properties.VistaTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.dateEdit1.Size = new System.Drawing.Size(221, 22); this.dateEdit1.TabIndex = 3; // // spinEdit1 // this.spinEdit1.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEdit1.Location = new System.Drawing.Point(144, 129); this.spinEdit1.Name = "spinEdit1"; this.spinEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEdit1.Properties.DisplayFormat.FormatString = "c"; this.spinEdit1.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEdit1.Properties.Mask.EditMask = "c"; this.spinEdit1.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.None; this.spinEdit1.Size = new System.Drawing.Size(221, 22); this.spinEdit1.TabIndex = 5; // // dataNavigator1 // this.dataNavigator1.Location = new System.Drawing.Point(19, 175); this.dataNavigator1.Name = "dataNavigator1"; this.dataNavigator1.Size = new System.Drawing.Size(349, 28); this.dataNavigator1.TabIndex = 6; this.dataNavigator1.Text = "dataNavigator1"; this.dataNavigator1.TextLocation = DevExpress.XtraEditors.NavigatorButtonsTextLocation.Center; // // label1 // this.label1.Location = new System.Drawing.Point(19, 37); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(120, 18); this.label1.TabIndex = 0; this.label1.Text = "Name:"; // // label2 // this.label2.Location = new System.Drawing.Point(19, 83); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(120, 19); this.label2.TabIndex = 2; this.label2.Text = "Purchase Date:"; // // label3 // this.label3.Location = new System.Drawing.Point(19, 129); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(120, 19); this.label3.TabIndex = 4; this.label3.Text = "Payment Amount:"; // // listBoxControl1 // this.listBoxControl1.Location = new System.Drawing.Point(154, 120); this.listBoxControl1.Name = "listBoxControl1"; this.listBoxControl1.Size = new System.Drawing.Size(211, 138); this.listBoxControl1.TabIndex = 5; // // label4 // this.label4.Location = new System.Drawing.Point(19, 120); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(120, 18); this.label4.TabIndex = 4; this.label4.Text = "All Contacts:"; // // groupControl1 // this.groupControl1.Controls.Add(this.label3); this.groupControl1.Controls.Add(this.label1); this.groupControl1.Controls.Add(this.dataNavigator1); this.groupControl1.Controls.Add(this.label2); this.groupControl1.Controls.Add(this.dateEdit1); this.groupControl1.Controls.Add(this.spinEdit1); this.groupControl1.Controls.Add(this.textEdit1); this.groupControl1.Dock = System.Windows.Forms.DockStyle.Top; this.groupControl1.Location = new System.Drawing.Point(0, 0); this.groupControl1.Name = "groupControl1"; this.groupControl1.Size = new System.Drawing.Size(386, 222); this.groupControl1.TabIndex = 0; this.groupControl1.Text = "Contact information"; // // groupControl2 // this.groupControl2.Controls.Add(this.lookUpEdit1); this.groupControl2.Controls.Add(this.label6); this.groupControl2.Controls.Add(this.label5); this.groupControl2.Controls.Add(this.listBoxControl1); this.groupControl2.Controls.Add(this.label4); this.groupControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.groupControl2.Location = new System.Drawing.Point(0, 222); this.groupControl2.Name = "groupControl2"; this.groupControl2.Size = new System.Drawing.Size(386, 274); this.groupControl2.TabIndex = 1; this.groupControl2.Text = "Fast navigation"; // // lookUpEdit1 // this.lookUpEdit1.Location = new System.Drawing.Point(144, 28); this.lookUpEdit1.Name = "lookUpEdit1"; this.lookUpEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.lookUpEdit1.Size = new System.Drawing.Size(221, 22); this.lookUpEdit1.TabIndex = 2; this.lookUpEdit1.EditValueChanged += new System.EventHandler(this.lookUpEdit1_EditValueChanged); this.lookUpEdit1.QueryPopUp += new System.ComponentModel.CancelEventHandler(this.lookUpEdit1_QueryPopUp); // // label6 // this.label6.Location = new System.Drawing.Point(19, 65); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(346, 37); this.label6.TabIndex = 3; this.label6.Text = "Type initial letters of a person name in the edit box to locate the contact recor" + "d."; // // label5 // this.label5.Location = new System.Drawing.Point(19, 28); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(120, 18); this.label5.TabIndex = 1; this.label5.Text = "Search By Name:"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(386, 496); this.Controls.Add(this.groupControl2); this.Controls.Add(this.groupControl1); this.Name = "Form1"; this.Text = "Incremental search via LookUpEdit"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties.VistaTimeProperties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dateEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.listBoxControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit(); this.groupControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.groupControl2)).EndInit(); this.groupControl2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.lookUpEdit1.Properties)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.trackBarControl1 = new DevExpress.XtraEditors.TrackBarControl(); this.colorPickEdit1 = new DevExpress.XtraEditors.ColorPickEdit(); this.seTilt = new DevExpress.XtraEditors.SpinEdit(); this.seHeading = new DevExpress.XtraEditors.SpinEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBarControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarControl1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.colorPickEdit1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.seTilt.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.seHeading.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.trackBarControl1); this.layoutControl1.Controls.Add(this.colorPickEdit1); this.layoutControl1.Controls.Add(this.seTilt); this.layoutControl1.Controls.Add(this.seHeading); 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(293, 103); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // trackBarControl1 // this.trackBarControl1.EditValue = 220; this.trackBarControl1.Location = new System.Drawing.Point(65, 28); this.trackBarControl1.Name = "trackBarControl1"; this.trackBarControl1.Properties.LabelAppearance.Options.UseTextOptions = true; this.trackBarControl1.Properties.LabelAppearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.trackBarControl1.Properties.Maximum = 255; this.trackBarControl1.Properties.TickFrequency = 5; this.trackBarControl1.Size = new System.Drawing.Size(226, 45); this.trackBarControl1.StyleController = this.layoutControl1; this.trackBarControl1.TabIndex = 7; this.trackBarControl1.Value = 220; this.trackBarControl1.EditValueChanged += new System.EventHandler(this.trackBarControl1_EditValueChanged); // // colorPickEdit1 // this.colorPickEdit1.EditValue = System.Drawing.Color.Black; this.colorPickEdit1.Location = new System.Drawing.Point(65, 2); this.colorPickEdit1.Name = "colorPickEdit1"; this.colorPickEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.colorPickEdit1.Size = new System.Drawing.Size(226, 22); this.colorPickEdit1.StyleController = this.layoutControl1; this.colorPickEdit1.TabIndex = 6; this.colorPickEdit1.EditValueChanged += new System.EventHandler(this.colorPickEdit1_EditValueChanged); // // seTilt // this.seTilt.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.seTilt.Location = new System.Drawing.Point(215, 77); this.seTilt.Name = "seTilt"; this.seTilt.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.seTilt.Properties.IsFloatValue = false; this.seTilt.Properties.Mask.EditMask = "N00"; this.seTilt.Properties.MaxValue = new decimal(new int[] { 180, 0, 0, 0 }); this.seTilt.Size = new System.Drawing.Size(76, 22); this.seTilt.StyleController = this.layoutControl1; this.seTilt.TabIndex = 5; this.seTilt.EditValueChanging += new DevExpress.XtraEditors.Controls.ChangingEventHandler(this.seTilt_EditValueChanging); // // seHeading // this.seHeading.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.seHeading.Location = new System.Drawing.Point(65, 77); this.seHeading.Name = "seHeading"; this.seHeading.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.seHeading.Properties.IsFloatValue = false; this.seHeading.Properties.Mask.EditMask = "N00"; this.seHeading.Properties.MaxValue = new decimal(new int[] { 360, 0, 0, 0 }); this.seHeading.Properties.MinValue = new decimal(new int[] { 360, 0, 0, -2147483648 }); this.seHeading.Size = new System.Drawing.Size(83, 22); this.seHeading.StyleController = this.layoutControl1; this.seHeading.TabIndex = 4; this.seHeading.EditValueChanging += new DevExpress.XtraEditors.Controls.ChangingEventHandler(this.seHeading_EditValueChanging); // // 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.layoutControlItem3, this.layoutControlItem2, 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(293, 103); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.seHeading; this.layoutControlItem1.CustomizationFormText = "方位角:"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 75); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(150, 28); this.layoutControlItem1.Text = "方位角:"; this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.colorPickEdit1; this.layoutControlItem3.CustomizationFormText = "阴影颜色:"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 0); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(293, 26); this.layoutControlItem3.Text = "阴影颜色:"; this.layoutControlItem3.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.seTilt; this.layoutControlItem2.CustomizationFormText = "高度角:"; this.layoutControlItem2.Location = new System.Drawing.Point(150, 75); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(143, 28); this.layoutControlItem2.Text = "高度角:"; this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem4 // this.layoutControlItem4.Control = this.trackBarControl1; this.layoutControlItem4.CustomizationFormText = "不透明度:"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 26); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(293, 49); this.layoutControlItem4.Text = "不透明度:"; this.layoutControlItem4.TextSize = new System.Drawing.Size(60, 14); // // FrmSunSimulation // this.ClientSize = new System.Drawing.Size(293, 103); this.Controls.Add(this.layoutControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Location = new System.Drawing.Point(5, 180); this.Name = "FrmSunSimulation"; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.Text = "日照模拟"; this.TopMost = true; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmSunSimulation_FormClosed); this.Load += new System.EventHandler(this.FrmSunSimulation_Load); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBarControl1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.colorPickEdit1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.seTilt.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.seHeading.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.btn_Cancel = new DevExpress.XtraEditors.SimpleButton(); this.btn_OK = new DevExpress.XtraEditors.SimpleButton(); this.btn_Browse = new DevExpress.XtraEditors.SimpleButton(); this.se_Size = new DevExpress.XtraEditors.SpinEdit(); this.te_FileName = new DevExpress.XtraEditors.TextEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlGroup2 = 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.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.se_Size.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.te_FileName.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).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.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); this.SuspendLayout(); // // layoutControl1 // this.layoutControl1.Controls.Add(this.btn_Cancel); this.layoutControl1.Controls.Add(this.btn_OK); this.layoutControl1.Controls.Add(this.btn_Browse); this.layoutControl1.Controls.Add(this.se_Size); this.layoutControl1.Controls.Add(this.te_FileName); 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(284, 84); this.layoutControl1.TabIndex = 0; this.layoutControl1.Text = "layoutControl1"; // // btn_Cancel // this.btn_Cancel.Location = new System.Drawing.Point(144, 57); this.btn_Cancel.Name = "btn_Cancel"; this.btn_Cancel.Size = new System.Drawing.Size(135, 22); this.btn_Cancel.StyleController = this.layoutControl1; this.btn_Cancel.TabIndex = 8; this.btn_Cancel.Text = "取消"; this.btn_Cancel.Click += new System.EventHandler(this.btn_Cancel_Click); // // btn_OK // this.btn_OK.Location = new System.Drawing.Point(5, 57); this.btn_OK.Name = "btn_OK"; this.btn_OK.Size = new System.Drawing.Size(135, 22); this.btn_OK.StyleController = this.layoutControl1; this.btn_OK.TabIndex = 7; this.btn_OK.Text = "确定"; this.btn_OK.Click += new System.EventHandler(this.btn_OK_Click); // // btn_Browse // this.btn_Browse.Location = new System.Drawing.Point(233, 5); this.btn_Browse.Name = "btn_Browse"; this.btn_Browse.Size = new System.Drawing.Size(46, 22); this.btn_Browse.StyleController = this.layoutControl1; this.btn_Browse.TabIndex = 6; this.btn_Browse.Text = "..."; this.btn_Browse.Click += new System.EventHandler(this.btn_Browse_Click); // // se_Size // this.se_Size.EditValue = new decimal(new int[] { 100, 0, 0, 0 }); this.se_Size.Location = new System.Drawing.Point(68, 31); this.se_Size.Name = "se_Size"; this.se_Size.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.se_Size.Properties.IsFloatValue = false; this.se_Size.Properties.Mask.EditMask = "N00"; this.se_Size.Size = new System.Drawing.Size(211, 22); this.se_Size.StyleController = this.layoutControl1; this.se_Size.TabIndex = 5; // // te_FileName // this.te_FileName.Location = new System.Drawing.Point(68, 5); this.te_FileName.Name = "te_FileName"; this.te_FileName.Size = new System.Drawing.Size(161, 22); this.te_FileName.StyleController = this.layoutControl1; this.te_FileName.TabIndex = 4; // // 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.layoutControlGroup2 }); 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, 84); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlGroup2 // this.layoutControlGroup2.CustomizationFormText = "layoutControlGroup2"; this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4, this.layoutControlItem5 }); this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup2.Name = "layoutControlGroup2"; this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); this.layoutControlGroup2.Size = new System.Drawing.Size(284, 84); this.layoutControlGroup2.Text = "layoutControlGroup2"; this.layoutControlGroup2.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.te_FileName; this.layoutControlItem1.CustomizationFormText = "图片路径:"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(228, 26); this.layoutControlItem1.Text = "图片路径:"; this.layoutControlItem1.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.se_Size; this.layoutControlItem2.CustomizationFormText = "图片大小:"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 26); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(278, 26); this.layoutControlItem2.Text = "图片大小:"; this.layoutControlItem2.TextSize = new System.Drawing.Size(60, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.btn_Browse; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(228, 0); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(50, 26); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // layoutControlItem4 // this.layoutControlItem4.Control = this.btn_OK; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 52); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(139, 26); this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; // // layoutControlItem5 // this.layoutControlItem5.Control = this.btn_Cancel; this.layoutControlItem5.CustomizationFormText = "layoutControlItem5"; this.layoutControlItem5.Location = new System.Drawing.Point(139, 52); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(139, 26); this.layoutControlItem5.Text = "layoutControlItem5"; this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextToControlDistance = 0; this.layoutControlItem5.TextVisible = false; // // FrmCreatePicture // this.ClientSize = new System.Drawing.Size(284, 84); this.Controls.Add(this.layoutControl1); this.Name = "FrmCreatePicture"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "添加图片"; ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.se_Size.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.te_FileName.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).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.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); this.ResumeLayout(false); }
Control createControl(string name){ Control c = null ; switch (name) { case "日期": var cdate = new DateEditEx(); cdate.Properties.EditMask = "yyyy-MM-dd"; cdate.Properties.DisplayFormat.FormatString = "yyyy-MM-dd"; cdate.Properties.AllowNullInput = DevExpress.Utils.DefaultBoolean.True; cdate.Properties.EditFormat.FormatString = "yyyy-MM-dd"; c = cdate; break; case "下拉列表": c = new DevExpress.XtraEditors.ComboBoxEdit(); break; case "整数": var c1 = new DevExpress.XtraEditors.SpinEdit(); c1.Properties.IsFloatValue = false; c = c1; break; case "小数": var c2 = new DevExpress.XtraEditors.SpinEdit(); c2.Properties.IsFloatValue = true; c = c2; break; case "文本": default: c = new DevExpress.XtraEditors.TextEdit(); break; } return c; }