private void btnAll_Click(object sender, EventArgs e)
 {
     flpRoom.Controls.Clear();
     romsty = RoomService.SelectRoomAll();
     for (int i = 0; i < romsty.Count; i++)
     {
         romt = new ucRoomList(this);
         romt.Tag = romsty[i].RoomNo;
         romt.romCustoInfo = romsty[i];
         flpRoom.Controls.Add(romt);
     }
 }
 private void LoadData(string typeName)
 {
     flpRoom.Controls.Clear();
     romsty = RoomService.SelectRoomByTypeName(typeName);
     for (int i = 0; i < romsty.Count; i++)
     {
         romt = new ucRoomList(this);
         romt.Tag = romsty[i].RoomNo;
         romt.romCustoInfo = romsty[i];
         flpRoom.Controls.Add(romt);
     }
     lblCanUse.Text = RoomManager.SelectCanUseRoomAllByRoomState().ToString();
     lblCheck.Text = RoomManager.SelectNotUseRoomAllByRoomState().ToString();
     lblNotClear.Text = RoomManager.SelectNotClearRoomAllByRoomState().ToString();
     lblFix.Text = RoomManager.SelectFixingRoomAllByRoomState().ToString();
 }
        private void FrmRoomManager_Load(object sender, EventArgs e)
        {
            romsty = RoomService.SelectRoomAll();
            for (int i = 0; i < romsty.Count; i++)
            {
                romt = new ucRoomList(this);
                romt.Tag = romsty[i].RoomNo;
                romt.romCustoInfo = romsty[i];
                flpRoom.Controls.Add(romt);
            }

            lblCanUse.Text = RoomManager.SelectCanUseRoomAllByRoomState().ToString();
            lblCheck.Text = RoomManager.SelectNotUseRoomAllByRoomState().ToString();
            lblNotClear.Text = RoomManager.SelectNotClearRoomAllByRoomState().ToString();
            lblFix.Text = RoomManager.SelectFixingRoomAllByRoomState().ToString();
        }
 private void picRefrech_Click(object sender, EventArgs e)
 {
     flpRoom.Controls.Clear();
     romsty = RoomService.SelectRoomAll();
     for (int i = 0; i < romsty.Count; i++)
     {
         romt              = new ucRoomList(this);
         romt.Tag          = romsty[i].RoomNo;
         romt.romCustoInfo = romsty[i];
         flpRoom.Controls.Add(romt);
     }
     lblRoomNo.Text       = "";
     lblRoomPosition.Text = "";
     lblRoomState.Text    = "";
     lblCustoNo.Text      = "";
     lblCheckTime.Text    = "";
 }