using KGIS.Framework.Utils.Helper; using System.Windows; using System.Windows.Input; namespace Kingo.DataDTBJK { /// /// UCSystemSelect.xaml 的交互逻辑 /// public partial class UCSystemSelect : Window { public UCSystemSelect() { InitializeComponent(); } private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { this.DragMove(); } private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { this.DialogResult = false; this.Close(); } private void BtnYCL_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { KGIS.Framework.Platform.Platform.Instance.SystemType = SystemTypeEnum.YCLJK; this.DialogResult = true; if (KGIS.Framework.Utils.SysConfigsOprator.GetAppsetingValueByKey("ArearName").Equals("43"))//湖南暂无使用预处理软件系统权限 { MessageHelper.ShowError("此地区不允许使用预处理软件!" ); this.Close(); System.Environment.Exit(0); } } private void BtnJK_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { KGIS.Framework.Platform.Platform.Instance.SystemType = SystemTypeEnum.DTBJK; this.DialogResult = true; } private void Window_Loaded(object sender, RoutedEventArgs e) { txtSubTitle.Text = KGIS.Framework.Utils.SysConfigsOprator.GetAppsetingValueByKey("SystemName"); } private void BtnZJ_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { KGIS.Framework.Platform.Platform.Instance.SystemType = SystemTypeEnum.NDBGJK; this.DialogResult = true; } } }