public PlanRoomNumber(Plan p, PlanSearchResult psr, int i, double d)
 {
     InitializeComponent();
     plan             = p;
     plansearchresult = psr;
     cruiseid         = i;
     roomprice        = d;
 }
Exemplo n.º 2
0
 private void btnPrevResult_Click(object sender, EventArgs e)
 {
     if (index > 0)
     {
         PlanSearchResult psr = new PlanSearchResult(plan, plansearch, cruises, index - 1);
         plan.Controls.Add(psr);
         plan.Controls.Remove(this);
     }
     else
     {
         btnPrevResult.Enabled = false;
     }
 }
 //pass a list of cruises
 public void openResult()
 {
     if (cruises.Count() > 0)
     {
         PlanSearchResult psr = new PlanSearchResult(plan, this, cruises);
         plan.Controls.Add(psr);
         this.Visible = false;
     }
     else
     {
         MessageBox.Show("no cruises that match your selection");
     }
 }