示例#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);
 }
示例#2
0
 public WebServerListView(WebServerListViewModel viewModel)
 {
     InitializeComponent();
     DataContext = viewModel;
 }