Exemple #1
0
        private void teacherSingUP_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            Grid parentGrid = (Grid)this.Parent;

            parentGrid.Children.Remove(this);
            InstructorPlanFragmentVM mInstructorPlanFragmentVM = new InstructorPlanFragmentVM()
            {
                //TODO get instructor offers from internet
                InstructorCost     = "$149/month",
                BusinessCost       = "$599/month",
                TrainingCenterCost = "$299/month"
            };

            parentGrid.Children.Add(new InstructorPlanFragment(mInstructorPlanFragmentVM));
        }
Exemple #2
0
 public InstructorPlanFragment(InstructorPlanFragmentVM vm)
 {
     InitializeComponent();
     DataContext = vm;
 }