public AddRecordController(AddRecordDialog view)
        {
            if (view == null)
                throw new ArgumentNullException("view");

            this.view = view;
        }
 private void AddRecordButton_Click(object sender, RoutedEventArgs e)
 {
     AddRecordDialog dialog = new AddRecordDialog();
     dialog.ShowDialog();
 }