예제 #1
0
        private void btnBooking_Click(object sender, EventArgs e)
        {
            string     usertype = Model.getUserTypeForCurrentuser();
            string     username = Model.getUserNameForCurrentuser();
            frmBooking booking  = new frmBooking(Model);

            booking.Show(); // show booking form
            booking.ShowUserName(usertype, username);
        }
예제 #2
0
        private void btnBooking_Click(object sender, EventArgs e)
        {
            string     usertype = Model.getUserTypeForCurrentuser();
            string     username = Model.getUserNameForCurrentuser();
            frmBooking booking  = new frmBooking(Model);

            booking.RefToDashboardAssistant = this;
            this.Visible = false;
            booking.Show(); // show booking form
            booking.ShowUserName(usertype, username);
        }