Exemple #1
0
        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);
        }
Exemple #2
0
 private void ButtonCreateOrJoinServer_Click(object sender, RoutedEventArgs e)
 {
     CreateOrJoinServerDialog.Activate();
     CreateOrJoinServerDialog.ShowDialog();
 }