コード例 #1
0
 public ConnectSQLServerDialogWindow()
 {
     this.Title = "Add SQL Server";
     viewModel  = new ConnectSQLServerDialogViewModel()
     {
         OnCancel  = OnCancel,
         OnConfirm = OnConfirm
     };
     ConfigureWindowProperties();
 }
コード例 #2
0
 public ConnectSQLServerDialogWindow(DatabaseServer server)
 {
     this.Title = "Edit SQL Server";
     viewModel  = new ConnectSQLServerDialogViewModel(server)
     {
         OnCancel  = OnCancel,
         OnConfirm = OnConfirm
     };
     ConfigureWindowProperties();
 }
コード例 #3
0
 public ConnectSQLServerDialogView(ConnectSQLServerDialogViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }