Exemplo n.º 1
0
 public ConnectSQLServerDialogWindow()
 {
     this.Title = "Add SQL Server";
     viewModel  = new ConnectSQLServerDialogViewModel()
     {
         OnCancel  = OnCancel,
         OnConfirm = OnConfirm
     };
     ConfigureWindowProperties();
 }
Exemplo n.º 2
0
 public ConnectSQLServerDialogWindow(DatabaseServer server)
 {
     this.Title = "Edit SQL Server";
     viewModel  = new ConnectSQLServerDialogViewModel(server)
     {
         OnCancel  = OnCancel,
         OnConfirm = OnConfirm
     };
     ConfigureWindowProperties();
 }
 public ConnectSQLServerDialogView(ConnectSQLServerDialogViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }