public void ExecuteOkCommand()
        {
            PageNumber++;
            switch (PageNumber)
            {
            case 3:
                // Field values were entered.
                GetFieldValues();

                View.ResetFieldValues(_predefinedFields, _customFields);
                CodeBehindCSharp.ResetFieldValues(_predefinedFields, _customFields);
                ViewModelCSharp.ResetFieldValues(_predefinedFields, _customFields);
                CodeBehindVisualBasic.ResetFieldValues(_predefinedFields, _customFields);
                ViewModelVisualBasic.ResetFieldValues(_predefinedFields, _customFields);
                break;

            case 4:

                break;
            }
        }
        public void ExecuteSelectCommand(TemplateDialogViewModel t)
        {
            PageNumber++;

            // Only do something if user changed the template.  The user
            // might have simply pressed 'Back' and is now going forward
            // without changing to another template.
            if (SelectedTemplate != t)
            {
                SelectedTemplate = t;

                // Template was selected.
                View.Init(SelectedTemplate.View.Buffer);
                CodeBehindCSharp.Init(SelectedTemplate.CodeBehindCSharp.Buffer);
                ViewModelCSharp.Init(SelectedTemplate.ViewModelCSharp.Buffer);
                CodeBehindVisualBasic.Init(SelectedTemplate.CodeBehindVisualBasic.Buffer);
                ViewModelVisualBasic.Init(SelectedTemplate.ViewModelVisualBasic.Buffer);

                FieldValues.Init((ObservableCollection <FieldDialogViewModel>)t.Fields.SourceCollection);
            }
        }