public OpportunityBlock(Opportunity opp, AreaList page)
 {
     thisOpp  = opp;
     thisPage = page;
     InitializeComponent();
     opportunityBannerPic.ImageSource = new BitmapImage(new Uri("C:\\Users\\Student User\\source\\repos\\ResearchHub\\ResearchHub\\source file\\imgDefault.png", UriKind.Relative));
     opportunityName.Text             = opp.GetTitle();
     description.Text = opp.getDescription();
 }
Beispiel #2
0
        private Frame newFrame(Opportunity opp)
        {
            Frame     f      = new Frame();
            Thickness margin = f.Margin;

            margin.Left   = 70;
            margin.Bottom = 60;
            f.Margin      = margin;
            f.BorderBrush = new SolidColorBrush(Colors.Black);
            f.Content     = new OpportunityBlock(opp, this);
            return(f);
        }
Beispiel #3
0
 public void add(Opportunity opp)
 {
     opportunities.Add(opp);
 }