private void CurrencyEditExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     var currencyId = (int) e.Parameter;
     var cd = new CurrencyDetail(currencyId, PageMode.EditMode);
     cd.Show();
     e.Handled = true;
 }
 private void Button1Click(object sender, RoutedEventArgs e)
 {
     var cd = new CurrencyDetail(PageMode.AddMode);
     cd.Show();
 }