Exemplo n.º 1
0
        public MessageRoom(uint userID, ChatRoom room, List <ChatMessage> messageList)
        {
            InitializeComponent();

            isMove       = false;
            _userID      = userID;
            _room        = room;
            _messageList = messageList;
            this.Name    = room.ID.ToString();
            this.Text    = this.lbl_Title.Text = _room.Name;
            if (lbl_Title.Text.Length > 8)
            {
                lbl_Title.Text = lbl_Title.Text.Substring(0, 8) + "...";
            }
            this.StartPosition = FormStartPosition.Manual;

            panel1.BackColor              = lbl_Title.BackColor = btn_menu.BackColor = button1.BackColor = BlindColor.DarkGreen;
            lbl_Title.ForeColor           = button1.ForeColor = BlindColor.Light;
            panel4.BackColor              = btn_Send.ForeColor = BlindColor.Light;
            btn_Send.BackColor            = BlindColor.DarkGreen;
            panel5.BackColor              = tb_Message.BackColor = BlindColor.Light;
            message_LayoutPanel.BackColor = BlindColor.DarkGray;

            BlindNetUtil.SetEllipse(this, 5);
            //BlindNetUtil.SetEllipse(btn_Send, 5);
            BlindNetUtil.SetEllipse(panel4, 5);
            BlindNetUtil.SetEllipse(btn_menu, 20);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public CreateRoomForm(uint _UserID)
        {
            InitializeComponent();

            this.StartPosition = FormStartPosition.CenterParent;
            this._UserID       = _UserID;
            _UserCount         = 1;

            this.BackColor          = Color.Black;
            lbl_UserCount.BackColor = button1.BackColor = lbl_FormName.BackColor = panel4.BackColor = BlindColor.DarkGreen;
            label1.BackColor        = lbl_FormName.ForeColor = panel4.ForeColor = BlindColor.Light;

            btn_Cancel.BackColor        = btn_Confirm.BackColor = BlindColor.DarkGreen;
            tableLayoutPanel1.BackColor = btn_Cancel.ForeColor = btn_Confirm.ForeColor = BlindColor.Light;

            CreateRoomIItem_LayoutPanel.BackColor = BlindColor.Gray;
            panel3.BackColor = BlindColor.Light;

            lbl_UserCount.ForeColor = BlindColor.Light;
            panel7.BackColor        = tb_RoomName.BackColor = BlindColor.Light;

            BlindNetUtil.SetEllipse(this, 5);
            BlindNetUtil.SetEllipse(tableLayoutPanel1, 5);
            BlindNetUtil.SetEllipse(panel4, 10);
            BlindNetUtil.SetEllipse(btn_Confirm, 15);
            BlindNetUtil.SetEllipse(btn_Cancel, 15);
        }
Exemplo n.º 4
0
        public User_Category(string department)
        {
            InitializeComponent();
            Lbl_Category.Text      = department;
            Lbl_Category.ForeColor = BlindColor.Light;
            //Lbl_Category.BackColor = BlindColor.Info;

            BlindNetUtil.SetEllipse(this, 3);
        }
Exemplo n.º 5
0
        public Room_Item(ChatRoom Room)
        {
            InitializeComponent();
            lbl_Name.Cursor = Cursors.Hand;

            this.BackColor     = BlindColor.Primary;
            lbl_Time.ForeColor = lbl_Name.ForeColor = BlindColor.Light;
            BlindNetUtil.SetEllipse(this, 15);

            _Room = Room;
        }
Exemplo n.º 6
0
        public Menu_item(string name)
        {
            InitializeComponent();

            BlindNetUtil.SetEllipse(this, 5);
            this.BackColor     = BlindColor.Primary;
            lbl_name.ForeColor = BlindColor.Light;
            lbl_name.BackColor = BlindColor.Primary;

            userName      = name;
            lbl_name.Text = userName;
        }
Exemplo n.º 7
0
        public User_Item(User user)
        {
            InitializeComponent();
            Lbl_UserPosition.Cursor = Cursors.Hand;
            Lbl_UserName.Cursor     = Cursors.Hand;
            BlindNetUtil.SetEllipse(this, 10);

            this.BackColor             = BlindColor.Gray;
            Lbl_UserPosition.ForeColor = BlindColor.Primary;

            _user = user;
        }
Exemplo n.º 8
0
        public CreateRoom_Item(User user)
        {
            InitializeComponent();
            _User      = user;
            _isClicked = false;

            this.BackColor   = BlindColor.LightGreen;
            panel1.BackColor = BlindColor.Primary;
            panel2.BackColor = btn_Check.BackColor = BlindColor.Light;


            BlindNetUtil.SetEllipse(this, 10);
            BlindNetUtil.SetEllipse(panel1, 30);
            BlindNetUtil.SetEllipse(panel2, 40);
            BlindNetUtil.SetEllipse(btn_Check, 40);
        }
Exemplo n.º 9
0
        public User_Info()
        {
            InitializeComponent();

            this.BackColor = BlindColor.Gray;
            tableLayoutPanel1.BackColor = lbl_Name.BackColor = BlindColor.Primary;
            panel2.BackColor            = BlindColor.Gray;
            lbl_Department.ForeColor    = lbl_Birth.ForeColor = lbl_Email.ForeColor = lbl_Phone.ForeColor = lbl_Position.ForeColor = BlindColor.Primary;
            BlindNetUtil.SetEllipse(panel3, 20);

            panel9.Width  = panel10.Width;
            panel14.Width = panel11.Width;
            panel15.Width = panel12.Width;
            panel16.Width = panel13.Width;
            panel19.Width = panel18.Width;

            panel9.BackColor = panel14.BackColor = panel15.BackColor = panel16.BackColor = panel19.BackColor = BlindColor.LightGreen;
        }
Exemplo n.º 10
0
        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);
        }
Exemplo n.º 11
0
        public Message_Item(ChatMessage message, MessageDirection direct)
        {
            InitializeComponent();

            BubbleIndent     = 100;
            _message         = message;
            label1.Text      = message.Message;
            label1.Dock      = DockStyle.Fill;
            panel1.Dock      = DockStyle.None;
            this.BackColor   = Color.Transparent;
            label1.Enabled   = true;
            label1.ForeColor = Color.Black;
            direction        = direct;

            if (direction == MessageDirection.right)
            {
                panel1.BackColor  = label1.BackColor = BlindColor.Primary;
                lbl_userName.Text = "";
                BlindNetUtil.SetEllipse(panel1, 10);
            }
            else if (direction == MessageDirection.middle)
            {
                label1.BackColor  = panel1.BackColor = BlindColor.LightGreen;
                label1.ForeColor  = BlindColor.Black;
                lbl_userName.Text = "";
                BlindNetUtil.SetEllipse(panel1, 20);
            }
            else
            {
                label1.BackColor  = panel1.BackColor = BlindColor.LightGreen;
                lbl_userName.Dock = DockStyle.Left;
                panel1.Location   = new Point(0, lbl_userName.Height);
                BlindNetUtil.SetEllipse(panel1, 10);
            }
            lbl_userName.ForeColor = BlindColor.Black;
        }