/// <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;
        }
Beispiel #2
0
        public void Down_Click(object sender, EventArgs e)
        {
            EngineMultimedia.Play(EngineSoundEnum.Close);

            if (Index < Message.Count - 1)
            {
                Index++;
            }
        }
Beispiel #3
0
        public void Up_Click(object sender, EventArgs e)
        {
            EngineMultimedia.Play(EngineSoundEnum.Close);

            if (Index > 0)
            {
                Index--;
            }
        }
Beispiel #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void Button_MouseUp(object sender, EventArgs 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;
                }
            }
        }