You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.9 KiB
64 lines
1.9 KiB
using KGIS.Framework.Utils; |
|
using Kingo.KMapSDK.Common; |
|
using Kingo.PluginServiceInterface.Helper; |
|
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
using System.Windows; |
|
using System.Windows.Controls; |
|
using System.Windows.Data; |
|
using System.Windows.Documents; |
|
using System.Windows.Forms; |
|
using System.Windows.Input; |
|
using System.Windows.Media; |
|
using System.Windows.Media.Imaging; |
|
using System.Windows.Navigation; |
|
using System.Windows.Shapes; |
|
|
|
namespace Kingo.Plugin.DTBJK_XJ.View |
|
{ |
|
/// <summary> |
|
/// UCMapImageSetting.xaml 的交互逻辑 |
|
/// </summary> |
|
public partial class UCMapImageSetting : BaseWindow |
|
{ |
|
public string Url { get; set; } |
|
public UCMapImageSetting(string header) |
|
{ |
|
InitializeComponent(); |
|
|
|
txtUrl.Text = UserLoginHelper.GetYXGroupLayerValueByAliasName(header); |
|
if (!string.IsNullOrWhiteSpace(Kingo.KMapSDK.Common.GlobalConfig.Instance.LayerName)) |
|
{ |
|
txtUrl.Text += "@layer=" + Kingo.KMapSDK.Common.GlobalConfig.Instance.LayerName; |
|
} |
|
if (!string.IsNullOrWhiteSpace(Kingo.KMapSDK.Common.GlobalConfig.Instance.FWYear)) |
|
{ |
|
txtUrl.Text += "@" + Kingo.KMapSDK.Common.GlobalConfig.Instance.FWYear; |
|
} |
|
} |
|
|
|
private void btnOK_Click(object sender, RoutedEventArgs e) |
|
{ |
|
Url = this.txtUrl.Text.Trim(); |
|
if (string.IsNullOrEmpty(Url)) |
|
{ |
|
System.Windows.Forms.MessageBox.Show("路径不正确!", "温馨提示:", MessageBoxButtons.OK); |
|
this.DialogResult = false; |
|
} |
|
else |
|
{ |
|
this.DialogResult = true; |
|
this.Close(); |
|
} |
|
} |
|
|
|
private void btnCancel_Click(object sender, RoutedEventArgs e) |
|
{ |
|
Url = string.Empty; |
|
this.Close(); |
|
} |
|
} |
|
}
|
|
|