Beispiel #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);
            }
        }
Beispiel #2
0
        void msgBoxResult(int result)
        {
            TingSound.Play();

            if (result == 1)
            {
                ROClient.Singleton.Exit();
            }
        }
Beispiel #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();
            }
        }
        void btnCancel_Clicked(MouseButtons arg1, float arg2, float arg3)
        {
            if (arg1 == MouseButtons.Left)
            {
                TingSound.Play();

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

                this.Close();
            }
        }
        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);
        }
Beispiel #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);
        }
        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();
            }
        }