private void EditOffer(string sBarcode)
        {
            frmSingleInputBox fsiGetDesc = new frmSingleInputBox("Enter a description of the offer [30 characters maximum]", ref sEngine);

            fsiGetDesc.tbResponse.Text = sEngine.GetDetailsOfOffer(sBarcode)[1];
            fsiGetDesc.ShowDialog();
            if (fsiGetDesc.Response != "$NONE")
            {
                frmOffersReceptDesigner ford = new frmOffersReceptDesigner(sBarcode, ref sEngine);
                ford.ShowDialog();
                sEngine.CreateAnOffer(sBarcode, fsiGetDesc.Response, "", sBarcode + ".txt");
            }

            LoadOffers();

            sEngine.GenerateOffersForAllTills();
        }
        private void AddOffer()
        {
            frmSingleInputBox fsiGetCode = new frmSingleInputBox("Enter an 8 digit numerical code for the offer F6 to auto-generate one", ref sEngine);

            fsiGetCode.tbResponse.KeyDown += new KeyEventHandler(tbResponse_KeyDown);
            fsiGetCode.ShowDialog();
            if (fsiGetCode.Response != "$NONE")
            {
                frmSingleInputBox fsiGetDesc = new frmSingleInputBox("Enter a description of the offer [30 characters maximum]", ref sEngine);
                fsiGetDesc.ShowDialog();
                if (fsiGetDesc.Response != "$NONE")
                {
                    frmOffersReceptDesigner ford = new frmOffersReceptDesigner(fsiGetCode.tbResponse.Text, ref sEngine);
                    ford.ShowDialog();
                    sEngine.CreateAnOffer(fsiGetCode.Response, fsiGetDesc.Response, "", fsiGetCode.Response + ".txt");
                }
            }

            LoadOffers();

            sEngine.GenerateOffersForAllTills();
        }