private void btn_Confirm_Click(object sender, RoutedEventArgs e)
        {
            while (txb_ServerURL.Text == string.Empty ||
                   txb_ServerName.Text == string.Empty ||
                   txb_DataBaseName.Text == string.Empty ||
                   txb_UserName.Text == string.Empty ||
                   txb_PassWord.Password == string.Empty ||
                   txb_ServerName.Text == string.Empty ||
                   txb_ServerName.Text == string.Empty)
            {
                new MessageWindow("请填入不为空的合适的值").ShowDialog();
                return;
            }

            ArcSdeOperate arcSdeOperate = new ArcSdeOperate()
            {
                Server              = txb_ServerURL.Text,
                Instance            = txb_ServerName.Text,
                Database            = txb_DataBaseName.Text,
                User                = txb_UserName.Text,
                PassWord            = txb_PassWord.Password,
                Version             = "SDE.DEFAULT",
                Authentication_Mode = "DBMS"
            };

            IFeatureLayer featureLayer = arcSdeOperate.LoadFeature();

            if (LoadSdeFeature != null)
            {
                LoadSdeFeature.Invoke(featureLayer);
            }
        }
        private void btn_ConnectTest_Click(object sender, RoutedEventArgs e)
        {
            while (txb_ServerURL.Text == string.Empty ||
                   txb_ServerName.Text == string.Empty ||
                   txb_DataBaseName.Text == string.Empty ||
                   txb_UserName.Text == string.Empty ||
                   txb_PassWord.Password == string.Empty ||
                   txb_ServerName.Text == string.Empty ||
                   txb_ServerName.Text == string.Empty)
            {
                new MessageWindow("请填入不为空的合适的值").ShowDialog();
                return;
            }

            ArcSdeOperate arcSdeOperate = new ArcSdeOperate()
            {
                Server              = txb_ServerURL.Text,
                Instance            = txb_ServerName.Text,
                Database            = txb_DataBaseName.Text,
                User                = txb_UserName.Text,
                PassWord            = txb_PassWord.Password,
                Version             = "SDE.DEFAULT",
                Authentication_Mode = "DBMS"
            };

            string strCheckOut = arcSdeOperate.CheckOutConnection();

            new MessageWindow(strCheckOut).ShowDialog();
        }