Advertisement
Ortund

Untitled

Sep 24th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1.         bool insurance = false;
  2.         DateTime? insuranceDate = DateTime.Now;
  3.         if (rblInsurance.SelectedItem != null && rblInsurance.SelectedItem.Value == "true")
  4.         {
  5.             insurance = true;
  6.             insuranceDate = Convert.ToDateTime(txtInsuranceDate.Text);
  7.         }
  8.         else
  9.         {
  10.             insuranceDate = null;
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement