/// <summary>
 /// event handler for invoice save button.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnSave_Click(object sender, RoutedEventArgs e)
 {
     try{
         currentInvoice.InvoiceDate = (DateTime)pickInvoiceDate.SelectedDate;
         currentInvoice             = controller.saveInvoice(currentInvoice);
         updateAllInvoices();
         setCurrentInvoice(currentInvoice);
     }
     catch (Exception ex) {
         HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name,
                     MethodInfo.GetCurrentMethod().Name, ex.Message);
     }
 }