Ejemplo n.º 1
0
        /// <summary>
        /// Constructs a MainWindow and hides it.
        /// @Author Karanbir and Ameet
        /// </summary>
        public MainWindow()
        {
            SERVICE_DATABASE = new ServiceDatabase();
            USER_DATABASE    = new UserDatabase();
            this.Hide();
            InitializeComponent();

            Form1 login = new Form1(this);

            login.Show();
            ReviewService review = new ReviewService(4, "the best");

            Console.WriteLine(review.ToString());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the review for the Service object.
 /// </summary>
 /// <param name="theReview">The ReviewService object.</param>
 public void setReview(ReviewService theReview)
 {
     myReview = theReview;
 }