|
|
@@ -139,7 +139,7 @@ namespace BPASmartClient.Control |
|
|
|
private void ComboBox_DropDownOpened(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
ShopDeviceConfigViewModel.Shops.Clear(); |
|
|
|
DirectoryInfo directoryInfo = new DirectoryInfo(LocaPath.GetInstance().GetDeviceConfigPath); |
|
|
|
DirectoryInfo directoryInfo = new DirectoryInfo(LocaPath.GetDeviceConfigPath); |
|
|
|
var files = directoryInfo.GetFiles(); |
|
|
|
foreach (var item in files) |
|
|
|
{ |
|
|
@@ -152,7 +152,7 @@ namespace BPASmartClient.Control |
|
|
|
{ |
|
|
|
var text = TextHelper.GetInstance.ReadTextInfo("StartShop", "DeviceConfig"); |
|
|
|
if (this.shop.Items.Contains(text)) this.shop.SelectedValue = text; |
|
|
|
DirectoryInfo directoryInfo = new DirectoryInfo(LocaPath.GetInstance().GetDeviceConfigPath); |
|
|
|
DirectoryInfo directoryInfo = new DirectoryInfo(LocaPath.GetDeviceConfigPath); |
|
|
|
var files = directoryInfo.GetFiles(); |
|
|
|
if (files != null && this.shop.SelectedValue != null && this.shop.SelectedValue.ToString().Length > 0) |
|
|
|
{ |
|
|
|