public RasporedSedenja(MainWindow window, CelebrationRequest offer, Associate a) { ActiveMap = "home-icon.png"; InitializeComponent(); this.MainWindow = window; this.DataContext = this; Saradnik = a; Gosti = new ObservableCollection <Gost>(offer.Gosti); string curDir = Directory.GetParent(Directory.GetParent(Directory.GetParent(Directory.GetCurrentDirectory()).FullName).FullName).FullName; string pathO = String.Format("{0}/data/images/home-icon.png", curDir); Uri u = new Uri(String.Format("file:///{0}/data/images/home-icon.png", curDir)); BitmapImage bitmap = new BitmapImage(); bitmap.BeginInit(); bitmap.UriSource = u; bitmap.EndInit(); ImageViewer1.Source = bitmap; }
private void NapraviPonudu_Click(object sender, RoutedEventArgs e) { CelebrationRequest selectedZahtev = (CelebrationRequest)dgrMain.SelectedItem; if (selectedZahtev != null) { var napraviPonudu = new HCI_T5._4.NapraviPonudu(this.MainWindow, selectedZahtev); napraviPonudu.Show(); } }
private void PregledajPonude_Click(object sender, RoutedEventArgs e) { CelebrationRequest selectedClient = (CelebrationRequest)dgrMain.SelectedItem; if (selectedClient != null) { var ponude = new HCI_T5._4.TabelaPonuda(this.MainWindow, selectedClient); ponude.Show(); } }
public NapraviPonudu(MainWindow window, CelebrationRequest zah) { InitializeComponent(); this.MainWindow = window; this.DataContext = this; Zahtev = zah; budzet = zah.Budzet; Saradnici = this.MainWindow.Saradnici; IzabraniProizvodi = new ObservableCollection <Product>(); }
public TabelaPonuda(MainWindow window, CelebrationRequest celeb) { InitializeComponent(); this.DataContext = this; this.MainWindow = window; Ponude = new ObservableCollection <CelebrationOffer>(); foreach (CelebrationOffer cel in this.MainWindow.Ponude) { if (celeb.Id == cel.ZahtevIdx) { Ponude.Add(cel); } } }