Esempio n. 1
0
 public SelectForeignKeyViewModel(DTE2 dte) : base()
 {
     this.Dte    = dte;
     ForeignKeys = new ObservableCollection <FluentAPIForeignKey>();
     PrincipalKeyButtonClicked = new ButtonClickedNotificationService();
     ForeignKeyButtonClicked   = new ButtonClickedNotificationService();
 }
 public SelectEntityForGivenDbContextViewModel(DTE2 dte) : base(dte)
 {
     SelectProjectCaption            = "Select Entity Project:";
     SelectClassCaption              = "Select Entity Class:";
     SelectedProppertyNameCaption    = "DbContext Property Name for selected class:";
     IsSelectedClassNameReadOnly     = true;
     SelectedProppertyNameVisibility = Visibility.Visible;
     UiCommandButtonClicked          = new ButtonClickedNotificationService();
 }
 public SelectDbContextViewModel(DTE2 dte) : base(dte)
 {
     UiCommandButtonClicked          = new ButtonClickedNotificationService();
     IsSelectedClassNameReadOnly     = true;
     SelectedProppertyNameCaption    = "DbContext PropertyName:";
     SelectedClassNameCaption        = "DbContext Class Name:";
     SelectedNameSpaceCaption        = "DbContext NameSpace:";
     SelectProjectCaption            = "Select DbContext Project:";
     SelectClassCaption              = "Select DbContext Class:";
     SelectedProppertyNameVisibility = Visibility.Collapsed;
     DefineUiCaptions();
 }
Esempio n. 4
0
 public MainWindowBase(DTE2 dte, ITextTemplating textTemplating, IVsThreadedWaitDialogFactory dialogFactory)
 {
     CancelClicked       = new ButtonClickedNotificationService();
     this.Dte            = dte;
     this.TextTemplating = textTemplating;
     this.DialogFactory  = dialogFactory;
     try
     {
         DefineDestinationProject();
     }
     catch
     {
         ;
     }
 }