示例#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);
        }