public VideoLookUpForm(VideoRentalForm parent)
 {
     InitializeComponent();
     context = new DafestyEntities();
     LoadDataGrid();
     this.parent = parent;
 }
        public VideoRentalForm()
        {
            InitializeComponent();
            context = new DafestyEntities();

            customerLookUpForm = new CustomerLookUpForm(this);
            videoLookUpForm    = new VideoLookUpForm(this);

            // IssueDate can back date to 1 year before today
            IssueDateTimePicker.MinDate = DateTime.Now.Date - new TimeSpan(365, 0, 0, 0);
            IssueDateTimePicker.MaxDate = DateTime.Now.Date;

            // DueDate can range from today to 1 year from today
            DueDateTimePicker.MinDate = DateTime.Now.Date;
            DueDateTimePicker.MaxDate = DateTime.Now.Date + new TimeSpan(365, 0, 0, 0);
        }