示例#1
0
 //---------------------------------------------------------------------
 private void BtnTestWithException_Click(object sender, EventArgs e)
 {
     try
     {
         AppTier.WebApi api = new AppTier.WebApi();
         api.Process("ReflectInsight", DateTime.Now.AddYears(15), "123-456-789");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#2
0
 //---------------------------------------------------------------------
 private void BtnTest_Click(object sender, EventArgs e)
 {
     AppTier.WebApi api = new AppTier.WebApi();
     api.Process("ReflectInsight", DateTime.Now.AddYears(-15), "123-456-789");
 }