public Invitation_Form(int _roomID) { InitializeComponent(); this.StartPosition = FormStartPosition.Manual; this.isMove = false; this._roomID = _roomID; _UserCount = 0; _userList = BlindChat.GetUserList(this._roomID); btn_Invite.BackColor = btn_Cancel.BackColor = BlindColor.DarkGreen; lbl_UserCount.BackColor = label1.BackColor = btn_close.BackColor = BlindColor.DarkGreen; lbl_UserCount.ForeColor = label1.ForeColor = BlindColor.Light; btn_Cancel.ForeColor = btn_Invite.ForeColor = BlindColor.Light; panel5.BackColor = BlindColor.Light; panel4.BackColor = BlindColor.Gray; InvitationItem_LayoutPanel.BackColor = BlindColor.Gray; BlindNetUtil.SetEllipse(this, 5); BlindNetUtil.SetEllipse(panel5, 5); BlindNetUtil.SetEllipse(btn_Invite, 15); BlindNetUtil.SetEllipse(btn_Cancel, 15); }
private void Room_Item_Load(object sender, EventArgs e) { this.lbl_Name.Text = _Room.Name; DateTime currentTime = DateTime.Now; DateTime messageTime = Convert.ToDateTime(_Room.LastMessageTime); TimeSpan gapTime = currentTime - messageTime; if (gapTime.Days < 1) { this.lbl_Time.Text = messageTime.ToString("tt hh:mm"); } else if (gapTime.Days < 2) { this.lbl_Time.Text = "어제"; } else { this.lbl_Time.Text = messageTime.ToString("MM:dd"); } lbl_userCount.Text = BlindChat.GetUserList(_Room.ID).Count().ToString() + " |"; }
public Room_Menu(uint userID, ChatRoom room) { InitializeComponent(); this.isMove = false; this._room = room; this.UserID = userID; this.lbl_RoomName.Text = room.Name; this.StartPosition = FormStartPosition.Manual; _userList = BlindChat.GetUserList(_room.ID); btn_Invite.BackColor = btn_close.BackColor = panel1.BackColor = lbl_RoomName.BackColor = BlindColor.DarkGreen; lbl_RoomName.ForeColor = BlindColor.Light; btn_exit.BackColor = BlindColor.DarkGreen; btn_close.ForeColor = BlindColor.Light; panel2.BackColor = BlindColor.Light; label1.ForeColor = BlindColor.Secondary; BlindNetUtil.SetEllipse(this, 5); BlindNetUtil.SetEllipse(panel5, 5); BlindNetUtil.SetEllipse(btn_Invite, 20); }