private void timer_door_open_down_Tick(object sender, EventArgs e)
 {
     if (doorLeftdown.Left >= 51 && doorRightdown.Left <= 340)
     {
         CtrlDoor dod = new CtrlDoor();
         dod.Timer_door_open_down(doorLeftdown, doorRightdown);
     }
     else
     {
         timer_door_open_down.Enabled = false;
         dbcmd.SaveLog("Ground Floor Door Opening");
         LoadData();
     }
 }
        private void timer_door_open_up_Tick(object sender, EventArgs e)
        {
            if (doorLeftup.Left >= 50 && doorRightup.Left <= 340)
            {
                CtrlDoor dou = new CtrlDoor();
                dou.Timer_door_open_up(doorLeftup, doorRightup);
            }
            else
            {
                timer_door_open_up.Enabled = false;
                dbcmd.SaveLog("First Floor Door Opening");
                LoadData();

                btnDown.Enabled = true;
            }
        }
        private void timer_door_close_down_Tick(object sender, EventArgs e)
        {
            if (doorLeftdown.Left <= 150 && doorRightdown.Left >= 254)
            {
                CtrlDoor dcd = new CtrlDoor();
                dcd.Timer_door_close_down(doorLeftdown, doorRightdown);
            }
            else
            {
                timer_door_close_down.Enabled = false;
                dbcmd.SaveLog("Ground Floor Door Closing");
                LoadData();

                if (go_down == true)
                {
                    timer_up.Enabled = true;
                    go_down          = false;
                }
            }
        }
        private void timer_door_close_up_Tick(object sender, EventArgs e)
        {
            if (doorLeftup.Left <= 150 && doorRightup.Left >= 254)
            {
                CtrlDoor dcu = new CtrlDoor();
                dcu.Timer_door_close_up(doorLeftup, doorRightup);
            }
            else
            {
                timer_door_close_up.Enabled = false;
                dbcmd.SaveLog("First Floor Door Closing");
                LoadData();

                if (go_up == true)
                {
                    timer_down.Enabled = true;
                    go_up = false;
                }
            }
        }