Beispiel #1
0
        public void successMessage(string message)            // Success Message
        {
            success yey = new success();
            dim     dim = new dim();

            dim.Location        = this.Location; dim.Size = this.Size;
            yey.lblSuccess.Text = message;
            dim.refToPrev       = this;
            dim.Show(this);

            if (yey.ShowDialog() == DialogResult.OK)
            {
                dim.Close();
            }
        }
Beispiel #2
0
        public void errorMessage(string message)            // Error Message
        {
            error err = new error();
            dim   dim = new dim();

            dim.Location      = this.Location; dim.Size = this.Size;
            err.lblError.Text = message;
            dim.refToPrev     = this;
            dim.Show(this);

            if (err.ShowDialog() == DialogResult.OK)
            {
                dim.Close();
            }
        }
Beispiel #3
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();
        }