/// <summary> /// Display rent bike form base on specified rent bike status /// </summary> /// <param name="rentBike">The specified rent bike status</param> private void DisplayRentBike(Config.RENT_BIKE rentBike) { if (rentBike == Config.RENT_BIKE.RENT_BIKE) { rentBikePnl.Visible = true; rentingBikePnl.Visible = false; rentBikeInfoPnl.Visible = false; rentBikeQrCodeTxt.Text = ""; } else if (rentBike == Config.RENT_BIKE.RENTING_BIKE) { rentBikePnl.Visible = false; rentingBikePnl.Visible = true; rentBikeInfoPnl.Visible = false; } else { rentBikePnl.Visible = false; rentingBikePnl.Visible = false; rentBikeInfoPnl.Visible = true; } }
/// <summary> /// Show rent bike form base on specified rent bike status and specified form's location /// </summary> /// <param name="form">The specified form</param> /// <param name="rentBike">The specified rent bike status</param> public void Show(Form form, Config.RENT_BIKE rentBike, BaseForm prevForm = null) { DisplayRentBike(rentBike); this.Show(form, prevForm); }