Exemple #1
0
        /// <summary>
        /// Button click on start
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        public void ButtonStart(object sender, RoutedEventArgs e)
        {
            this.address = this.GetIP();
            this.internetProtocolHandler.SaveIpToFile(this.IpAdressText.Text);

            this.map = Map.Instance();
            this.dataHandler = new DataHandler(this.map);
            ClientHandler c = new ClientHandler(this.dataHandler, this.address);
            this.map.Show();
            this.Hide();
            this.Close();
        }
Exemple #2
0
 public void setUp()
 {
     DataHandler dHandler = new DataHandler(Map.Instance());
     cHandler = new ClientHandler(dHandler, "127.0.0.1");
 }