Exemplo n.º 1
0
        private void ChangeNotificationButton()
        {
            button.Text = _message.Text;

            ButtonNotification ButtonTemp = db.GetButtonNotification(button);

            if (ButtonTemp == null)
            {
                db.SetValue(button);
            }

            ButtonAndTextNotication temp = db.GetButtonAndTextNotication(user);

            if (temp.Text != null)
            {
                Text += temp.Text.Text + "\n";
            }

            Text += button.Text;

            db.SetValue(new CollectionButtonNotification()
            {
                buttonAndTextNotification = temp, buttonNotification = button
            });
            db.Save();
        }