//--------------------------------------------------------------------- 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); } }
//--------------------------------------------------------------------- private void BtnTest_Click(object sender, EventArgs e) { AppTier.WebApi api = new AppTier.WebApi(); api.Process("ReflectInsight", DateTime.Now.AddYears(-15), "123-456-789"); }