Exemplo n.º 1
0
        //submit text button
        private void SubmitButton_Click(object sender, EventArgs e)
        {
            string input = SubmitText.Text;

            PacketData.ChatMessagePacket packet = new PacketData.ChatMessagePacket(SubmitText.Text);
            _client.TCPSend(packet);
            SubmitText.Clear();
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            string input = nickName.Text;

            PacketData.NickNamePakcet packet = new PacketData.NickNamePakcet(input);
            _client.TCPSend(packet);
            SubmitText.Clear();
        }
        public override void UpdateData()
        {
            MainWindowView?.SetBackgroundColor(ColorConstants.WhiteColor, 8);

            CellModel2 = new FeedbackListCategoryCell(this);

            BackgroundView?.SetBackgroundColor(ColorConstants.TransparentColor);

            if (SubmitText != null)
            {
                SubmitText.SetTextColor(ColorConstants.WhiteColor);
                SubmitText.Text = "Submit Feedback".ToUpperInvariant();
                SubmitText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14);
                SubmitText.SetBackgroundColor(ColorConstants.SelectorHome);
                SubmitText.Click -= Submit_Click;
                SubmitText.Click += Submit_Click;
                SubmitText.SetSelectedColor(ColorConstants.WhiteColor);
            }

            if (TitleText != null)
            {
                TitleText.Text = RFeedback.GiveUsFedbackText;
                TitleText.SetTextColor(ColorConstants.FeedbackTitle);
                TitleText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size24);
            }

            if (CloseImage != null)
            {
                CloseImage?.SetImageFromResource(DrawableConstants.FeedbackCloseIcon);
                CloseImage.Click -= BackgroundView_Click;
                CloseImage.Click += BackgroundView_Click;
            }

            //ListViewCategory?.UpdateDataSource(FeedbackManager.Instance.GetCategoryItem());
            //ListViewCategory?.Orientation(OrientationListView.Horizontal);

            ListViewEmoji?.UpdateDataSource(FeedbackManager.Instance.GetItem());
            ListViewEmoji?.Orientation(OrientationListView.Horizontal);
        }