12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using Tofly.CoreUI.Control;
- using Tofly.CoreUI.Win.Control;
- using Tofly.Core.Components;
- using Tofly.GIS.SpatialReference;
- namespace Tofly.SearchUI.Win
- {
-
-
-
- [Tofly.Core.Stereotype.Component(IsSingleton = "false", Name = "Tofly.SearchUI.Win.RemoteMappingSettingControl")]
- public partial class RemoteMappingSettingControl : UserControlClass, IParameterControl
- {
- public RemoteMappingSettingControl()
- {
- InitializeComponent();
- }
- private ComponentBaseParameter componentParameter;
-
-
-
- public ComponentBaseParameter ComponentParameter
- {
- get
- {
- GetParameter();
- return componentParameter;
- }
- set
- {
- componentParameter = value;
- InitEdit();
- }
- }
-
-
-
- private void InitEdit()
- {
- if (componentParameter == null)
- return;
- Tofly.SearchUI.Command.RemoteMappingSettingParameter para = componentParameter as Tofly.SearchUI.Command.RemoteMappingSettingParameter;
- if (para == null)
- componentParameter = null;
- else
- {
- this.txtBtnText.Text = para.buttonText;
- this.comboBox.Text = para.gridEdit;
- this.comboBox1.Text = para.maxEdit;
- this.textScales.Text = para.displayScales;
- }
- }
-
-
-
- private void GetParameter()
- {
- if (componentParameter == null)
- componentParameter = new Tofly.SearchUI.Command.RemoteMappingSettingParameter();
- Tofly.SearchUI.Command.RemoteMappingSettingParameter remoteMappingSettingParameter = componentParameter as Tofly.SearchUI.Command.RemoteMappingSettingParameter;
-
- remoteMappingSettingParameter.buttonText = this.txtBtnText.Text;
- remoteMappingSettingParameter.gridEdit = this.comboBox.Text;
- remoteMappingSettingParameter.maxEdit = this.comboBox1.Text;
- remoteMappingSettingParameter.displayScales = this.textScales.Text;
- }
- }
- }
|