public MySqlBackUp() { InitializeComponent(); viewModel = MySqlBackUpViewModel.Instance(); DataContext = viewModel; wpDayOfWeek.DataContext = viewModel.CurrentPolicy; dtpTime.DataContext = viewModel.CurrentPolicy; gridBackUpType.DataContext = viewModel.CurrentPolicy; gridManualBackUpType.DataContext = viewModel.CurrentPolicy; }