public AddRecordWindow()
 {
     InitializeComponent();
     Record      = new VarroaRecord();
     Record.Date = DateTime.Now;
     DataContext = this;
 }
        private void BtnEnterRcdClick(object sender, RoutedEventArgs e)
        {
            VarroaRecord tempRecord = new VarroaRecord();

            AddRecordWindow AddRcdWnd = new AddRecordWindow();

            AddRcdWnd.Owner = this;

            if (AddRcdWnd.ShowDialog() == true)
            {
                tempRecord = AddRcdWnd.Record;
            }
            if (tempRecord != null)
            {
                VarroaRecords.Add(tempRecord);
            }
            DataGridRecords.ItemsSource = VarroaRecords;
        }