Пример #1
0
 /// <summary>
 /// Handle click event CancelSearchBut, delete search result, display default form
 /// </summary>
 /// <param name="sender">The object send event</param>
 /// <param name="e">An EventArgs</param>
 private void CancelSearchBut_Click(object sender, EventArgs e)
 {
     searchTxt.Text   = "";
     searchTxt.Width  = this.ClientSize.Width - 140;
     this.stationList = viewStationController.ViewListStation();
     RenderStationList();
 }
Пример #2
0
        /// <summary>
        /// contructor of HomePageForm
        /// </summary>
        public HomePageForm() : base()
        {
            viewStationController = new ViewStationController();

            stationList = viewStationController.ViewListStation();

            InitializeComponent("HomePageForm", "Home Page");
            DrawHomePage();
            RenderStationList();
            this.StartPosition = FormStartPosition.CenterScreen;
        }
Пример #3
0
        /// <summary>
        /// contructor of RentBikeForm
        /// </summary>
        public ReturnBikeForm() : base()
        {
            viewStationController = new ViewStationController();
            returnBikeController  = new ReturnBikeController();

            stationList = viewStationController.ViewListStation();

            InitializeComponent("ReturnBikeForm", "Return Bike");
            DrawReturnBikeForm();
            RenderStationList();
        }