Exemplo n.º 1
0
        void btnCancel_Clicked(MouseButtons arg1, float arg2, float arg3)
        {
            if (arg1 == MouseButtons.Left)
            {
                TingSound.Play();

                MessageBox.ShowYesNo("You really want to exit?", msgBoxResult);
            }
        }
Exemplo n.º 2
0
        void msgBoxResult(int result)
        {
            TingSound.Play();

            if (result == 1)
            {
                ROClient.Singleton.Exit();
            }
        }
Exemplo n.º 3
0
        void btnOK_Clicked(MouseButtons arg1, float arg2, float arg3)
        {
            if (arg1 == MouseButtons.Left)
            {
                TingSound.Play();

                if (ServerSelected != null)
                {
                    ServerSelected((CharServerInfo)lstServices.Items[lstServices.SelectedIndex]);
                }

                this.Close();
            }
        }
Exemplo n.º 4
0
        void btnCancel_Clicked(MouseButtons arg1, float arg2, float arg3)
        {
            if (arg1 == MouseButtons.Left)
            {
                TingSound.Play();

                if (GoBack != null)
                {
                    GoBack();
                }

                this.Close();
            }
        }
Exemplo n.º 5
0
        public override void OnKeyDown(Microsoft.Xna.Framework.Input.Keys key)
        {
            if (key == Microsoft.Xna.Framework.Input.Keys.Enter)
            {
                TingSound.Play();

                if (DoLogin != null)
                {
                    DoLogin(txtLogin.Text, txtPassword.Text);
                }

                this.Close();
            }

            base.OnKeyDown(key);
        }
Exemplo n.º 6
0
        public override void OnKeyDown(Microsoft.Xna.Framework.Input.Keys key)
        {
            if (key == Microsoft.Xna.Framework.Input.Keys.Enter)
            {
                if (lstServices.SelectedIndex >= 0 && lstServices.SelectedIndex < lstServices.Items.Count)
                {
                    TingSound.Play();

                    if (ServerSelected != null)
                    {
                        ServerSelected((ServerInfo)lstServices.Items[lstServices.SelectedIndex]);
                    }

                    this.Close();
                }
            }

            base.OnKeyDown(key);
        }
Exemplo n.º 7
0
        void btnOK_Clicked(MouseButtons arg1, float arg2, float arg3)
        {
            if (arg1 == MouseButtons.Left)
            {
                TingSound.Play();

                if (ckSave.Checked)
                {
                    SharedInformation.Config.SaveLast  = true;
                    SharedInformation.Config.LastLogin = txtLogin.Text;
                }

                if (DoLogin != null)
                {
                    DoLogin(txtLogin.Text, txtPassword.Text);
                }

                this.Close();
            }
        }