public void SetUp() { main = Map.Instance(); Logger.GetInstance().AllowLogging = true; view = LoggerView.Instance(); viewmodel = (LoggerViewModel)view.DataContext; }
/// <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; } }
public void SetUp() { map = Map.Instance(); handler = new CarHandler(map); }
public void SetUp() { clicked = false; Logger.GetInstance().AllowLogging = true; map = Map.Instance(); map.Reset(); }
/// <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(); }
/// <summary> /// Resets this instance. /// </summary> public void Reset() { instance = new Map(); }
public void SetUp() { map = Map.Instance(); handler = new BuildingHandler(map); }
public void SetUp() { map = Map.Instance(); handler = new PatientHandler(map); }