Example #1
0
 public void SetUp()
 {
     main = Map.Instance();
     Logger.GetInstance().AllowLogging = true;
     view = LoggerView.Instance();
     viewmodel = (LoggerViewModel)view.DataContext;
 }
Example #2
0
        /// <summary>
        /// Prevents a default instance of the <see cref="Map" /> class from being created.
        /// </summary>
        private Map()
        {
            instance = this;
            this.InitializeComponent();
            this.Icon = ImageMap.GetImage(ImageEnum.Logo.ToString());
            this.MapWidth = 160 * SizeEnum.Map.Scale;
            this.MapHeight = 170 * SizeEnum.Map.Scale;
            this.MapLeft = 60 * SizeEnum.Map.Scale;
            this.MapTop = 80 * SizeEnum.Map.Scale;
            this.AddGrid();

            if (Log.Logger.GetInstance().AllowLogging)
            {
                this.LogButton.Visibility = System.Windows.Visibility.Visible;
            }
        }
Example #3
0
 public void SetUp()
 {
     map = Map.Instance();
     handler = new CarHandler(map);
 }
Example #4
0
        public void SetUp()
        {
            clicked = false;

            Logger.GetInstance().AllowLogging = true;
            map = Map.Instance();
            map.Reset();
        }
Example #5
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();
        }
Example #6
0
 /// <summary>
 /// Resets this instance.
 /// </summary>
 public void Reset()
 {
     instance = new Map();
 }
Example #7
0
 public void SetUp()
 {
     map = Map.Instance();
     handler = new BuildingHandler(map);
 }
Example #8
0
 public void SetUp()
 {
     map = Map.Instance();
     handler = new PatientHandler(map);
 }