Exemple #1
0
        public void Apply(string sAppNo)
        {
            AdmissionEventArgs aea;

            aea = new AdmissionEventArgs();

            if (sAppNo == "S005")
            {
                aea.Message = sAppNo + "\nYour Application has Been Rejected";
            }
            else
            {
                aea.Message = sAppNo + "\nYour Application Has Been Accepted";
            }

            //raising an event with a message
            Action1(this, aea);
        }
        public void Apply(string sAppNo)
        {
            AdmissionEventArgs aea;

            aea = new AdmissionEventArgs();

            if (sAppNo == "I005")
            {
                aea.Message = sAppNo + "\nYour Profile is not suitable for the current job";
            }
            else
            {
                aea.Message = sAppNo + "\nYour Profile matches the job requirement";
            }

            //Raising an event with a message
            if (Action1 != null)
            {
                Action1(this, aea);
            }
        }