private void button_Click(object sender, RoutedEventArgs e) { ServersList servers = new ServersList(Group); this.Content = servers; mainFrame.NavigationService.Navigate(servers); }
void init() { InitializeComponent(); SetList(); SetAllServersToGroup(); ServersList servers = new ServersList(CheckUnasigned()); servers.DataContext = this; serversFrame.Content = servers; }
private void selectItem(object sender, RoutedEventArgs e) { var selectedItem = clientsList.SelectedItem as GroupModel; if (selectedItem == null) { return; } var servers = new ServersList(selectedItem); servers.DataContext = this; serversFrame.Content = servers; }