public DetaljiDestinacije(ref TuristickaAgencija refTours, ref string l) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; if (l.Equals("Sarajevo")) { Geopoint lok = new Geopoint(new BasicGeoposition() { Latitude = 43.85, Longitude = 18.41 }); MapIcon myPOI = new MapIcon { Location = lok, NormalizedAnchorPoint = new Point(0.5, 1.0), Title = "Destination", ZIndex = 0 }; mapa.MapElements.Add(myPOI); mapa.Center = lok; mapa.ZoomLevel = 10; } if (l.Equals("London")) { Geopoint lok = new Geopoint(new BasicGeoposition() { Latitude = 51.50, Longitude = 0.12 }); MapIcon myPOI = new MapIcon { Location = lok, NormalizedAnchorPoint = new Point(0, 0), Title = "Destination", ZIndex = 0 }; mapa.MapElements.Add(myPOI); mapa.Center = lok; mapa.ZoomLevel = 10; } if (l.Equals("Vienna")) { Geopoint lok = new Geopoint(new BasicGeoposition() { Latitude = 48.20, Longitude = 16.37 }); MapIcon myPOI = new MapIcon { Location = lok, NormalizedAnchorPoint = new Point(5.0, 1.5), Title = "Destination", ZIndex = 0 }; mapa.MapElements.Add(myPOI); mapa.Center = lok; mapa.ZoomLevel = 10; } if (l.Equals("Moscow")) { Geopoint lok = new Geopoint(new BasicGeoposition() { Latitude = 55.75, Longitude = 37.61 }); MapIcon myPOI = new MapIcon { Location = lok, NormalizedAnchorPoint = new Point(2.7, 3.3), Title = "Destination", ZIndex = 0 }; mapa.MapElements.Add(myPOI); mapa.Center = lok; mapa.ZoomLevel = 10; } }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; tours = new TuristickaAgencija(); tours.Osobe.Add(new Admin("ajdin", "horde", "ajdin", "horde", "asidhasd", "90123", "iasdj")); }
public void Create(string name) { TuristickaAgencija turistickaAgencija = new TuristickaAgencija() { Naziv = name }; turistickaAgencijaDAO.Insert(turistickaAgencija); }
public UposlenikView(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; for (int i = 0; i < tours.Lokacije.Count; i++) { lokacije.Items.Add(tours.Lokacije[i].Ime); } }
public void Update(TuristickaAgencijaDTO turistickaAgencijaDTO) { TuristickaAgencija turistickaAgencija = new TuristickaAgencija() { Id = turistickaAgencijaDTO.Id, Naziv = turistickaAgencijaDTO.Naziv }; turistickaAgencijaDAO.Update(turistickaAgencija); }
public Pregled_Vodic_(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; foreach (Lokacija l in tours.Lokacije) { lokacije.Items.Add(l.Ime); } }
public TuristickaAgencijaDTO FindById(object id) { TuristickaAgencija turistickaAgencija = turistickaAgencijaDAO.FindById(id); TuristickaAgencijaDTO turistickaAgencijaDTO = new TuristickaAgencijaDTO() { Id = turistickaAgencija.Id, Naziv = turistickaAgencija.Naziv }; return(turistickaAgencijaDTO); }
public HomePage(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; lok.Items.Add("London"); lok.Items.Add("Sarajevo"); lok.Items.Add("Vienna"); lok.Items.Add("Moscow"); foreach (Lokacija l in tours.Lokacije) { lok.Items.Add(l.Ime); } }
public PregledAdminView(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; foreach (Osoba o in tours.Osobe) { if (o is Uposlenik) { employeL.Items.Add(o.ToString()); } else if (o is Vodic) { touristL.Items.Add(o.ToString()); } else if (o is Putnik) { passL.Items.Add(o.ToString()); } } }
public UposlenikView() { this.InitializeComponent(); tours = new TuristickaAgencija(); }
public UposlenikViewModel(ref TuristickaAgencija refTours) { tours = new TuristickaAgencija(); tours = refTours; }
public VodicViewModel() { tours = new TuristickaAgencija(); }
public VodicViewModel(ref TuristickaAgencija refTours) { tours = new TuristickaAgencija(); tours = refTours; }
public DetaljiDestinacije() { this.InitializeComponent(); tours = new TuristickaAgencija(); }
public HomePage() { this.InitializeComponent(); tours = new TuristickaAgencija(); }
public LogInView(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; }
public PutnikViewModel() { tours = new TuristickaAgencija(); }
public Rezervacija_putnik_(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; }
public LogInView() { this.InitializeComponent(); tours = new TuristickaAgencija(); }
public Pregled_Vodic_() { this.InitializeComponent(); tours = new TuristickaAgencija(); }
public PregledAdminView() { this.InitializeComponent(); tours = new TuristickaAgencija(); }
public AdminViewModel() { tours = new TuristickaAgencija(); }
public UposlenikViewModel() { tours = new TuristickaAgencija(); }
public Placanje_putnik_(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; }
public DodavanjeDestinacije_Uposlenik_(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; }
public DodavanjeClanaAdmin(ref TuristickaAgencija refTours) { this.InitializeComponent(); tours = new TuristickaAgencija(); tours = refTours; }