Ejemplo n.º 1
0
        } // private void SuspendCurrentLayout

        private void SwapControls()
        {
            if (currentWindow == (int)ButtonCount.LOGS)
            {
                cache_ctrLogs = ctrlLogs;
            }
            else if (currentWindow == (int)ButtonCount.REGISTRATION)
            {
                cache_ctrlRegi = ctrlRegi;
            }
            else if (currentWindow == (int)ButtonCount.CHECK_APPOINTMENT)
            {
                cache_ctrlCheck = ctrlCheck;
            }
            else if (currentWindow == (int)ButtonCount.ADD_APPOINTMENT)
            {
                cache_ctrlAdd = ctrlAdd;
            }
            else
            {
            }
        } // private void SwapControls()
Ejemplo n.º 2
0
        public FormStaff(MySqlConnection conn, string userID, string firstName, string lastName, string userType)
        {
            InitializeComponent();

            this.conn      = conn;
            this.userID    = userID;
            this.firstName = firstName;
            this.lastName  = lastName;
            this.userType  = userType;

            formQueue = new FormQueue(conn);
            formQueue.Show();
            formQueue.WindowState = FormWindowState.Minimized;

            this.ctrlLogs  = new CtrlLogs(this, formQueue, conn, userID);
            this.ctrlRegi  = new CtrlRegi(this, conn, userID);
            this.ctrlCheck = new CtrlCheckAppt(this, conn, userID);
            this.ctrlAdd   = new CtrlAddAppt(this, conn, userID);

            pnlControl.SuspendLayout();
            pnlControl.Controls.Clear();
            pnlControl.Controls.Add(ctrlLogs);
            pnlControl.ResumeLayout();

            lblLastName.Text  = lastName;
            lblFirstName.Text = firstName;
            lblUserID.Text    = userID;
            lblUserType.Text  = userType;

            sysTimer.Interval = 100;
            sysTimer.Tick    += new EventHandler(UpdateSystemTime);
            sysTimer.Enabled  = true;

            lblAction.Text = "LOG PATIENT";

            pnlControl.HorizontalScroll.Enabled = false;
            pnlControl.HorizontalScroll.Visible = false;
        } // Class Constructor()