예제 #1
0
 private void Btn_Exit_Click(object sender, RoutedEventArgs e)
 {
     if (Btn_Exit.Content.Equals("编辑"))
     {
         Btn_Close.Content = "取消";
         Btn_Exit.Content  = "保存";
         tab.Header        = title1 + "编辑";
         Project projectadd = new Project("Add");
         FramePage.Content = projectadd;
     }
     else
     {
         Window_Error window_Error = new Window_Error("编辑项目信息", "保存成功!");
         window_Error.Show();
     }
 }
예제 #2
0
 /// <summary>
 /// 调用Webservice验证链接
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Btn_ConnectionTest_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         GraduationThesisWebService.GraduationThesisWebService graduationThesisWebService = new GraduationThesisWebService.GraduationThesisWebService();
         if (graduationThesisWebService.TestLogin())
         {
             Window_Error window_Error = new Window_Error("连接测试", "连接成功");
             window_Error.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         Window_Error window_Error = new Window_Error("连接测试", "连接失败!错误日志:" + ex.ToString());
         window_Error.ShowDialog();
     }
 }