示例#1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     //点击连接数据库
     if (!string.IsNullOrEmpty(URL.Text))
     {
         HttpHelp.getInst().URL = URL.Text;
         Hide();
         Window WindowsFrom = new serverSetting();
         WindowsFrom.ShowDialog();
         Show();
     }
     else
     {
         MessageBox.Show("URL不能为空的骚年", "提示", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //点击连接数据库
            if (!string.IsNullOrEmpty(URL.Text))
            {
				HttpHelp.getInst().URL = URL.Text;
				Hide();
				Window WindowsFrom = new serverSetting();
				WindowsFrom.ShowDialog();
				Show();
            }
            else
            {
				MessageBox.Show("URL不能为空的骚年", "提示", MessageBoxButton.OK, MessageBoxImage.Warning);
            }

        }