示例#1
0
 private void LoadStyleList(IWmsStyle wmsStyle)
 {
     _comboBoxStyles.Items.Clear();
     if (null != _wmsLayer)
     {
         _comboBoxStyles.Items.Add("<Default>");
         foreach (IWmsStyle style in _wmsLayer.Styles)
         {
             _comboBoxStyles.Items.Add(style);
         }
     }
     _comboBoxStyles.Enabled       = _comboBoxStyles.Items.Count > 0;
     _comboBoxStyles.SelectedIndex = null != wmsStyle?_comboBoxStyles.FindString(wmsStyle.ToString()) : 0;
 }
 private void LoadStyleList(IWmsStyle wmsStyle)
 {
     _comboBoxStyles.Items.Clear();
     if (null != _wmsLayer)
     {
         _comboBoxStyles.Items.Add("<Default>");
         foreach (IWmsStyle style in _wmsLayer.Styles)
         {
             _comboBoxStyles.Items.Add(style);
         }
     }
     _comboBoxStyles.Enabled = _comboBoxStyles.Items.Count > 0;
     _comboBoxStyles.SelectedIndex = null != wmsStyle ? _comboBoxStyles.FindString(wmsStyle.ToString()) : 0;
 }
示例#3
0
 public void Set(IWmsLayer wmsLayer, IWmsStyle wmsStyle)
 {
     Clear();
     _wmsLayer = wmsLayer;
     _comboBoxStyles.SelectedIndexChanged += new EventHandler(_comboBoxStyles_SelectedIndexChanged);
     if (null != _wmsLayer)
     {
         if (null != _textBoxAbstract)
         {
             _textBoxAbstract.Text = _wmsLayer.Abstract;
         }
         LoadStyleList(wmsStyle);
     }
     _wmsStyleState.Set(wmsStyle);
 }
 public void Set(IWmsLayer wmsLayer, IWmsStyle wmsStyle)
 {
     Clear();
     _wmsLayer = wmsLayer;
     _comboBoxStyles.SelectedIndexChanged += new EventHandler(_comboBoxStyles_SelectedIndexChanged);
     if (null != _wmsLayer)
     {
         if (null != _textBoxAbstract)
         {
             _textBoxAbstract.Text = _wmsLayer.Abstract;
         }
         LoadStyleList(wmsStyle);
     }
     _wmsStyleState.Set(wmsStyle);
 }
 public void Set(IWmsStyle wmsStyle)
 {
     _wmsStyle = wmsStyle;
     _textBoxStyleAbstract.Text = _wmsStyle != null ? _wmsStyle.Abstract : null;
 }
 public void Clear()
 {
     _textBoxStyleAbstract.Text = null;
     _wmsStyle = null;
 }
示例#7
0
 public void Clear()
 {
     _textBoxStyleAbstract.Text = null;
     _wmsStyle = null;
 }
示例#8
0
 public void Set(IWmsStyle wmsStyle)
 {
     _wmsStyle = wmsStyle;
     _textBoxStyleAbstract.Text = _wmsStyle != null ? _wmsStyle.Abstract : null;
 }