Esempio n. 1
0
        void btnDeleteExtra_Click(object sender, EventArgs e)
        {
            Facade.IJobExtra facExtra = new Facade.Job();
            facExtra.DeleteExtra(m_extraId);

            this.ReturnValue = bool.TrueString;
            this.Close("DeleteExtra");
        }
Esempio n. 2
0
        void btnDeleteExtra_Click(object sender, EventArgs e)
        {
            Facade.IJobExtra facExtra = new Facade.Job();
            bool             retVal   = facExtra.DeleteExtra(m_extraId);

            if (retVal)
            {
                this.ReturnValue = "refresh";
                this.Close();
            }
            else
            {
                lblError.Text    = "There was a problem trying to remove this extra.";
                pnlError.Visible = true;
            }
        }