Esempio n. 1
0
        /// <summary>
        /// Opens a DVD form when wanting to update the DVD through the DVD overview.
        /// </summary>
        /// <param name="model"></param>
        private void DVDOverview_OnUpdateDVD(DVD model)
        {
            SetTitle("Edit DVD");

            DVDForm _form = new DVDForm(model);

            _form.OnModelSaved += DVDForm_OnModelSaved;

            mainControl.Content = _form;
        }
Esempio n. 2
0
        /// <summary>
        /// Changes the content of the window to a form to add new DVD's.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void rbtnAddDVD_Click(object sender, RoutedEventArgs e)
        {
            SetTitleByRibbonButton(sender);

            var _form = new DVDForm();

            _form.OnModelSaved += DVDForm_OnModelSaved;

            mainControl.Content = _form;
        }