コード例 #1
0
 private void EditSurvey_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     ConferenceViewModel dataContext = ForView.Unwrap<ConferenceViewModel>(this.DataContext);
     if (dataContext != null)
     {
         SurveyEditChildWindow childWindow = new SurveyEditChildWindow();
         childWindow.DataContext = ForView.Wrap(dataContext.SurveyEdit);
         childWindow.Show();
     }
 }
コード例 #2
0
ファイル: ConferenceView.xaml.cs プロジェクト: mobidian/MyCon
        private void EditSurvey_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            ConferenceViewModel dataContext = ForView.Unwrap <ConferenceViewModel>(this.DataContext);

            if (dataContext != null)
            {
                SurveyEditChildWindow childWindow = new SurveyEditChildWindow();
                childWindow.DataContext = ForView.Wrap(dataContext.SurveyEdit);
                childWindow.Show();
            }
        }