public ServerManager(DockPanel dockPanelServer, Grid gridServerButton, Button buttonCreateOrJoinServer) { DockPanelServer = dockPanelServer; GridServerButton = gridServerButton; ButtonCreateOrJoinServer = buttonCreateOrJoinServer; ButtonServers = new Dictionary <Button, Server>(); CreateServerDialog = new CreateServerDialog(); JoinServerDialog = new JoinServerDialog(); CreateOrJoinServerDialog = new CreateOrJoinServerDialog(CreateServerDialog, JoinServerDialog); }
private void ButtonCreateOrJoinServer_Click(object sender, RoutedEventArgs e) { CreateOrJoinServerDialog.Activate(); CreateOrJoinServerDialog.ShowDialog(); }