Ejemplo n.º 1
0
 public void SetUp()
 {
     main = Map.Instance();
     Logger.GetInstance().AllowLogging = true;
     view = LoggerView.Instance();
     viewmodel = (LoggerViewModel)view.DataContext;
 }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
0
 public void SetUp()
 {
     map = Map.Instance();
     handler = new CarHandler(map);
 }
Ejemplo n.º 4
0
        public void SetUp()
        {
            clicked = false;

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