/// <summary>
        /// Método do botão 2, mouse up. (CANCEL)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void Button_2_MouseUp(object sender, EngineEventArgs e)
        {
            EngineMultimedia.Play(EngineSoundEnum.Click);

            TextBox.CursorEnabled = false;
            Visible = false;
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void Button_MouseUp(object sender, EngineEventArgs e)
        {
            if (Enabled == false)
            {
                return;
            }

            EngineMultimedia.Play(EngineSoundEnum.Click);
            Visible = false;

            if (Common.Configuration.Disconnected)
            {
                Environment.Exit(0);
            }
        }
        /// <summary>
        /// Método do botão 1, mouse up. (OK)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void Button_1_MouseUp(object sender, EngineEventArgs e)
        {
            EngineMultimedia.Play(EngineSoundEnum.Click);

            //delete
            if (InputBoxAction == EngineInputBoxAction.Delete)
            {
                if (TextBox.Text.CompareTo("deletar") == 0)
                {
                    WorldPacket.DeleteCharacter((byte)WindowCharacter.SelectedIndex);
                    Hide();
                }
                else
                {
                    TextBox.Text = string.Empty;
                }
            }
        }
 /// <summary>
 /// Método textbox mouse up.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void Textbox_MouseUp(object sender, EngineEventArgs e)
 {
     TextBox.CursorEnabled = true;
 }
Esempio n. 5
0
 /// <summary>
 /// Invoca o evento mouse move.
 /// </summary>
 /// <param name="_event"></param>
 protected virtual void OnMouseLeave(EngineEventArgs args)
 {
     MouseLeave?.Invoke(this, args);
 }
Esempio n. 6
0
 /// <summary>
 /// Invoca o evento mouse down.
 /// </summary>
 /// <param name="_event"></param>
 protected virtual void OnMouseDown(EngineEventArgs args)
 {
     MouseDown?.Invoke(this, args);
 }