Ejemplo n.º 1
0
 public SelectWebServerWindow(List <WebServer> servers)
 {
     this.Title            = "Select web server...";
     this.SizeToContent    = SizeToContent.WidthAndHeight;
     WindowStartupLocation = WindowStartupLocation.CenterScreen;
     ResizeMode            = ResizeMode.NoResize;
     viewModel             = new WebServerListViewModel(servers);
     viewModel.OnCancel    = OnCancel;
     viewModel.OnConfirm   = OnConfirm;
     this.Content          = new WebServerListView(viewModel);
 }
Ejemplo n.º 2
0
 public WebServerListView(WebServerListViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }