private void dropItem_SelectedValueChanged(object sender, SelectedValueChangedEventArgs e)
        {

        }
Ejemplo n.º 2
0
 private void ServiceSelected(object sender, SelectedValueChangedEventArgs e)
 {
     _provider = e.SelectedItem as ServiceProvider;
     if (_provider == null || _provider.Name == Properties.Resources.None)
         DisableBasemapLayer();
     else
         EnableBasemapFetching(_provider.Name, _provider.Url);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Triggers the SelectedValueChanged event.
 /// </summary>
 /// <param name="e">The eventargs.</param>
 public virtual void OnSelectedValueChanged(SelectedValueChangedEventArgs e)
 {
     SelectedValueChanged?.Invoke(this, e);
 }
Ejemplo n.º 4
0
        private void OpacitySelected(object sender, SelectedValueChangedEventArgs e)
        {
            if (_baseMapLayer == null)
                return;

            Int16 opacityInt;

            //Check to make sure the text in the box is an integer and we are in the range
            if (!Int16.TryParse(e.SelectedItem as string, out opacityInt) || opacityInt > 100 || opacityInt < 0)
            {
                opacityInt = 100;
                _opacityDropDown.SelectedItem = opacityInt;
            }
            _opacity = opacityInt;
            ChangeBasemapOpacity(opacityInt);
        }
 private void dropItem_SelectedValueChanged(object sender, SelectedValueChangedEventArgs e)
 {
     SRMManager.SelectSRM(e.SelectedItem.ToString());
 }
Ejemplo n.º 6
0
 private void ServiceSelected(object sender, SelectedValueChangedEventArgs e)
 {
     var p = CurrentProvider;
     if (p == null || p.Name == Properties.Resources.None)
     {
         DisableBasemapLayer();
     }
     else
     {
         _optionsAction.Enabled = p.Configure != null;
         if (p.NeedConfigure)
         {
             if (p.Configure != null)
             {
                 p.Configure();
             }
         }
         EnableBasemapFetching(p);
     }
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Triggers the SelectedValueChanged event.
 /// </summary>
 public virtual void OnSelectedValueChanged(SelectedValueChangedEventArgs ea)
 {
     if (SelectedValueChanged != null)
         SelectedValueChanged(this, ea);
 }
 private void dropItem_SelectedValueChanged(object sender, SelectedValueChangedEventArgs e)
 {
     string data = string.Empty;
     switch (e.SelectedItem.ToString())
     {
         case "件烟扫码故障复位":
             data = "ScanCodeFaultReset";
             break;
         case "RFID整托盘入库":
             data = "WholePalletScanRFID";
             break;
         case "手持扫码整托盘入库":
             data = "WholePalletScan";
             break;
         case "手持扫码盘点返库":
             data = "InventoryWholePalletScan";
             break;
         case "手持扫码出库余烟返库":
             data = "StockOutWholePalletScan";
             break;
         default:
             break;
     }
     if (!AutomationContext.Write(memoryServiceName1, memoryItemName1, data))
     {
         dropItem.SelectedItem = "";
         e.SelectedItem = "";
         XtraMessageBox.Show(string.Format("设置失败,详情请查看日志!"), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }