Exemplo n.º 1
0
 private void FormOptions_FormClosing(object sender, FormClosingEventArgs e)
 {
     e.Cancel = true;
     serial.CopySerialSettings(SerialContext);
     serial.Close();
     SendClick?.Invoke(sender, e);
     this.Hide();
 }
Exemplo n.º 2
0
        public WeiXinTextInput()
        {
            this.InitializeComponent();

            button1.Click += (sender, e) =>
            {
                if (SendClick != null)
                {
                    SendClick.Invoke(sender, e);
                }
            };

            button1.PointerEntered += Button1_PointerEntered;
            button1.PointerExited  += Button1_PointerExited;;

            emojiImage1.PointerEntered += EmojiImage1_PointerEntered;
            emojiImage1.PointerExited  += EmojiImage1_PointerExited;
            emojiImage1.PointerPressed += EmojiImage1_PointerPressed;
        }