Exemple #1
0
        private void login_KeyDown(object sender, KeyEventArgs e)
        {
            confirm conf = new confirm();

            if (e.KeyCode == Keys.Escape)
            {
                conf.refToLogin = this;
                conf.boolLogin  = true;
                conf.Show();
            }
        }
Exemple #2
0
        public void confirmMessage(string message)            // Success Message
        {
            confirm conf = new confirm();
            dim     dim  = new dim();

            dim.Location  = this.Location; dim.Size = this.Size;
            dim.refToPrev = this;
            dim.Show(this);

            conf.lblConfirm.Text = message;
            if (conf.ShowDialog() == DialogResult.OK)
            {
                confirmed = true;
            }
            else
            {
                confirmed = false;
            }
            dim.Close();
        }