public override void Run(object sender, EventArgs e) { try { FrmNormalConditionQuery dlg = new FrmNormalConditionQuery(); if (dlg.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } WaitForm.Start("正在查询...", "请稍后"); this._uPanel = new UIDockPanel("查询结果", "查询结果", this.Location, this._width, this._height); this._dockPanel = FloatPanelManager.Instance.Add(ref this._uPanel, DockingStyle.Right); this._dockPanel.Visibility = DockVisibility.Visible; this._dockPanel.FloatSize = new System.Drawing.Size(this._width, this._height); this._dockPanel.Width = this._width; this._dockPanel.Height = this._height; this._uc = new UCPropertyInfo(); this._uc.Init(); this._uc.Dock = System.Windows.Forms.DockStyle.Fill; this._uPanel.RegisterEvent(new PanelClose(this.Close)); this._dockPanel.Controls.Add(this._uc); this._uc.SetInfo(dlg.DFFC, dlg.Filter, dlg.Total); WaitForm.Stop(); } catch (Exception ex) { } }
public override void RestoreEnv() { if (_uc != null) { this._uc.Dispose(); this._uc = null; } if (this._uPanel != null) { this._uPanel.GetControlContainer().Controls.Clear(); this._uPanel.Close(); this._uPanel = null; } }
public override void Run(object sender, EventArgs e) { FrmSimpleConditionQuery dialog = new FrmSimpleConditionQuery(); if (dialog.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } this._uPanel = new UIDockPanel("查询结果", "查询结果", this.Location, this._width, this._height); this._dockPanel = FloatPanelManager.Instance.Add(ref this._uPanel, DockingStyle.Right); this._dockPanel.Visibility = DockVisibility.Visible; this._dockPanel.FloatSize = new System.Drawing.Size(this._width, this._height); this._dockPanel.Width = this._width; this._dockPanel.Height = this._height; this._uc = new UCPropertyInfo(); this._uc.Init(); this._uc.Dock = System.Windows.Forms.DockStyle.Fill; this._uPanel.RegisterEvent(new PanelClose(this.Close)); this._dockPanel.Controls.Add(this._uc); this._uc.SetPropertyInfo(dialog.Dict, dialog.FacType); }
private void OnFinishedDraw() { if (this._drawTool != null && this._drawTool.GeoType == DrawType.Polygon && this._drawTool.GetGeo() != null) { try { WaitForm.Start("正在空间查询...", "请稍后"); bHaveRes = false; RegionAnalysis(); if (!bHaveRes) { WaitForm.Stop(); XtraMessageBox.Show("空间查询为空!", "提示"); return; } WaitForm.Stop(); FrmCompoundConditionQuery dialog = new FrmCompoundConditionQuery(); dialog.SetData(resRootLogicGroups, resRootMajorClasses, this._drawTool.GetGeo()); if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this._uPanel = new UIDockPanel("查询结果", "查询结果", this.Location, this._width, this._height); this._dockPanel = FloatPanelManager.Instance.Add(ref this._uPanel, DockingStyle.Right); this._dockPanel.Visibility = DockVisibility.Visible; this._dockPanel.FloatSize = new System.Drawing.Size(this._width, this._height); this._dockPanel.Width = this._width; this._dockPanel.Height = this._height; this._uc = new UCPropertyInfo(); this._uc.Init(); this._uc.Dock = System.Windows.Forms.DockStyle.Fill; this._uPanel.RegisterEvent(new PanelClose(this.Close)); this._dockPanel.Controls.Add(this._uc); this._uc.SetPropertyInfo(dialog.Dict, dialog.FacType, this._drawTool.GetGeo().Clone2(gviVertexAttribute.gviVertexAttributeNone)); } } catch (Exception ex) { WaitForm.Stop(); } } }