public AddRate(Rate edit)
 {
     InitializeComponent();
     this.edit   = edit;
     DataContext = edit;
 }
 public AddRate()
 {
     InitializeComponent();
     edit        = new Rate();
     DataContext = edit;
 }